Skip to content

Instantly share code, notes, and snippets.

@aaronbassett
aaronbassett / XSS
Last active September 5, 2015 06:15
XSS Test string
'';!--"<XSS>=&{()}
@aaronbassett
aaronbassett / gource.sh
Last active September 26, 2015 01:38
Create funky animated video using gource
gource --title "Level 2" --logo "/home/aaron/site-branding.png" --highlight-users --seconds-per-day 10 --camera-mode track --auto-skip-seconds 1 --file-idle-time 0 --max-files 0 --stop-at-end --hide date,progress --user-friction .5 -800x600 -r 30 -o - | ffmpeg -y -b 3000K -r 30 -f image2pipe -vcodec ppm -i - -vcodec libx264 -threads 0 lvl2-gource.mp4
@aaronbassett
aaronbassett / markov.py
Last active October 7, 2015 01:17
Generate a "Markov" tweet from a user's timeline
import requests
import json
import random
class Markov(object):
def __init__(self, words):
self.cache = {}
self.words = words
self.word_size = len(self.words)
@aaronbassett
aaronbassett / copy.sh
Last active October 8, 2015 00:10
Find all images in ~ and copy to current directory
find ~ | grep -i '\.jpg$\|\.jpeg$\|\.gif$\|\.png$' | xargs -I% cp % ./
@aaronbassett
aaronbassett / providers.md
Last active March 31, 2024 17:41
Email sub addressing for different providers

Google

  • Domains: gmail.com, googlemail.com
  • Qualifiers: +
  • Regex: \+([ -~]*)@
  • Notes: Periods in address are ignored. foo.bar@ == foobar@

Yahoo

  • Domains: yahoo.*
  • Qualifiers: -
  • Regex: \-([ -~]*)@
#!/bin/bash
# This is untested but you get the basic idea
# Why? Cause fuck dependencies that's why ;)
if [[ $# -lt 1 ]]; then
echo "Usage: $0 INFILE"
exit 1
fi

Keybase proof

I hereby claim:

  • I am aaronbassett on github.
  • I am aaronbassett (https://keybase.io/aaronbassett) on keybase.
  • I have a public key whose fingerprint is F804 D17C 6396 487D FF5D EF9C F2D0 7E56 518A E6C3

To claim this, I am signing this object:

@aaronbassett
aaronbassett / model.py
Created April 13, 2015 11:27
Basic Django model
# -*- coding: utf-8 -*-
# !important
# Native
# Django
from django.db import models
from django.conf import settings
# 3rd Party
from model_utils.models import TimeStampedModel
from autoslug import AutoSlugField

Keybase proof

I hereby claim:

  • I am aaronbassett on github.
  • I am aaronbassett (https://keybase.io/aaronbassett) on keybase.
  • I have a public key ASAHOgsumPlM3Ffu7yfeFqfkHJWZyA5x_5mEDVfAMjcGiwo

To claim this, I am signing this object:

@aaronbassett
aaronbassett / may_the_4th.json
Created June 7, 2017 17:26 — forked from judy2k/may_the_4th.json
May the 4th be with you!
[{
"action": "talk",
"voiceName": "Brian",
"text": "May the fourth be with you!"
}]