Skip to content

Instantly share code, notes, and snippets.

View aezell's full-sized avatar
😶

Alex Ezell aezell

😶
View GitHub Profile
@aezell
aezell / pynash help
Last active August 29, 2015 14:19 — forked from anonymous/pynash help
# Make sure that the_flying_circus() returns True
def the_flying_circus():
if (5 != 7) and (6 > 4):
print "You have Mastered Silly Walks!"
elif 4 < 7:
print "And now for something completely different."
else:
print "AAAAAAARRRRRRGH"
#!/bin/sh
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. Copy the file into your repo at `.git/hooks/pre-push`
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push`
@aezell
aezell / pre-push
Last active January 4, 2016 06:28 — forked from jaredhoyt/pre-push
#!/usr/bin/env ruby
# This script has been slightly adapted from:
# http://blog.bigbinary.com/2013/09/19/do-not-allow-force-pusht-to-master.html
class PrePushHandler
def handle
reject if force_pushing? && pushing_to_master?
end