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
| #! /usr/bin/python | |
| from lxml import html | |
| import datetime | |
| import requests | |
| from collections import defaultdict | |
| def parse(html_string, impact=None): | |
| """ |
| #!/bin/sh | |
| # Called by "git push" after it has checked the remote status, | |
| # but before anything has been pushed. | |
| # | |
| # If this script exits with a non-zero status nothing will be pushed. | |
| # | |
| # Steps to install, from the root directory of your repo... | |
| # 1. Copy the file into your repo at `.git/hooks/pre-push` | |
| # 2. Set executable permissions, run `chmod +x .git/hooks/pre-push` |
| # -*- coding: utf-8 -*- | |
| """ | |
| Python logging tuned to extreme. | |
| """ | |
| __author__ = "Mikko Ohtamaa <mikko@opensourcehacker.com>" | |
| __license__ = "MIT" |
| # Simple installer script for using the Evernote SDK in Pythonista | |
| # | |
| # This script should be run from the root directory. In order to keep things | |
| # tidy, it installs the module and all its dependencies in a directory named | |
| # 'evernote-sdk'. In order to be able to import it, you have to add that to | |
| # your import path, like this: | |
| # | |
| # import sys | |
| # sys.path.append('evernote-sdk') | |
| # |
| #!/usr/bin/python | |
| """Check the MANIFEST.in file in a Python source package for completeness. | |
| Here's the plan: | |
| This script works by building a source distribution archive (by running | |
| setup.py sdist), then checking the file list in the archive against the | |
| file list in version control (Subversion, Git, Mercurial, Bazaar are | |
| supported). | |
| Since the first check can fail to catch missing MANIFEST.in entries when |
| #compdef develop | |
| local subcmds | |
| subcmds=( | |
| 'activate' | |
| 'checkout' | |
| 'deactivate' | |
| 'help' | |
| 'info' |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| newpg=9.6.1 # set to new PG version number | |
| oldpg=`pg_config --version | cut -d' ' -f2` | |
| # PG 96. upgrades the readline to v7, which breaks anything linked against readline v6, like ruby via ruby-build. | |
| # I *think* this should prevent it from installing v7. But if weird shit happens with various rubies, | |
| # you'll have to reinstall them. | |
| brew pin readline | |
| # Stop current Postgres server | |
| brew services stop postgresql |
| #!/usr/bin/env ruby | |
| require 'time' | |
| require 'erb' | |
| require 'cgi' | |
| filename = "~/.gitlogger" | |
| ## File format, One per line | |
| # Repo Name:/path/to/base | |
| dayone = false # log to day one? (true or false) | |
| textlog = false # "~/Dropbox/nvALT2.2/GitLogger.md" # set to false to disable |