Skip to content

Instantly share code, notes, and snippets.

View adambair's full-sized avatar

Adam Bair adambair

View GitHub Profile
@visnup
visnup / import_issues.rb
Created July 31, 2011 19:54
hacky script to import pivotal tracker csv into github issues
#!/usr/bin/env ruby
require 'rubygems'
require 'FasterCSV'
require 'httparty'
require 'json'
class GitHub
include HTTParty
base_uri 'https://api.github.com'
@dialtone
dialtone / pivotal_to_github.py
Created September 23, 2011 00:48
Migrate from Pivotal Tracker to GitHub issues
import re
import sys
import csv
import json
import urllib2
from datetime import datetime
from collections import defaultdict as dd
@vlado
vlado / gist:1877457
Last active April 3, 2018 08:36
Postgres on macos or OSX - Fix
# ** ERROR 1 **
# FATAL: lock file "postmaster.pid" already exists
# HINT: Is another postmaster (PID 4646) running in data directory "/usr/local/var/postgres"?
#
# ** ERROR 2 **
# Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
#
# To fix one of this errors:
cat /usr/local/var/postgres/postmaster.pid # pid is the number on first line
@qrush
qrush / Monorail.md
Last active December 11, 2015 06:49
Make Railguns fun again in Halo 4.

Monorail

I wanted a custom game mode that makes Railguns fun to use. I've play tested this with 4-6 people, all on different teams, and it works great on large and small maps. The Railgun with Bottomless Clip enabled lets you fire it continually without reloading, and with infinite ammo. Add in some faster movement and jumping, and it becomes an insanely chaotic Tribes or Unreal Tournament like one-shot, one-kill mode.

Here it is for you to enjoy! You can grab it off my gamertag - Doctor Q - or just copy the settings here. If a setting isn't listed, it hasn't been modified from the default.

Game options:

  • Name: Monorail
  • Description: Please stand clear of the doors.
@adambair
adambair / work-with-me.md
Last active December 18, 2015 00:58
Full-time Rails Developer at Openbay.com (Cambridge, MA) [06/03/13]

Full-time Rails Developer at Openbay.com (Cambridge, MA) [06/03/13]

Enjoy writing software? Software that takes the pain out of having your auto serviced? EXCELLENT. Join us at Openbay.com. We're an online marketplace that connects vehicle owners to service providers (mechanics, shops, etc) through real time quotes, payments, and messaging. Vehicle owners love us because it's easier and cheaper to get their car serviced; we take the guesswork out of choosing the right shop. Provders love us because they gain more customers while spending less on advertizing.

Still interested? On the fence? Questions? Is working for a starup risky? What will I be doing? Who will I be working with? Should I quit my job right now and join them (probably)? LET'S TALK (adam@openbay.com).

You'll be our second developer hire. You'll be working with me. For me? With me. We'll work together. Oh the beautiful things we shall build! When we're finished vehicles will practiclly fix themselves! Openbay already has real customers

@adam-stokes
adam-stokes / bobobogo.lua
Created June 11, 2013 17:14
Using imapfilter to pipe messages through bogofilter
all = myserver.INBOX:select_all()
spam = Set {}
unsure = Set {}
for _, mesg in ipairs(all) do
mbox, uid = unpack(mesg)
text = mbox[uid]:fetch_message()
flag = pipe_to('bogofilter', text)
if (flag == 0) then
table.insert(spam, mesg)
elseif (flag == 2) then
@XVilka
XVilka / TrueColour.md
Last active July 5, 2024 20:54
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@mattiaslundberg
mattiaslundberg / arch-linux-install
Last active May 26, 2024 17:26
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@TheNicholasNick
TheNicholasNick / 01 Install Arch Linux Guest on VirtualBox.md
Last active November 26, 2017 14:24
Simple to the point no fluff install Arch Linux Guest on VirtualBox
@tbeseda
tbeseda / commit-msg
Created March 24, 2014 18:26
Append current Rdio track to commit message
#!/usr/bin/ruby
message_file = ARGV[0]
def app_is_running?(app_name)
`ps aux` =~ /#{app_name}/ ? true : false
end
while true
if app_is_running?('Rdio.app')