Skip to content

Instantly share code, notes, and snippets.

View avinson's full-sized avatar
🤠
Cowboying up

Aaron Vinson avinson

🤠
Cowboying up
View GitHub Profile
#!/bin/bash
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
#!/bin/bash
##
# Spotlight: Fix spotlight cpu issue
##
IFS=$'\n'
killspotlight="no"
if [ -e /Library/Managed\ Preferences/com.apple.Spotlight.plist ];
then
echo "System: Spotlight Managed Pref Plist found. Removing..."
rm -rf /Library/Managed\ Preferences/com.apple.Spotlight.plist
# Define a job
job "demo" {
# Spread tasks between us-west-1 and us-east-1
datacenters = ["it-us-west-2"]
type = "service"
# Create a web front end using a docker image
task "nginx" {

Keybase proof

I hereby claim:

  • I am avinson on github.
  • I am avinson (https://keybase.io/avinson) on keybase.
  • I have a public key whose fingerprint is 37A4 F964 9EDB 4639 B7F6 7F9D 818C DBD8 B961 47CE

To claim this, I am signing this object:

#!/usr/bin/env ruby
def anagram(word)
dict = ["cab", "bac", "pool", "loop", "polo"]
dict & word.chars.to_a.permutation.map(&:join)
end
puts anagram("oopl")
#!/usr/bin/python
import sys, boto.logs, time
from datetime import datetime
log_group = 'haproxy-access'
logs = boto.logs.connect_to_region('us-east-1')
streams = sys.argv[1:]
def find_events(token, stream):