justaoneliner
justaoneliner
My random access memory
9 posts
Wait, what?
Don't wanna be here? Send us removal request.
justaoneliner · 4 years ago
Text
Update node
Check version
node -v
Clear npm cache
npm cache clean -f
Install n globally:
npm install -g n
Install stable version of node
sudo n stable
Alternatively latest
sudo n latest
0 notes
justaoneliner · 4 years ago
Text
git rebase –onto
Usecase:
I am working with my co-workers on a branch. But I created my own one. So we have
Main branch: develop
Co-Work branch: feature/foo
My own branch: feature/foo/1
Co-Work branch got squashed and merged into develop. But now I need to rebase it, but how?
git checkout feature/foo/1 git rebase --onto <newparent><oldparent> git rebase --onto develop feature/foo
Original article: https://womanonrails.com/git-rebase-onto
0 notes
justaoneliner · 5 years ago
Text
Create ssh key
ssh-keygen -t rsa
0 notes
justaoneliner · 6 years ago
Text
npm standard registry login
If you dont want to use another (or your own) registry and want to use the default npm registry instead use this:
npm config set registry https://registry.npmjs.org/
0 notes
justaoneliner · 6 years ago
Text
“Enter passphrase for key” - when git asks to login all the time
When you setup a new computer, will get into the situation, that you will proably clone a repo.
But if you want to interact with that repo like git pull origin develop it asks you for your passphrase all the time.
So how to approach this and prevent this? (on MacOS)
Add ssh key to keychain
ssh-add -K ~/.ssh/your-private-key-file
Create config
touch .ssh/config
Add following config file to .ssh/config
Host * UseKeychain yes AddKeysToAgent yes IdentityFile ~/.ssh/id_rsa
0 notes
justaoneliner · 6 years ago
Text
Todays read: QA is a mindset
https://techbeacon.com/app-dev-testing/how-i-created-culture-quality
0 notes
justaoneliner · 6 years ago
Text
Login as another user
su YourAccount
0 notes
justaoneliner · 6 years ago
Text
crontab: “/usr/bin/vi” exited with status 1
When your crontab fails you to save something you might get following message:
"crontab: "/usr/bin/vi" exited with status 1
and crontab -l returns nothing :(
How to make it work?
EDITOR=/usr/bin/vim crontab -e
Put in your cron and save it - you are good to go :)
Double check with
crontab -l
0 notes
justaoneliner · 6 years ago
Text
What to install on a new mac
Note to self:
There is this new mac - where do I start?
Install brew first
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install all other tools :)
brew cask install iterm2 brew cask install intellij-idea brew cask install visual-studio-code brew cask install docker brew cask install spotify brew install yarn brew install bash-git-prompt
0 notes