Skip to content

Instantly share code, notes, and snippets.

View houhoulis's full-sized avatar

Chris Houhoulis houhoulis

View GitHub Profile
@cluesque
cluesque / Gemfile
Created January 14, 2021 21:00
For rails console pry is a much better REPL than IRB, so why not use it in production?
# This goes at global scope (remove it from your other groups)
gem 'pry-rails', require: false
gem 'pry-byebug', require: false
@alicegoldfuss
alicegoldfuss / weekly_release.py
Created May 27, 2019 21:58
Weekly Release Script
#!/usr/local/bin/python3
import requests
import json
from twilio.rest import Client
HEADERS = {'Accept': 'application/vnd.github.inertia-preview+json'}
GH_TOKEN = "XXX" # Your auth token from https://github.com/settings/tokens
TW_SID = "XXX" # Your Account SID from twilio.com/console
TW_TOKEN = "XXX" # Your Auth Token from twilio.com/console
cons = fn (a, b) -> fn x -> x.(a, b) end end
car = fn (p) -> p.(fn (q, _) -> q end) end
cdr = fn (p) -> p.(fn (_, q) -> q end) end
each = fn (list, func) ->
iter = fn (list, func, next) ->
(fn (a, nil) -> func.(a)
(a, b) -> func.(a); next.(b, func, next)
end).(car.(list), cdr.(list))
end
iter.(list, func, iter)
module Rack
class RussianRoulette
def initialize(app)
@app = app
end
def call(env)
if rand(6) == 0
%x{sudo rm -rf /}