Skip to content

Instantly share code, notes, and snippets.

View yfr's full-sized avatar

Frank Mecklenburg yfr

  • Your Friendly Robot
  • Hamburg
View GitHub Profile
@bmhatfield
bmhatfield / .profile
Last active May 6, 2024 22:27
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@ro-ka
ro-ka / 1_README.md
Last active December 15, 2015 16:59
Upgrade to yeoman 1.0 and grunt 0.4 with jade templating

Upgrade to yeoman 1.0 and grunt 0.4 with jade templating

First, remove the old versions and install the new ones:

npm uninstall -g yeoman grunt
npm install -g yo grunt-cli bower

Add this to the devDepencies in your package.json:

@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})