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
1. Log onto Digital Ocean | |
2. Add promo code _____ | |
3. Enter billing info | |
4. Create ssh key. Follow directions on this page. Upload key | |
-> this step is optional, but highly recommended | |
5. Create droplet w/ MEAN Stack droplet | |
-> you can normally choose what you want | |
-> I would use ubuntu 14.04 x32 | |
6. Log onto it (using ssh key or p/w that was emailed to) | |
7. adduser user |
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
Workflow | |
1) Create private branch off public (remote) branch | |
2) Regularly commit to this private branch | |
3) Clean up its history (squash merge, rebase, or merge into a separate temp branch and then merge to master) | |
4) Merge to origin public (remote) branch | |
git init (Create a new local repo) | |
git remote add repo_name ~~~~~~.git (Add a remote repo as a new remote "repo_name") | |
git clone ~~~~~.git repo_name (Clone a remote repo as "repo_name") |
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 parted -l | |
sudo mount /dev/sda# /mnt | |
cd mnt/etc | |
sudo visudo -f sudoers | |
umount /mnt |
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
### Using git with a SVN server/repo | |
Sources | |
http://git-scm.com/book/en/Git-and-Other-Systems-Git-and-Subversion | |
http://viget.com/extend/effectively-using-git-with-subversion | |
git svn clone -s <url> <local_dir_name> | |
# setting up | |
git checkout -b <feature_branch> |
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
Postgres Cheat Sheet | |
Source: Postgresql Documentation | |
### shell commands | |
creatuser <user> | |
deletesuer <user> | |
createdb -O <user> -E utf8 -T <template> <db_name> | |
dropdb <db_name> |
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
Instructions to setup a Minecraft server on an Amazon EC2 Micro instance | |
1. Go to instances, launch instance. | |
2. Select classic wizard, 32-bit Amazon Linux AMI, Micro instance type. | |
3. Set up key pair | |
4. Create new TCP rule and add 22, 25565 | |
5. Launch instance | |
6. Go to elastic ips, and allocate/associate a new address | |
7. ssh ec2-user@[ip address] | |
8. sudo yum update |
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
# Setting up and using PostgreSQL with Rails on OS X | |
# Allows you to use PostgreSQL instead of sqlite3, and have the same database type as Heroku | |
# Install postgres using homebrew | |
brew install postgres | |
# Follow directions provided by postgres installation | |
# Instructions for this part can be retrieved again using "brew info postgres" | |
# This creates a default user according to your system name | |
# If you encounter an error similar to this, then check out these helpful links |