Skip to content

Instantly share code, notes, and snippets.

View chriswain's full-sized avatar

Christopher Aaron chriswain

View GitHub Profile
@chriswain
chriswain / ninjamultipedia.txt
Last active September 6, 2020 09:46
basic git concepts
git add . //the dot adds all the files
git add filename // add specific file to commit
git status //gives current files modified but not committed
git diff filename // so changes to the file since last time file was committed
git commit -m “add message about commit here”
git push -u origin branch //need to use this for initial commit to that branch
git push //if already pushed to branchname
git stash // will store current work and push you back to most recent working directory
git checkout -b branchname //will create new branch and check you into it
git checkout branchname //will check you into already created branch
@chriswain
chriswain / installNginxUbuntu.txt
Last active August 18, 2016 16:56
install nginx on ubuntu 16.04
do-release-upgrade // run this if ubuntu is not at current version
sudo apt-get update
sudo wget http://nginx.org/keys/nginx_signing.key //get signing key to be able to use nginx repo
// make sure enablednshostnames and enablednssupport is set to yes or next line will not work
sudo apt-key add nginx_signing.key add signing key
// add the sources from where the nginx packages can be obtained
sudo vi /etc/apt/sources.list
@chriswain
chriswain / rails_install_ubuntu.gist
Last active April 20, 2016 16:56
installing rails on ubuntu
1. sudo apt-get update
2. sudo apt-get install git
3. git clone git://github.com/sstephenson/rbenv.git .rbenv
4. echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
5. echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
6. exec $SHELL
7. git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
8. echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
9. exec $SHELL
10. source ~/.bash_profile
@chriswain
chriswain / gist:c187ab29dbff6810b2a1
Created February 10, 2016 19:02
Jenkins Installation
sudo yum update