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
require 'posterous' | |
require 'time' | |
# Add your credentials Here | |
Posterous.config = { | |
'username' => '<email-address>', | |
'password' => '<password>', | |
'api_token' => '<api-token>' | |
} |
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
#!/usr/bin/env ruby | |
# Convert command line | |
# | |
#gm convert -font helvetica -fill white -pointsize 20 -draw "text 500,600 'WALLPAPERZ ARE GOOD'" test.jpg output.jpg | |
# | |
#convert -background transparent -fill white -gravity center -size 1024x200 -font Helvetica -pointsize 20 #caption:"I'm a wallpaper, you know what to do" test.jpg +swap -gravity south -composite output.jpg | |
# | |
# Mogrify command 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
/* | |
imagesQueue.js FULL SOURCE | |
A simple, cross-browser, *parallel* images loader object. | |
Check http://labs.lieldulev.com/imagesQueue/ for more details. | |
*/ | |
imagesQ={ | |
onComplete: function(){} // Fires when all finished loading | |
,onLoaded: function(){} // Fires when an image finishes loading | |
,onErrored: function(){} // Fires when an image fails to load | |
,current: null // Last loaded image (Image Object) |
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
cd ~ | |
mkdir -p ~/Dropbox/dotfiles/ | |
# dotfiles | |
mv .profile ~/Dropbox/dotfiles/ | |
ln -s ~/Dropbox/dotfiles/.profile .profile | |
mv .zshrc ~/Dropbox/dotfiles/ | |
ln -s ~/Dropbox/dotfiles/.zshrc .zshrc |
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
cd ~ | |
rm -f .profile | |
ln -s ~/Dropbox/dotfiles/.profile .profile | |
rm -f .profile | |
ln -s ~/Dropbox/dotfiles/.zshrc .zshrc | |
rm -f .gitconfig | |
ln -s ~/Dropbox/dotfiles/.gitconfig .gitconfig |
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
find ~/"Library/Application Support/TextMate/Bundles/" -name .git -execdir git pull --quiet \; | |
find ~/"Library/Application Support/TextMate/Bundles/" -maxdepth 2 -name .svn -execdir svn up --quiet \; |
NewerOlder