Skip to content

Instantly share code, notes, and snippets.

@sunshinekitty
sunshinekitty / leaguelib.py
Created January 28, 2015 03:03
League Spammer
# -*- coding: utf-8 -*-
"""
leaguelib.py
~~~~~~~~~
Includes class for interacting with League API
:copyright: (c) 2015 by Alex Edwards.
"""
@sunshinekitty
sunshinekitty / update-adblock-dnsmasq.py
Created September 27, 2016 13:01
A script to block ads via dnsmasq
#!/usr/bin/env python
from urllib2 import urlopen
from collections import OrderedDict
import re
import os
import sys
def is_valid_hostname(hostname):
if len(hostname) > 255:
return False
@sunshinekitty
sunshinekitty / Caddyfile
Created November 25, 2016 21:16
Caddy config for Github Pages
tears.io {
header / {
# Enable HTTP Strict Transport Security (HSTS) to force clients to always connect via HTTPS
Strict-Transport-Security "max-age=31536000;"
# Enable cross-site filter (XSS) and tell browser to block detected attacks
X-XSS-Protection "1; mode=block"
# Prevent some browsers from MIME-sniffing a response away from the declared Content-Type
X-Content-Type-Options "nosniff"
# Disallow the site to be rendered within a frame (clickjacking protection)
X-Frame-Options "DENY"
#!/usr/bin/env bash
__powerline() {
# Unicode symbols
readonly PS_SYMBOL_DARWIN=''
readonly PS_SYMBOL_LINUX='$'
readonly PS_SYMBOL_OTHER='%'
readonly K8_SYMBOL='۞'
readonly GIT_BRANCH_SYMBOL='⑂ '
package main
import (
"fmt"
"math/rand"
"net/http"
"goji.io"
"goji.io/pat"
"github.com/Sirupsen/logrus"
set-window-option -g automatic-rename
set-option -g history-limit 10000
set-option -g pane-active-border-fg brightblue
set-option -g status-fg brightblue
set-option -g status-bg black
set-option -g status-position top
bind r source-file ~/.tmux.conf
bind a set-window-option synchronize-panes

Keybase proof

I hereby claim:

  • I am sunshinekitty on github.
  • I am edwards (https://keybase.io/edwards) on keybase.
  • I have a public key ASC8R50TnYQ6_KtJCLQmPbUSIANVZcmNqm8E-FsBRqwuPAo

To claim this, I am signing this object: