Skip to content

Instantly share code, notes, and snippets.

@timothy
Last active November 2, 2017 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothy/e5079bcd4021cf78305acc622d67c71e to your computer and use it in GitHub Desktop.
Save timothy/e5079bcd4021cf78305acc622d67c71e to your computer and use it in GitHub Desktop.
random notes
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