Last active
November 2, 2017 12:30
-
-
Save timothy/e5079bcd4021cf78305acc622d67c71e to your computer and use it in GitHub Desktop.
random notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update # Fetches the list of available updates | |
sudo apt-get upgrade # Strictly upgrades the current packages | |
sudo apt-get dist-upgrade # Installs updates (new ones) | |
sudo apt autoremove # Removes unused packages | |
google-chrome --disable-web-security | |
chromium-browser --disable-web-security --user-data-dir | |
//for caching git credentials... | |
git config --global credential.helper 'cache --timeout 3600' | |
git help credential-cache | |
//open new seperate chrome for dev | |
chromium-browser --args --user-data-dir="/tmp/chrome_dev_session" --disable-web-security --ignore-certificate-errors --allow-running-insecure-content | |
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C:/Chrome dev session" --disable-web-security | |
//Node.js | |
sudo apt-get install npm | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
node -v | |
v5.0.0 | |
//find all global packages | |
npm list -g --depth=0 | |
//update npm using npm | |
npm install -g npm | |
-g //this means global | |
--save-dev // save to the davDependencies in package.json | |
--save // save to the Dependencies in package.json | |
//find all global packages | |
npm list -g --depth=0 | |
//Install packages for a specific project locally. Install as dev dependency. | |
npm install --save-dev package-name | |
//install gulp and bower at the same time.. | |
npm install –g gulp bower | |
//install only gulp | |
npm install –g gulp | |
//installs gulp to a local project as a dev dependency. | |
npm install gulp --save-dev | |
http://www.ncsc.org/ | |
//Adding ANDROID_HOME to Path | |
export ANDROID_HOME=$HOME/Android/Sdk | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:/opt/android-studio/gradle | |
add to .bashrc located in $HOME folder | |
//open file browser using terminal | |
caja |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment