As configured in my dotfiles.
start new:
tmux
start new with session name:
| 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 |
| #This is the "site config" for nginx | |
| upstream django { | |
| # Distribute requests to servers based on client IP. This keeps load | |
| # balancing fair but consistent per-client. In this instance we're | |
| # only using one uWGSI worker anyway. | |
| ip_hash; | |
| server unix:/tmp/uwsgi.sock; | |
| } | |
| server { |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/usr/bin/env ruby | |
| require 'base64' | |
| require 'digest' | |
| # get 16 random hex bytes | |
| # | |
| def new_salt | |
| 16.times.inject('') {|t| t << rand(16).to_s(16)} | |
| end |
| # aptitude is incompatible with a terminal in solarized dark. | |
| # So we need to tweak aptitude's color style. | |
| # Put the following lines in `~/.aptitude/config`. | |
| # (And use `sudo -E aptitude` instead of `sudo aptitude`. | |
| Aptitude::UI::Styles { | |
| Default { | |
| bg default; | |
| }; | |
| DepBroken { | |
| fg white; |
| #!/usr/bin/bash | |
| while read f | |
| do | |
| echo "$(git log --format="%at" --reverse "$f" | head -n1) --> $f" | |
| done | sort -n |
| # A sample Guardfile | |
| # More info at https://github.com/guard/guard#readme | |
| require 'guard/guard' | |
| require 'mixlib/shellout' | |
| module ::Guard | |
| class Kitchen < ::Guard::Guard | |
| def start | |
| ::Guard::UI.info("Guard::Kitchen is starting") |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| """Solarized theme for pantheon-terminal | |
| see http://ethanschoonover.com/solarized | |
| """ | |
| import posixpath | |
| import sys | |
| from gi.repository import Gio |