A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |
| #!/bin/bash | |
| # | |
| # create a new user called airvideo | |
| # $ sudo adduser airvideo | |
| # place this file in /etc/init.d/airvideo-server | |
| # change the file permission to executable: | |
| # $ sudo chmod +w /etc/init.d/airvideo-server | |
| # add it to default run level | |
| # $ sudo update-rc.d airvideo-server defaults | |
| # |
| # Twitter stream analyser and network activator (TSANA) | |
| # | |
| # This script analyses a twitter stream for keywords using the twitter | |
| # streaming api - off the back of it, it then hits a user defined url | |
| # In my case this is being used to tell an Arduino to pulse a light but | |
| # could be used for anything arbitrary. | |
| # | |
| # Author: Andrew Fisher | |
| # Version: 0.3 | |
| # Date: 20/10/2011 |
| From: Chris DeSalvo <chris.desalvo@voxer.com> | |
| Subject: Why we can't process Emoji anymore | |
| Date: Thu, 12 Jan 2012 18:49:20 -0800 | |
| Message-Id: <AE459007-DF2E-4E41-B7A4-FA5C2A83025F@voxer.com> | |
| --Apple-Mail=_6DEAA046-886A-4A03-8508-6FD077D18F8B | |
| Content-Transfer-Encoding: quoted-printable | |
| Content-Type: text/plain; | |
| charset=utf-8 |
| #!/bin/sh | |
| # | |
| # Salt minion | |
| ################################### | |
| # LSB header | |
| ### BEGIN INIT INFO | |
| # Provides: salt-minion | |
| # Required-Start: network |
| #!/bin/bash | |
| # * * * * * root /path/to/riak_graphite_stats.sh | |
| set -e | |
| SOURCE=$(hostname) | |
| GRAPHITE_PORT=2003 | |
| GRAPHITE_SERVER="server" | |
| PREFIX="riak_stats" | |
| STATUS=$(/usr/sbin/riak-admin status) |
| import contextlib | |
| import subprocess | |
| # Unix, Windows and old Macintosh end-of-line | |
| newlines = ['\n', '\r\n', '\r'] | |
| def unbuffered(proc, stream='stdout'): | |
| stream = getattr(proc, stream) | |
| with contextlib.closing(stream): | |
| while True: | |
| out = [] |
| import json | |
| from urllib2 import urlopen | |
| import socket | |
| from time import sleep | |
| UDP_ADDRESS = "carbon.hostedgraphite.com" | |
| UDP_PORT = 2003 | |
| RIAK_STATS_URL='http://localhost:11098/stats' | |
| HG_API_KEY='Your Api Key from HostedGraphite.com' |
| #!/usr/bin/ruby | |
| # | |
| # This script fixes /usr/local only. | |
| # | |
| # 6th January 2010: | |
| # Modified the script to just fix, rather than install. - rpavlik | |
| # | |
| # 30th March 2010: | |
| # Added a check to make sure user is in the staff group. This was a problem | |
| # for me, and I think it was due to me migrating my account over several |