Create SSH key
It's best having separate keys on different workstations (e.g., home, office, etc.).
Generate a public key:
ssh-keygen -t rsa -f ~/.ssh/heroku_rsa -C"$(whoami)@$(hostname)"`
Create SSH key
It's best having separate keys on different workstations (e.g., home, office, etc.).
Generate a public key:
ssh-keygen -t rsa -f ~/.ssh/heroku_rsa -C"$(whoami)@$(hostname)"`
+--------------------------------------------------------------------+ | |
| | | |
| SELECT * | | |
| FROM A | | |
| [INNER] JOIN B ON A."FOO" = B."BAR" [AND ...]; | | |
| | | |
+--------------------------------------------------------------------+ | |
| | | |
| SELECT * | | |
| FROM A | |
# Simple | |
git filter-branch --prune-empty --subdirectory-filter foobar/ --tag-name-filter cat -- --all | |
# Complex | |
# (Ref.: http://stackoverflow.com/a/17867910/11895, | |
# http://stackoverflow.com/a/19957874/11895) | |
git filter-branch -f --prune-empty --index-filter \ | |
'git rm --cached --ignore-unmatch -r -q -- . ; \ | |
git reset -q $GIT_COMMIT -- .gitignore README.md foo/ bar/' \ | |
-- --all |
#ifndef NS_DESIGNATED_INITIALIZER | |
#if __has_attribute(objc_designated_initializer) | |
#define NS_DESIGNATED_INITIALIZER __attribute((objc_designated_initializer)) | |
#else | |
#define NS_DESIGNATED_INITIALIZER | |
#endif | |
#endif |
#!/usr/bin/env bash | |
# | |
# Autobot: create, setup and deploy Hubot on Heroku with Campfire adapter. | |
# | |
# USAGE: | |
# autobot.sh <path> | |
# | |
# Autobot will; | |
# 1. download and install all the Hubot machinery | |
# 2. create your very own Hubot instance |
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
"""Update by merging .strings file(s) of an Xcode project.""" | |
import os | |
import sys | |
import shlex | |
import shutil | |
import tempfile |
Here's a listing of all the GHfW keyboard stuff that i can think of. Now i know them after writing this, but i figured it would be nice to have these documentated somewhere.
Rant: i dont know why people say that Windows users dont like using the keyboard for everything. That's certainly not true for me. Though, that may be the case from using Unix in college.
You can use Alt shortcuts. Hold down Alt and you'll see the underlines. Menus brought up this way have j
& k
navigations! Try it on the tools menu.
<% flash.each do |type, message| %> | |
<div class="alert <%= bootstrap_class_for(type) %> fade in"> | |
<button class="close" data-dismiss="alert">×</button> | |
<%= message %> | |
</div> | |
<% end %> |
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |