Follow below steps to add multiple accounts. More info at: https://gist.github.com/jexchan/2351996
goto .ssh folder and generate ssh keys for all your github accounts
$ cd ~/.ssh
$ ssh-keygen -t rsa -b 4096 -C "personal_email_id"
# Create user | |
npm adduser | |
# Login | |
npm login | |
# Current user | |
npm whoiam | |
# Package version |
Follow below steps to add multiple accounts. More info at: https://gist.github.com/jexchan/2351996
goto .ssh folder and generate ssh keys for all your github accounts
$ cd ~/.ssh
$ ssh-keygen -t rsa -b 4096 -C "personal_email_id"
{ | |
"Use Non-ASCII Font" : false, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { | |
"Green Component" : 0.3333333432674408, | |
"Blue Component" : 1, | |
"Red Component" : 0.3333333432674408 | |
}, |
{ | |
"editor.formatOnSave": true, | |
"prettier.printWidth": 120, | |
"git.enableSmartCommit": true, | |
"files.associations": { | |
"*.overrides": "less", | |
"*.variables": "less", | |
}, | |
"git.confirmSync": false, | |
"workbench.iconTheme": "vscode-icons", |
# hidden files | |
defaults write com.apple.Finder AppleShowAllFiles true | |
killall Finder | |
# bulk images covert | |
sips -Z 640 *.jpg |
// https://medium.com/factory-mind/regex-tutorial-a-simple-cheatsheet-by-examples-649dc1c3f285 | |
// Trim spaces | |
^[\s]*(.*?)[\s]*$ | |
// HTML Tag | |
<([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>) | |
// Anchors — ^ and $ | |
^The matches any string that starts with The -> Try it! |
# create and start containers | |
docker-compose up | |
# start services with detached mode | |
docker-compose -d up | |
# start specific service | |
docker-compose up <service-name> | |
# list images |
# edit user profile | |
code ~/.zshrc | |
# user profile path | |
wich zsh | |
# change shell | |
chsh -s /usr/bin/zsh | |
tail /etc/passwd |
# Clone a repository | |
git clone [email protected]:github-org/github-ce.git | |
git clone https://github.com/github-org/github-ce.git | |
# Clone a repository with another profile | |
git clone [email protected]:github-org/github-ce.git | |
# Basic Git commands | |
git checkout <branch_name> |
import axios from 'axios'; | |
import qs from 'qs'; | |
// your application requests authorization | |
var CLIENT_ID = 'your-app-id'; | |
var CLIENT_SECRET = 'your-app-secret'; | |
var accessToken = ''; | |
axios({ | |
method: 'post', |