Git post-commit hook to keep master
and gh-pages
branch in sync :
In your Git repository create a file .git/hooks/post-commit
and fill it with this:
#!/bin/sh
git checkout gh-pages
git rebase master
git checkout master
@interface Foo : NSObject {} | |
@property(assign) float foo; | |
@end |
############################################################################ | |
# _ | |
# | |_ _ __ ___ _ ___ __ | |
# | __| '_ ` _ \| | | \ \/ / | |
# | |_| | | | | | |_| |> < | |
# \__|_| |_| |_|\__,_/_/\_\ | |
# | |
# Cheatsheets: | |
# https://devhints.io/tmux | |
# `property not found` issue: |
// ==UserScript== | |
// @name Use Markdown, sometimes, in your HTML. | |
// @author Paul Irish <http://paulirish.com/> | |
// @link http://git.io/data-markdown | |
// @match * | |
// ==/UserScript== | |
// If you're not using this as a userscript just delete from this line up. It's cool, homey. |
mysqldump -u USERNAME -p DATABASE_NAME > $(date +"%m-%d-%y_%H-%M%p").sql |
license: gpl-3.0 |
Git post-commit hook to keep master
and gh-pages
branch in sync :
In your Git repository create a file .git/hooks/post-commit
and fill it with this:
#!/bin/sh
git checkout gh-pages
git rebase master
git checkout master
$ tar xvf netatalk-3.0.5.tar.bz2 | |
$ cd netatalk-3.0.5 | |
$ ./configure \ | |
--with-init-style=debian \ | |
--with-cracklib \ | |
--without-libevent \ | |
--with-pam-confdir=/etc/pam.d \ | |
--with-dbus-sysconf-dir=/etc/dbus-1/system.d | |
$ checkinstall --pkgname=netatalk-3.x --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no |
Install XQuartz.
Install dwm using Homebrew (or whatever):
brew install dwm
Create a xinitrc.d
script for dwm:
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
YourTrelloKey
with this hash.YourTrelloToken
with this looong hash.