This file contains 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
# limit the log to the last 4 commits | |
svn log --limit 4 | |
# show the log for a particular file | |
svn log foo.js | |
# create a new repo | |
svn import http://repo/path/<new-repo> -m "Initial import" | |
# create a new branch |
This file contains 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 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 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 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 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>{Title}{block:PostTitle} - {PostTitle}{/block:PostTitle}</title> | |
{block:Description} | |
<meta name="description" content="{MetaDescription}"> | |
{/block:Description} |
This file contains 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 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 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 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> |
OlderNewer