Skip to content

Instantly share code, notes, and snippets.

View Demeter's full-sized avatar

demeter Demeter

  • Phoenix Arizona
  • 04:19 (UTC -07:00)
View GitHub Profile
@ibjhb
ibjhb / gist:1667543
Created January 24, 2012 03:06 — forked from panicsteve/gist:1641705
Form letter template for acquired startups
Dear soon-to-be-former user,
We've got some fantastic news! Well, it's great news for us anyway. You, on
the other hand, are fucked.
We've just been acquired by:
[ ] Facebook
[ ] Google
[ ] Twitter
@panicsteve
panicsteve / gist:1641705
Created January 19, 2012 18:26
Form letter template for acquired startups
Dear soon-to-be-former user,
We've got some fantastic news! Well, it's great news for us anyway. You, on
the other hand, are fucked.
We've just been acquired by:
[ ] Facebook
[ ] Google
[ ] Twitter
(function (d) {
var el,
klass = 'fb-login-button';
if (d.getElementsByClassName(klass).length) {return;}
el = d.createElement('div');
el.setAttribute('class', klass);
el.setAttribute('data-show-faces', true);
el.setAttribute('data-width', 200);
@joefiorini
joefiorini / idiomatic_mofo.rb
Created January 7, 2012 05:34
Camelize Hash keys to return in JSON request. In other words, idiomatic JSON for your Rubies. Consider this pseudo-code as it's about 40% untested.
def HashExtensions(hash)
hash.extend(HashExtensions)
end
module HashExtensions
def camelize_keys
dup.camelize_keys!
end
@abernier
abernier / index.css
Created January 6, 2012 13:32
CSS 3D cube
/*
variables:
a = 5em
2.5em = a / 2
*/
.cube,
.cube > * {display:block; width:5em; height:5em;}
@spudbean
spudbean / gist:1558257
Last active January 31, 2025 19:56
Look of disapproval and other emoticons
ಠ_ಠ
( ͡° ͜ʖ ͡°)
¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons
@paultag
paultag / debwatch
Created November 28, 2011 14:58
Debian Changes via CLI :)
#!/usr/bin/env python
import time
import urllib
import json
service = "http://pault.ag:8080/tail"
lastts = 0
def loop():
@azproduction
azproduction / LICENSE.txt
Created November 28, 2011 14:03 — forked from 140bytes/LICENSE.txt
A turing machine in 79! bytes of javascript
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@pyrtsa
pyrtsa / .gitconfig
Created November 1, 2011 04:22
This should fix some issues with https://gist.github.com/1327258
[alias]
l50 = "!git log --abbrev-commit --date=short --pretty=format:'%h%x00%cd%x00%s%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-50s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5 }' | less -R"
l80 = "!git log --abbrev-commit --date=short --pretty=format:'%h%x00%cd%x00%s%x00%an%x00%d' $@ | gawk -F '\\0' '{ printf \"\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-80s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5 }' | less -R"
#!/bin/bash -xe
HOSTNAME=`hostname | sed 's/.managed.contegix.com//' | sed 's/apture-//'`
REMOTE_PATH="/home/csar/logs/spawning/${HOSTNAME}/"
DESTINATION="csar@apture-stat01"
cd /var/log/spawning
echo "Syncing to ${DESTINATION}:${REMOTE_PATH}"