Skip to content

Instantly share code, notes, and snippets.

@AndrewGable
AndrewGable / .gitignore
Created November 21, 2014 19:40
Android Studio Git Ignore
#built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
@AndrewGable
AndrewGable / web.sh
Created April 26, 2014 01:03
AWS mooooove command
#!/bin/bash
#Move all the files from the website directory to the apache folder
sudo cp -r /home/ec2-user/website/* /var/www/html
moooove() {
cat <<"EOT"
o==+--
| |\ \
| | \ \ ____________________
@AndrewGable
AndrewGable / gmail
Last active August 29, 2015 14:00
Google Chrome Mail Alias
alias gmail="open /Applications/Google\ Chrome.app https://mail.google.com/mail/u/0/#inbox"
@AndrewGable
AndrewGable / reload
Created April 24, 2014 15:30
Reload bash_profile Alias
alias reload="source ~/.bash_profile"
@AndrewGable
AndrewGable / sub
Created April 24, 2014 15:27
Sublime Text 3 Command Line Link
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sub
@AndrewGable
AndrewGable / mark.m
Created April 23, 2014 00:35
Pragma Mark
//This creates a sweet horizontal line with title in Xcode
#pragma mark - Table View data source
@AndrewGable
AndrewGable / aws.sh
Created April 22, 2014 22:42
Amazon Web Services Bash Script
#!/bin/bash
#Create a new tab & Login to aws using ssh & correct file
osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' -e 'tell application "Terminal" to do script "ssh -i /LOCATION/TO/FILE.pem user@HOST" in selected tab of the front window'
@AndrewGable
AndrewGable / fix.sh
Created April 22, 2014 22:40
Android Fix Bash Script
#!/bin/bash
# Andrew Gable
# March 2014
#echo password needed
echo -e "Password needed for ktext loading. . . \n"
#load ktext
sudo kextload -v /System/Library/Extensions/EasyTetherUSBEthernet.kext
@AndrewGable
AndrewGable / morning.sh
Last active August 29, 2015 14:00
Good Morning Bash
#!/bin/bash
# Andrew Gable
# April 2014
# Script to check svn, and start the day
echo "Goodmorning Andrew!"
read -p "Andrew, is tomcat off? (y/n)" -n 1 -r