Skip to content

Instantly share code, notes, and snippets.

View gregburek's full-sized avatar
👀
excited

Greg Burek gregburek

👀
excited
View GitHub Profile
@gregburek
gregburek / ThinkUp on EC2 Ubuntu User-Data Script
Created July 27, 2011 23:14 — forked from waxpancake/ThinkUp on EC2 Ubuntu User-Data Script
Install script for non-interactively installing ThinkUp and prerequisites
#!/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 December 7, 2011 01:51
Rate limiting function calls with Python Decorators
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 January 12, 2012 22:08
CentOS Box for Vagrant
@gregburek
gregburek / ideal ops.md
Created May 24, 2012 01:00 — forked from bhenerey/ideal ops.md
ideal ops checklist

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 June 18, 2012 07:03 — forked from erikh/hack.sh
OSX For Hackers
#!/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
#
// ~/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]];
import os
import os.path
import sys
from graphite.render.hashing import ConsistentHashRing
instances = []
unwelcome_instances = []
for arg in sys.argv[1:]:
unwelcome = False
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
@gregburek
gregburek / -
Last active August 29, 2015 14:05
install ack
install autojump
install bazaar
install brew-cask
install coreutils
install ctags
install docker
install ec2-api-tools
install fftw
install gawk
@gregburek
gregburek / .zshrc
Last active August 29, 2015 14:07 — forked from SlexAxton/.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