- Incremental progress over big bangs - Small changes that compile and pass tests
- Learning from existing code - Study and plan before implementing
- Pragmatic over dogmatic - Adapt to project reality
- Clear intent over clever code - Be boring and obvious
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule GenServerTpl do | |
| @moduledoc """ | |
| A GenServer template for a "singleton" process. | |
| """ | |
| use GenServer | |
| # Initialization | |
| def start_link(opts \\ []) do | |
| GenServer.start_link(__MODULE__, opts, [name: __MODULE__]) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Networking | |
| MAC (?:%{CISCOMAC:UNWANTED}|%{WINDOWSMAC:UNWANTED}|%{COMMONMAC:UNWANTED}) | |
| CISCOMAC (?:(?:[A-Fa-f0-9]{4}\.){2}[A-Fa-f0-9]{4}) | |
| WINDOWSMAC (?:(?:[A-Fa-f0-9]{2}-){5}[A-Fa-f0-9]{2}) | |
| COMMONMAC (?:(?:[A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}) | |
| IPV6 ((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa- | |
| f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))| | |
| (([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\. | |
| (25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}) | |
| {1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scottish Regions | |
| Speyside: Low peat, high with nutty/fruit flavors. (Apple, pear, honey, vanilla, and spice) | |
| Speyside Distilleries: The Glenlivet, The Macallan, The Balvenie, Aberlour, Tomintoul, Glen Moray. | |
| Highlands: Fruitcake and oaky smoke flavors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=pymultimonaprs | |
| [Service] | |
| Type=simple | |
| ExecStart=/usr/local/bin/pymultimonaprs --syslog | |
| ExecStop=/usr/bin/killall pymultimonaprs | |
| [Install] | |
| WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ring the bell if any background window rang a bell | |
| set -g bell-action any | |
| # Default termtype. If the rcfile sets $TERM, that overrides this value. | |
| set -g default-terminal screen-256color | |
| # Keep your finger on ctrl, or don't | |
| bind-key ^D detach-client | |
| # Create splits and vertical splits |
I hereby claim:
- I am gmcintire on github.
- I am gmcintire (https://keybase.io/gmcintire) on keybase.
- I have a public key whose fingerprint is 4A50 2296 C394 0DC5 96E1 26B5 0A7B 07F6 F910 0CD7
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Account::Application.routes.draw do | |
| ###### ARCHWAY USER ROUTES ###### | |
| # Users | |
| devise_for :users,:path => ':api_version/users', :controllers => {:sessions => 'sessions', | |
| :registrations => 'users', | |
| :passwords => 'passwords', | |
| :confirmations => 'confirmations'} |
Installs ruby-2.0.0-p0 on ubuntu via checkinstall so it's in your package manager and you can remove it.
Quick install:
curl -L https://gist.github.com/ngauthier/5039249/raw/1868bf4714052b40e2bb7fdf3f40fbeb5d730bca/ruby-2-install-ubuntu.sh | bash -s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| NGINX_VERSION=1.3.8 | |
| TMP_PATH=/tmp | |
| # Fetch and extract Nginx | |
| cd $TMP_PATH | |
| wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz | |
| tar xvfz nginx-$NGINX_VERSION.tar.gz | |
| cd nginx-$NGINX_VERSION |
NewerOlder