Skip to content

Instantly share code, notes, and snippets.

// Source for the Accidental Tech Podcast (ATP) T-Shirt:
// http://www.marco.org/2014/04/29/atp-shirts
//
// By Troy Gaul, June 2, 2014.
//
// Based on Obj-C veresion by Marco Arment, April 28, 2014. MIT license.
// https://gist.github.com/marcoarment/2542cd28cb5df0aa97d8
import UIKit

#Intro As a systems engineer you will work with a small DevOps team supporting existing systems, and helping to build and deploy new ones. We are a Linux server environment operating mostly in VMs.

#Responsibilities:

  • Help support a production stack that supports scalable, stable, and fast back-end services.
  • Develop a deep understanding of dependencies within our infrastructure, so that you can help avoid and mitigate security, reliability and performance exposures.
  • Communicate the design and operation of the production environment to non engineers.
  • Own back-end services like our databases, and server side applications as well as front-end services like web based end user tools, infrastructure components like RabbitMQ, and everything in between

#Requirements:

module WAAD
class Connector
attr_reader :client
def initialize
@client = connection(credentials)
end
def credentials
# Makefile for a go project
#
# Author: Jon Eisen
# site: joneisen.me
#
# Targets:
# all: Builds the code
# build: Builds the code
# fmt: Formats the source files
# clean: cleans the code
@jpweber
jpweber / gist:3924305
Created October 20, 2012 18:38 — forked from stefanschmidt/toggle-screen-sharing
Enable Screen Sharing on Lion via Command Line Interface
# Enable Screen Sharing
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist
# Disable Screen Sharing
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.screensharing.plist
@jpweber
jpweber / ruby_spinner
Last active October 27, 2015 03:24
spinner
def show_wait_spinner(fps=10)
chars = %w[| / - \\]
delay = 1.0/fps
iter = 0
spinner = Thread.new do
while iter do # Keep spinning until told otherwise
print chars[(iter+=1) % chars.length]
sleep delay
print "\b"
end
@jpweber
jpweber / Asset.m
Created July 21, 2013 01:55
ultimate check for nil from wil shipley
if ([pushedCompleteTransaction.manuallySetTransactionDate isKindOfClass:[NSNull class]]
|| ([pushedCompleteTransaction.manuallySetTransactionDate respondsToSelector:@selector(length)]
&& ![pushedCompleteTransaction.manuallySetTransactionDate respondsToSelector:@selector(count)]
&& [(NSData *)pushedCompleteTransaction.manuallySetTransactionDate length] == 0)
|| ([pushedCompleteTransaction.manuallySetTransactionDate respondsToSelector:@selector(count)]
)){
formattedDate = [dateFormatterIn dateFromString:pushedTransaction.timeStamp];
NSLog(@"using original timestamp");
@jpweber
jpweber / Asset.txt
Created September 17, 2013 19:46
vi cheat sheet
Cursor movement
h - move left
j - move down
k - move up
l - move right
w - jump by start of words (punctuation considered words)
W - jump by words (spaces separate words)
e - jump to end of words (punctuation considered words)
E - jump to end of words (no punctuation)
@jpweber
jpweber / Asset.txt
Created September 20, 2013 15:27
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
enable airdrop over wired ethernet
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
killall finder
the next line was on the black tree secrets page.
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -int
@jpweber
jpweber / Asset.sh
Created September 23, 2013 18:13
make terminal beep sound
echo -e "\007"