Skip to content

Instantly share code, notes, and snippets.

@seanmckaybeck
seanmckaybeck / catart
Created August 22, 2013 02:12
Cat ASCII art that I use on my inital login prompt
_.-| | |\__/,| (`\
{ | | |o o |__ _) )
"-.|___| _.( T ) ` /
.--'-`-. _((_ `^--' /_< \
.+|______|__.-||__)`-'(((/ (((/

Bomb Lab necessities

The bomb lab is most easily completed if you understand the following tools and commands. Also, if I am describing a program, assume that you run it from command line.

Strings

In case you have never used strings before it basically just tells you all the strings in an executable. If I were to run it on the bomb I would simply run

@seanmckaybeck
seanmckaybeck / bad.py
Last active August 29, 2015 14:05
A pre-commit hook for checking PEP 8 compliance
import os
def some_function(a, b):
return a*b
if __name__ == '__main__':
print some_function(2,
3)
@seanmckaybeck
seanmckaybeck / analyze.py
Last active November 4, 2019 13:20
Simple script for analyzing keywords about Ferguson protests. Requires tweepy 2.3.0. Note that you need an API key. store in file called 'config', each key on own line, in following order: API_KEY, API_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET
'''
A script for analyzing twitter stats on Ferguson
'''
import json
import re
import tweepy
def get_api():
'''
'''
Author: Sean Beck
A script for downloading a Twitter user's
entire tweet archive. Note that it is limited
to only grabbing up to 3200 of a user's tweets
per a Twitter limitation mentioned on their documentation
page: https://dev.twitter.com/rest/reference/get/statuses/user_timeline
'''
import csv
@seanmckaybeck
seanmckaybeck / pir_wifi.ino
Created February 12, 2015 00:41
A sketch for connecting a PIR to wireless and sending an email when motion is detected.
/*
The MIT License (MIT)
Copyright (c) 2015 Sean M Beck
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
import time
from subprocess import Popen
from PIL import ImageFont
from PIL import Image
from PIL import ImageDraw
import requests
from bs4 import BeautifulSoup
URL = 'http://www.silverpriceoz.com/silver-price-per-ounce/'
'''
something something docstring
'''
from Crypto.Hash import SHA
BLOCK_SIZE = SHA.digest_size
O_CONST = 0x5c
I_CONST = 0x36
@seanmckaybeck
seanmckaybeck / make_creature.lua
Last active August 29, 2015 14:20
Code taken from https://gist.github.com/warmist/8563110. Stripped out anything not important for creating a simple wild creature
args={...}
function gen_attribute(array)
local a=math.random(0,#array-2)
return math.random(array[a],array[a+1])
end
function get_body_size(caste,time)
'''
Easy Mac
Copyright (2015) Sean Beck
Licensed under Creative Commons Attribution-ShareAlike 4.0 International
See: https://creativecommons.org/licenses/by-sa/4.0/
Easily change your MAC address on Linux using `ifconfig`
'''
#!/usr/bin/python2.7