Update: I made this a proper blog post
- linux box
Chef Server Setup | |
============= | |
- Ubuntu 12.04 x86_64 (only other option is RHEL 5 or 6) | |
- Hostname setup: | |
echo "parabola" > /etc/hostname | |
hostname -F /etc/hostname | |
```/etc/hosts | |
127.0.0.1 fqdn hostname localhost | |
# (e.g., 127.0.0.1 parabola.tylercipriani.com parabola localhost) |
* Make sure command line tools are installed for your OS | |
* Switch to root: | |
`sudo -i` | |
enter your password when prompted | |
* Check your SVN version: | |
`svn --version` | |
* Get Subverion 1.6 code in /usr/local/src/: |
#!/usr/bin/env bash | |
# Dropbox + Bash = Lighting Fast .gif retrieval | |
# ----------------------- | |
# Usage: gif <part-of-gif-basename> | |
# Prerequisites: | |
# - keep a butt-load of gifs in your "$HOME/Dropbox/Public/gifs" folder | |
# - Export a DROPBOX_UID variable that has your dropboxusercontent id | |
# - ...like a boss (https://dl.dropboxusercontent.com/u/2372716/gifs/like-a-boss.gif) | |
arg=$1 |
Update: I made this a proper blog post
$.observable = function(model) { | |
model.Vent = $({}); | |
var handleEvent = function(vent, args) { | |
var argArr = Array.prototype.slice.call(args); | |
model.Vent[vent].apply(model.Vent, argArr); | |
return model; | |
}; | |
model.trigger = function() { return handleEvent('trigger', arguments); }; |
#!/usr/bin/env bash | |
ipcs=$(ipcs -m | grep root | grep -c 666) | |
if (( $ipcs > 1 )); then | |
echo "ROOT KIT DETECTED" | mail -s "ROOTKIT ON CCREMIX" thcipriani@gmail.com | |
else | |
echo "we're cool" | |
fi |
http://barclayperkins.blogspot.com/2013/11/lets-brew-wednesday-1923-courage-stout.html
<HEAD> | |
<TITLE></TITLE> | |
<STYLE> | |
PRE{LINE-HEIGHT:1.3;FONT-FAMILTY:MONACO,'COURIER NEW';} | |
</STYLE> | |
</HEAD> | |
<BODY BGCOLOR=BLACK> | |
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; | |
<CENTER> | |
me: | |
@true | |
a: | |
@true | |
sandwich: | |
@[ "$$(id -u)" -eq 0 ] && echo "Okay." || echo "What? Make it yourself." | |
.PHONY: me a sandwich |
#!/usr/bin/env python | |
# http://blog.vrypan.net/2012/12/20/dynamic-dns-with-route53/ | |
from area53 import route53 | |
from boto.route53.exception import DNSServerError | |
import subprocess | |
import sys | |
def get_ip(): | |
p = subprocess.Popen("/usr/bin/dig +short @resolver1.opendns.com myip.opendns.com", stdout=subprocess.PIPE, shell=True) | |
(output, err) = p.communicate() |