Skip to content

Instantly share code, notes, and snippets.

View robertely's full-sized avatar
💭
🍕

Robert Ely robertely

💭
🍕
View GitHub Profile
@robertely
robertely / build-go1.8.linux-arm7.sh
Last active October 9, 2020 21:52
Bash script for building golang 1.8 for the NTC CHIP, or any other arm 7 device.
#!/bin/bash
#######################
# Downloads and builds golang.
# Does not install godoc, you may want to `go get` that after install.
# To install:
# sudo tar -C /usr/local -xzfv go1.8.linux-arm7.tar.gz
# export PATH=$PATH:/usr/local/go/bin

Keybase proof

I hereby claim:

  • I am robertely on github.
  • I am electriccrowbar (https://keybase.io/electriccrowbar) on keybase.
  • I have a public key whose fingerprint is 11DF CECE CDC6 D9D5 E739 CEF8 01FB 0658 F812 6726

To claim this, I am signing this object:

Shutterstock Infrastructure Engineer Nov 2013 — present (2 yrs, 3 mos) At Shutterstock my responsibilities include a fairly wide range of topics from developer tools and deployment technologies to monitoring, configuration management, and distributed systems. Alongside my technical roles, I also participate in an on-call shift as well as an internal developer help desk and participate in planning meetings under an agile workflow.
Areas of focus include: ● Large queuing systems, specifically RabbitMQ
● Orchestration tools like Ansible and Mcollective
● Extensive work in configuration management, including Chef and Ansible
● Designed and built a large scale monitoring infrastructure with Sensu ● Development of several complex internal tools using Python, Go, and Bash

#!/bin/bash
# STRAP IN THIS TAKES ABOUT 3 HOURS ON A PI 1
##
# Build deps
##
sudo apt-get install -y git ruby-dev libudev-dev libasound2-dev libdbus-1-dev libraspberrypi0 libraspberrypi-bin libraspberrypi-dev libboost-system-dev libboost-filesystem-dev libboost-date-time-dev libboost-locale-dev libfreeimage-dev libfreetype6-dev libeigen3-dev libcurl4-openssl-dev libasound2-dev cmake g++-4.7
sudo gem install fpm --no-ri --no-rdoc
rm -rf ~/workingdir
mkdir ~/workingdir
#Overscan Information.
overscan_left=-32
overscan_right=-32
overscan_top=-32
overscan_bottom=-32
framebuffer_width=800
framebuffer_height=480
# Disable spi and i2c, we need these pins.
dtparam=spi=off
@robertely
robertely / plexhometheater.sh
Last active August 29, 2015 14:14
Plex: Actually shut down when shutdown is issued.
#!/bin/sh
export XBMC_HOME=/opt/plexhometheater/share/XBMC
#Use export AE_ENGINE=SOFT to disable pulse audio
#export AE_ENGINE=SOFT
# VERY STUPID HACK TO MAKE SURE IT STARTS ON THE SECOND SCREEN.
wmctrl -k on
xdotool mousemove 2823 849 click 1
#Stupid hack for non-fucking-up-dual-screens full screen.
Secrets of war (1998)
Urandom(highball):
In a pubglass, Pick three of the five liqueurs from the speed rack at random, 1.5oz each over ice. Fill with any thing but water from the soda gun.
DevNull(martini):
2oz Vodka
1oz Simple Syrup
Splash of vermouth poured into ice filled mixer.
Shake and strain into martini glass.
Garnish with lemon twist.
package main
import (
"fmt"
"log"
"regexp"
"strings"
"os/user"
"os/exec"
"io/ioutil"