This file contains hidden or 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
Steps: | |
Set up EBS | |
21Created 1 TB EBS | |
Created 64 Bit Amazon Linux AMI 2012.09 M1 Medium 3.7 gb ram, 2 ECUs | |
Connect to ec2 instance via ssh | |
chmod 400 IFS-KeyPair.pem | |
ssh -v -i IFS-KeyPair.pem [email protected] | |
Note: Do not replace ec2-user with your user id. This is a AWS Amazon AMI requirement. |
This file contains hidden or 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
sed -i".bak" '6d' ~/.ssh/known_hosts |
This file contains hidden or 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
Attached the EBS volume to the EC2 Instance | |
http://www.webmastersessions.com/how-to-attach-ebs-volume-to-amazon-ec2-instance | |
Logged in to the EC2 instance, | |
The volume should show up as /dev/sdf or something. | |
#Format the volume | |
sudo mkfs.ext3 /dev/sdf | |
#create the directory to link the volume to. | |
mkdir /spatial-db |
This file contains hidden or 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
ADDUSERS Add or list users to/from a CSV file | |
ARP Address Resolution Protocol | |
ASSOC Change file extension associations• | |
ASSOCIAT One step file association | |
ATTRIB Change file attributes | |
BOOTCFG Edit Windows boot settings | |
BROWSTAT Get domain, browser and PDC info | |
CACLS Change file permissions | |
CALL Call one batch program from another• | |
CD Change Directory - move to a specific Folder• |
This file contains hidden or 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
alias Create an alias | |
alloc List used and free memory | |
awk Find and Replace text within file(s) | |
basename Convert a full pathname to just a folder path | |
bash Bourne-Again SHell (Linux) | |
bless Set volume bootability and startup disk options. | |
break Exit from a loop | |
cal Display a calendar |
This file contains hidden or 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
#first checkout master | |
git checkout master | |
#merge the dev branch | |
git merge dev | |
#get the log of commits and add them to the readme | |
git log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short | |
#tag the commit |
This file contains hidden or 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
#http://timkay.com/aws/ | |
mkdir aws_install | |
cd aws_install | |
curl https://raw.github.com/timkay/aws/master/aws -o aws | |
chmod +x aws | |
perl aws --install #this doesn't seem to work on OS X yet... | |
#Put your AWS credentials in ~/.awssecret: the Access Key ID on the first line and the Secret Access Key on the second line. |
This file contains hidden or 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
Usage: | |
scp [options] [[user@]host1:]filename1 ... [[user@]host2:]filename2 | |
Where: | |
[[user@]host1:]filename1 is the source file and path, and [[user@]host2:]filename2 is the destination. | |
Upload Example: | |
scp ./myfile username@ipaddress:/Users/dest_user/remote_path/new_file_name | |
Download Example: | |
Upload Example: |
This file contains hidden or 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
#call .bashrc if I'm logging in remotely. | |
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
#Enable RVM to work as a system function | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
#get ls the way I like it | |
alias ls='ls -aGF' |
This file contains hidden or 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
framework "Quartz" | |
input_a = "path/to/a/file" | |
input_b = "path/to/a/file" | |
output = "path/to/a/file" | |
#load images using Core Image (could have also used Image I/O | |
h_path = NSURL.fileURLWithPath(input_a,false) | |
forground_image = CIImage.alloc.initWithContentsOfURL(h_path) |