Skip to content

Instantly share code, notes, and snippets.

Avatar
👀
excited

Greg Burek gregburek

👀
excited
View GitHub Profile
@gregburek
gregburek / ThinkUp on EC2 Ubuntu User-Data Script
Created Jul 27, 2011 — forked from waxpancake/ThinkUp on EC2 Ubuntu User-Data Script
Install script for non-interactively installing ThinkUp and prerequisites
View ThinkUp on EC2 Ubuntu User-Data Script
#!/bin/bash -ex
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
# install ThinkUp on EC2 Ubuntu instance:
#
# @spara 12/23/10
# @waxpancake 1/3/11
# install required packages
sudo apt-get update
@gregburek
gregburek / rateLimitDecorator.py
Created Dec 7, 2011
Rate limiting function calls with Python Decorators
View rateLimitDecorator.py
import time
def RateLimited(maxPerSecond):
minInterval = 1.0 / float(maxPerSecond)
def decorate(func):
lastTimeCalled = [0.0]
def rateLimitedFunction(*args,**kargs):
elapsed = time.clock() - lastTimeCalled[0]
leftToWait = minInterval - elapsed
if leftToWait>0:
@gregburek
gregburek / vagrant.org
Created Jan 12, 2012
CentOS Box for Vagrant
View vagrant.org
@gregburek
gregburek / ideal ops.md
Created May 24, 2012 — forked from bhenerey/ideal ops.md
ideal ops checklist
View ideal ops.md

In a perfect world, where things are done well, not just quickly, I would expect to find the following when joining the company:

Documentation

  • Accurate / up-to-date systems architecture diagram

  • Accurate / up-to-date network diagram

  • Out-of-hours support plan

  • Incident management plan

@gregburek
gregburek / hack.sh
Created Jun 18, 2012 — forked from erikh/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
View caveatPatchor.js
// ~/Library/Application Support/Propane/unsupported/caveatPatchor.js
var mapping = {};
var loadEmotes = function(response) {
response.forEach(function(a){a.emoticons.forEach(function(b){mapping[b.code] = b.image})});
window.chat.speaker.filters.unshift(
function(m){
var match;
if(match=m.match(/^:(.*):$/)){
return mapping[match[0]];
View whisper-clean.py
import os
import os.path
import sys
from graphite.render.hashing import ConsistentHashRing
instances = []
unwelcome_instances = []
for arg in sys.argv[1:]:
unwelcome = False
View gist:7472711
For someone that is rather technical, you should be able to just pound the online exams and take the exam.
As for a radio, HRO (http://hamradio.com) has stores in Sunnyvale and Oakland
# Study Materials
- http://www.eham.net/exams/
- http://qrz.com/hamtest/
- https://ssl.qrz.com/bookstore (The Gordon West Book is used qute a bit)
# Register for an Exam
View -
install ack
install autojump
install bazaar
install brew-cask
install coreutils
install ctags
install docker
install ec2-api-tools
install fftw
install gawk
View .zshrc
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else