Skip to content

Instantly share code, notes, and snippets.

# Replace any brackets with real values
# Try to ssh in to DREAMHOST (ensure it no longer asks for a PW); you may want to restart Terminal
ssh [user]@[host]
cd ~
mkdir [mydomain_com].git
cd [mydomain_com].git
git init --bare
vi hooks/post-receive
# Enter the code from the "post-receive" file (in this gist); save + quit
@fofr
fofr / sifttter.rb
Last active November 8, 2015 14:19 — forked from craigeley/sifttter.rb
Format sifttter logs into daily markdown files
#!/usr/bin/ruby
# Convert Sifttter logs into markdown files, one per day <http://paulrhayes.com>
# Based on Sifttter: An IFTTT-to-Day One Logger by Craig Eley 2014 <http://craigeley.com>
# Based on tp-dailylog.rb by Brett Terpstra 2012 <http://brettterpstra.com>
#
# Notes:
# * Uses `mdfind` to locate a specific folder of IFTTT-generated text files
# * The location of your folder should be hardcoded in line 23
# * Scans leading timestamps in each line matching formatted_date's date
# * Does not alter text files in any way
@media (min--moz-device-pixel-ratio: 1.5),
(-o-min-device-pixel-ratio: 3/2),
(-webkit-min-device-pixel-ratio: 1.5),
(min-device-pixel-ratio: 1.5),
(min-resolution: 1.5dppx) {
/* "retina" styles */
}