- Git Bash
- VPS to put the generated private key
- Open your git bash
cd /c/Program Files/Git/etc/ssh
- run
ssh-keygen
, name your key (id_rsa is default) then enter enter..
# Node template | |
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
# Runtime data |
# when running folders with space | |
mypwd=$(pwd); docker run -p 8080:3000 -v ${mypwd}:/var/www -w "/var/www" node npm start | |
# folders without space | |
docker run -p 8080:300 -v $(pwd):/var/www -w "/var/www" node npm start | |
# interactive mode with bash | |
docker run -it -p 8080:3000 -v $(pwd):/var/www -w "/var/www" node /bin/bash | |
# building docker images |
# when git is not working. (another git process) | |
rm -f .git/index.lock | |
# triangular workflow. (pull from original repo, push from your forked repo) | |
# clone original repo, set push to your forked repo | |
git remote set-url origin git@github.com:nnja/advanced-git-exercises.git | |
git remote set-url --push origin git@github.com:jcunanan05/advanced-git-exercises.git | |
# when you get EOF error https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed | |
git config --global core.compression 0 |
const getUser = axios.get('url'); // promise lang talaga to pag console.log | |
const handleUserDetails = (userDetails) => { | |
console.log(userDetails); | |
// pagka react | |
this.setState({ user: userDetails }); | |
}; | |
getUser |
I also found helpful this comment. After installing Python 2.7 and Visual C++ Build Tools I deleted node_modules folder, opened CMD from Administrator and ran npm install --msvs_version=2015. Aaand it installed successfully!
This link helped me to install Python and VS C++ build tools.
license: mit |
license: mit |
{ | |
"workbench.colorTheme": "Night Owl", | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.fontSize": 16, | |
"window.zoomLevel": 1.3, | |
"terminal.integrated.fontSize": 14, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
//enable emmet on js | |
"emmet.includeLanguages": { |
# prevent photos app from launching, just change to NO if you change your mind | |
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES | |
# show hidden files, if you want to hide it, just set to false. | |
defaults write com.apple.Finder AppleShowAllFiles true | |
# install xcode command line tools | |
# https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_macOS_10.13_for_Xcode_10.1/Command_Line_Tools_macOS_10.13_for_Xcode_10.1.dmg | |
# install homebrew |