Skip to content

Instantly share code, notes, and snippets.

@austinkeeley
austinkeeley / captions.sbv
Last active August 29, 2015 14:07
Audio captions for "Building an Ember.js Application"
0:00:01.029,0:00:05.030
Hi, this is Tom and in this screencast we're
going to show you how to build a blog
0:00:05.003,0:00:06.962
reading application using Ember.js.
0:00:07.259,0:00:10.610
Ember is a JavaScript framework for
building ambitious
@austinkeeley
austinkeeley / Gruntfile.js
Last active August 29, 2015 14:08
Grunt Starter
module.exports = function(grunt) {
// Load our plugins
grunt.loadNpmTasks('grunt-concurrent');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
@austinkeeley
austinkeeley / doc-gen.sh
Created January 13, 2015 02:17
Bootstrap standalone documentation generator
#!/usr/bin/bash
# doc-gen.sh is a wrapper around the marked Node.js package that turns markdown
# into HTML and then does some fancy Bootstrap styling to it so we get nice
# clean looking documentation.
#
# Usage: doc-gen.sh your_documentataion_file.md > output_file.html
BOOTSTRAP_STYLE='"'"'this is a test to see if it '"'"'"'"'"'"'"'"'works'"'"'"'"'"'"'"'"' well enough'"'"'
/*!
* Grunt
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev
*/
module.exports = function(grunt) {
grunt.initConfig({
// Sass
@austinkeeley
austinkeeley / elk-it-up.sh
Last active August 29, 2015 14:26
ELK IT UP
#!/bin/sh
# Ugh... I have to download all 3 programs? psssh...
ELASTICSEARCH_VERSION="1.7.1"
LOGSTASH_VERSION="1.5.3"
KIBANA_VERSION="3.1.3"
curl -L "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.tar.gz" -o "elasticsearch-$ELASTICSEARCH_VERSION.tar.gz"
curl -L "https://download.elastic.co/logstash/logstash/logstash-$LOGSTASH_VERSION.tar.gz" -o "logstash-$LOGSTASH_VERSION.tar.gz"
curl -L "https://download.elastic.co/kibana/kibana/kibana-$KIBANA_VERSION.tar.gz" -o "kibana-$KIBANA_VERSION.tar.gz"
@austinkeeley
austinkeeley / public-key.asc
Created March 29, 2017 13:30
Austin Keeley PGP public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQENBFjapy4BCADfiGBLezvJoH963Tjf4JWVNtEkV7rtabQkfnvO85cSs0XwSUYk
KpjxwDO7ZVV6r+kppEzy12sKO8j2fe3yY+oJmNUU+d5sKkubyFSdbafIdq6rvCJC
stXxnGxKcDtUQIBioGXPBElk8IC3RncyMJ/QSZrmxV8M0eVRpAgKTamzHpATvO+A
bEYMvDn8fWUIZW1QBjryWksGDdIy997yfFtsw1ruK0ZBQxZ/22KZJx+x2FDWH91s
mehQ4q4vhJ04WXgK4HDfK2H4EOwknkvtWdSP4vvKrZDAgTkYBuSRIqW49OBWxQaw
YSLYha3TaWSTcydMEldJy1XVMh4PZp8ymlI1ABEBAAG0J0F1c3RpbiBLZWVsZXkg
PGF1c3Rpbi5rZWVsZXlAZ21haWwuY29tPokBPQQTAQgAJwIbAwULCQgHAgYVCAkK
@austinkeeley
austinkeeley / Makefile
Last active April 29, 2017 14:43
Setuid wrapper and Makefile
# Makefile for the wrapper
# The wrapper target is going to prompt you for your root password
# so don't run this if you are set to do stuff non-interactively.
THIS_DIR = $(shell pwd)
DEFINES=-DPING_AGENT_PATH="\"$(THIS_DIR)\""
wrapper: wrapper.o
gcc -o wrapper wrapper.c $(DEFINES)
sudo chown root wrapper
{
"brand": "kvm",
"vcpus": 1,
"autoboot": false,
"ram": 1024,
"resolvers": ["208.67.222.222", "208.67.220.220"],
"disks": [
{
"boot": true,
"model": "virtio",
import logging
logging.basicConfig(level=logging.INFO, format='[%(asctime)s %(levelname)s] %(message)s', datefmt='%Y %b %d %H:%M:%S')
@austinkeeley
austinkeeley / disassemble.md
Last active June 11, 2019 11:21 — forked from jarun/disassemble.md
Guide to disassemble

prerequisites

  • Compile the program in gcc with debug symbols enabled (-g)
  • Do NOT strip the binary
  • To generate assembly code using gcc use the -S option: gcc -S hello.c

utilities

objdump