Skip to content

Instantly share code, notes, and snippets.

Skylar Saveland skyl

Block or report user

Report or block skyl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
skyl / install.rb
Last active Feb 11, 2020
Homebrew without sudo
View install.rb
# chmod +x install.rb
# ./install.rb
HOMEBREW_CACHE = '/Library/Caches/Homebrew'
skyl /
Created Oct 3, 2014
Selectively unfollow people who don't follow you on twitter with gruesome and gory confirmation
import time
import sys
import tweepy
consumer_key = ""
consumer_secret = ""
key = ""
secret = ""
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
skyl / gist:ea2ab1c62a547e381411
Created May 16, 2014
Virtualenv/pip on Jython2.7b2
View gist:ea2ab1c62a547e381411
OSX - 10.8.5
❯ virtualenv-2.7 --version
❯ ./jython/dist/bin/jython
Jython 2.7b2+ (default:f6f7196d27a5, May 15 2014, 20:10:22)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_55
Type "help", "copyright", "credits" or "license" for more information.
import random
def play_defensive(them):
if random.random() <= 0.04:
skyl / gist:7922856
Created Dec 12, 2013
How to debug? ctypes.CDLL('libSystem.dylib')
View gist:7922856
>>> import ctypes
>>> ctypes.CDLL('libSystem.dylib')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/.../lib/python2.7/ctypes/", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libSystem.dylib, 6): image not found
skyl / gist:7922746
Last active Dec 31, 2015
billiard upgrade to on OSX
View gist:7922746
> python
Python 2.7.3 (default, Dec 4 2013, 11:24:08)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import billiard
>>> billiard.VERSION
(2, 7, 3, 31)
>>> ^D
> pip install -U billiard
skyl / command line
Last active Dec 25, 2015
include+when bug in ansible?
View command line
% ansible-playbook pb.yml -i h -e "BOOL=that"
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [wtf] *******************************************************************
ok: [localhost] => {
"msg": "that"
skyl / gist:4679760
Last active Dec 11, 2015
PyCon Registration Bug
View gist:4679760
#. Login (via google)
#. Go to register
#. Do not select the conference registration radio (corporate/hobbyist/etc) and only buy 1 t-shirt
#. Pay for the t-shirt
#. Land on summary page and it says you are not registered for conference (register here button)
#. Click "register" button.
skyl /
Created May 6, 2012
bl timingarp branch review
import random
import operator
from itertools import permutations
from bl.scheduler import clock, Tempo # , Meter
from bl.arp import RandomArp, OrderedArp, ScheduleArp # , ArpSwitcher
from bl.orchestra.midi import Player
from tutor.complib import drums_f
skyl /
Created Apr 30, 2012
Simple Timing arp idea
from itertools import cycle
from bl.arp import RandomArp, OrderedArp, ArpSwitcher
from bl.orchestra.midi import Player, ChordPlayer
from bl.utils import getClock
from tutor.complib import piano_f
piano = piano_f()
You can’t perform that action at this time.