Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@brcooley
brcooley / large_token.txt
Created September 21, 2012 07:22
Example of large resumption_token
eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJrZXlzIjogW3siZGF0ZSI6ICIyMDExLTA3LTI1In0sIHsiZGF0ZSI6ICIyMDExLTA3LTI2In0sIHsiZGF0ZSI6ICIyMDExLTA3LTI3In0sIHsiZGF0ZSI6ICIyMDExLTA3LTI4In0sIHsiZGF0ZSI6ICIyMDExLTA3LTI5In0sIHsiZGF0ZSI6ICIyMDExLTA3LTMwIn0sIHsiZGF0ZSI6ICIyMDExLTA3LTMxIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTAxIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTAyIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTAzIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTA0In0sIHsiZGF0ZSI6ICIyMDExLTA4LTA1In0sIHsiZGF0ZSI6ICIyMDExLTA4LTA2In0sIHsiZGF0ZSI6ICIyMDExLTA4LTA3In0sIHsiZGF0ZSI6ICIyMDExLTA4LTA4In0sIHsiZGF0ZSI6ICIyMDExLTA4LTA5In0sIHsiZGF0ZSI6ICIyMDExLTA4LTEwIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTExIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTEyIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTEzIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTE0In0sIHsiZGF0ZSI6ICIyMDExLTA4LTE1In0sIHsiZGF0ZSI6ICIyMDExLTA4LTE2In0sIHsiZGF0ZSI6ICIyMDExLTA4LTE3In0sIHsiZGF0ZSI6ICIyMDExLTA4LTE4In0sIHsiZGF0ZSI6ICIyMDExLTA4LTE5In0sIHsiZGF0ZSI6ICIyMDExLTA4LTIwIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTIxIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTIyIn0sIHsiZGF0ZSI6ICIyMDExLTA4LTIzIn0sIHsiZGF0ZSI
@brcooley
brcooley / gist:4571129
Created January 19, 2013 06:54
Generators
airport_data = [...]
min(calc_min(my_lat, my_long, airport_lat, airport_long) for airport_lat, airport_long in airport_data)
@brcooley
brcooley / stylebot_hn
Last active December 14, 2015 06:49
Custom (dark) theme for hacker news. Plays nice with Hacked Hacker News Chrome extension
* {
color: inherit;
font-family: inherit;
font-size: inherit;
}
.comhead {
color: #aaa;
}
@brcooley
brcooley / gunicorn
Last active January 5, 2016 00:43 — forked from suda/gunicorn
init.d file for gunicorn (not gunicorn_django)
#!/bin/bash
### BEGIN INIT INFO
# Provides: gunicorn
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the gunicorn server
# Description: starts gunicorn using start-stop-daemon
@brcooley
brcooley / web_spotify_play.sh
Last active January 4, 2016 10:29
Easy bash script to play/pause Spotify web player on linux
#!/bin/sh
#
# A script to play/pause songs from the spotify web player
# You should pin the spotify tab, and modify the TAB_POS below
# (e.g. if Spotify is the 3rd tab, replace TAB_POS with ctrl+3)
#
# Requires xdotool, generally available from your package manager
# You'll probably want to bind this to a key
chr=`xdotool search --name chrome | tail -1`
@brcooley
brcooley / api-lolesports-com_docs.md
Last active August 5, 2022 16:35
lolesports.com unofficial api docs

Unofficial documentation

This is an unofficial documentation for the internal lolesports.com api.

This documentation is uncomplete and currently only show all information I got so far. Please help me complete and correct this documentation.

Top level domain

The domain for the intern lolesports.com api is http://api.lolesports.com/api/.

### Keybase proof
I hereby claim:
* I am brcooley on github.
* I am brcooley (https://keybase.io/brcooley) on keybase.
* I have a public key ASCYxqvGZ3KdNelEla4wnadee5e-x5Sxeo6LNAm1MjJu8Ao
To claim this, I am signing this object: