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
| <!-- | |
| StickyTheme for Tumblr | |
| http://stickytheme.tumblr.com/ | |
| http://gist.github.com/86432 | |
| By http://htxt.org/ | |
| Based on http://stickyscreen.org/ | |
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
| #login | |
| mysql -u <user> -p | |
| # list all databases | |
| show databases; | |
| # 'open' a database | |
| use <database_name>; | |
| # list all tables |
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
| # Clear the screen | |
| ctl + l | |
| # Command history | |
| up key to cycle through last commands | |
| # Auto complete | |
| Start typing a path/filename + tab to complete | |
| Tab twice to see all options |
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
| # Create the .ssh directory if it's not already under ~/ | |
| ssh user@server | |
| mkdir .ssh | |
| chmod 700 .ssh | |
| exit | |
| # Create a private/public key pair if you didn't already | |
| ssh-keygen | |
| # Copy your public key to the remote server |
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
| sudo gem install mysql -v 2.7 -- --with-mysql-dir=/usr/local/lib/mysql --with-mysql-config=/usr/local/bin/mysql_config |
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
| # Exclude log/doc/tmp | |
| !.*/(\.[^/]*|log|doc|tmp|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$ | |
| # Original | |
| !.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$ |
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 | |
| <a href="#">(.*?)</a> | |
| # replace | |
| $1 |
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
| // Activation: Tab Trigger > log | |
| console.log($1); |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Clouds</string> | |
| <key>settings</key> | |
| <array> | |
| <dict> | |
| <key>settings</key> |
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
| route('#/hello').bind(myFunction); | |
| function myFunction(){ | |
| alert('Hello world'); | |
| } | |
| // route('#/hello').run(); | |
| var App={}; | |
| App._hashchange_last = ''; |
OlderNewer