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
#import <UIKit/UIKit.h> | |
#import <ImageIO/ImageIO.h> | |
#import <MobileCoreServices/MobileCoreServices.h> | |
- (void)exportAnimatedGif | |
{ | |
UIImage *shacho = [UIImage imageNamed:@"shacho.png"]; | |
UIImage *bucho = [UIImage imageNamed:@"bucho.jpeg"]; | |
NSString *path = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"animated.gif"]; |
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
STREAM=`curl -d "channelname=$1&hoster=justin" http://bogy.mine.nu/sc2/stream2vlc.php | jshon -e 360p -u` | |
echo "rtmpdump $STREAM | vlc -" | pbcopy | |
echo 'now, paste, enter, play.' |
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
if [ -f /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome ]; then | |
browser="chrome" | |
elif [ -f /Applications/Firefox.app/Contents/MacOS/firefox ]; then | |
browser="firefox" | |
else | |
echo "Neither Chrome nor Firefox found. Install one." | |
exit | |
fi | |
echo "This opens a screen session with several windows. Once testing is complete, exit all of them to return to this terminal" | |
DIR="$( cd "$( dirname "$0" )" && pwd )" |
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
# change terminal theme when I ssh into Important Things. | |
function ssh() { | |
local term_theme="Pro" #default | |
case ${@:(-2):1} in # start at 2nd to last paramter, take one. | |
*live-demo1*|*prod*|*prod-db*) # production | |
term_theme="Red Sands" | |
;; | |
*selenium*|*hudson*) # testing | |
term_theme="Silver Aerogel" |
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
# wget http://selenium.googlecode.com/files/selenium-server-standalone-2.5.0.jar | |
# wget http://chromium.googlecode.com/files/chromedriver_mac_14.0.836.0.zip | |
if [ -f /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome ]; then | |
browser="chrome" | |
elif [ -f /Applications/Firefox.app/Contents/MacOS/firefox ]; then | |
browser="firefox" | |
else | |
echo "Neither Chrome nor Firefox found. Install one." | |
exit |
NewerOlder