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
After upgrading to Mountain Lion : 10.8 I noticed that I was getting Python errors which prevented me from starting vim: | |
Traceback (most recent call last): | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 565, in <module> | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 547, in main | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 278, in addusersitepackages | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 253, in getusersitepackages | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 243, in getuserbase | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 523, in get_config_var | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 419, in get_config_vars |
% hadoop jar /usr/lib/hadoop-0.20/hadoop-examples.jar grep songs.csv output '20' | |
12/04/09 09:28:04 WARN snappy.LoadSnappy: Snappy native library is available | |
12/04/09 09:28:04 INFO util.NativeCodeLoader: Loaded the native-hadoop library | |
12/04/09 09:28:04 INFO snappy.LoadSnappy: Snappy native library loaded | |
12/04/09 09:28:04 INFO mapred.FileInputFormat: Total input paths to process : 1 | |
12/04/09 09:28:05 INFO mapred.JobClient: Running job: job_201204031541_0033 | |
12/04/09 09:28:06 INFO mapred.JobClient: map 0% reduce 0% | |
12/04/09 09:28:09 INFO mapred.JobClient: Task Id : attempt_201204031541_0033_m_000003_0, Status : FAILED | |
java.lang.Throwable: Child Error | |
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:242) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#! /usr/bin/env python | |
import redis | |
import random | |
import pylibmc | |
import sys | |
r = redis.Redis(host = 'localhost', port = 6389) | |
mc = pylibmc.Client(['localhost:11222']) |
Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.
If you plan on switching between different branches (e.g. git checkout master-experiment
then revert back with git checkout master
) you will loose your child
folder from this tutorial (because it's in your
.gitignore and is not part of your master
branch).
#! /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. |