- Ergo Depot Jarvis Desk, as recommended by The Wirecutter
- CumulusPRO Anti-Fatigue Mat, also recommended by The Wirecutter
- Humanscale M8 Monitor Arm, used from eBay
- Aukey iPad Stand
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'net/http' | |
require 'tempfile' | |
require 'uri' | |
feed_url = "http://www.nasa.gov/rss/dyn/lg_image_of_the_day.rss" | |
feed = Net::HTTP.get(URI.parse(feed_url)) | |
image_filename = feed.split('url="http://www.nasa.gov/sites/default/files/')[1].split('"')[0] | |
image_url = "http://www.nasa.gov/sites/default/files/#{image_filename}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
ua=$(defaults read com.apple.universalaccess whiteOnBlack) | |
cg=$(defaults read com.apple.CoreGraphics DisplayUseInvertedPolarity) | |
if [ "$ua" != "$cg" ]; then | |
echo "Values do not match" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x27[1;32mdocker output will be in this color.x27[0m | |
x27[1;32m==> docker: Creating a temporary directory for sharing data...x27[0m | |
x27[1;32m==> docker: Pulling Docker image: ubuntux27[0m | |
x27[0;32m docker: Using default tag: latestx27[0m | |
x27[0;32m docker: latest: Pulling from library/ubuntux27[0m | |
x27[0;32m docker: d3a1f33e8a5a: Already existsx27[0m | |
x27[0;32m docker: c22013c84729: Already existsx27[0m | |
x27[0;32m docker: d74508fb6632: Already existsx27[0m | |
x27[0;32m docker: 91e54dfb1179: Already existsx27[0m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
type Nameable struct { | |
Name string | |
} | |
type Person struct { | |
Nameable | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PIDFILE := tmp/server.pid | |
PORT := 4567 | |
default: test stop | |
start: $(PIDFILE) | |
$(PIDFILE): | |
rackup --daemonize --pid $(PIDFILE) --port $(PORT) config.ru | |
sleep 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
n = (ENV['N'] || 1_000_000).to_i | |
HASH = { foo: 1, bar: 2 }.freeze | |
Benchmark.bm(20) do |x| | |
x.report("case") do | |
n.times do | |
case :baz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vault server -dev | |
export VAULT_ADDR='http://127.0.0.1:8200' | |
vault auth <token> | |
vault auth-enable userpass | |
vault write auth/userpass/users/justin password=secret policies=root | |
$ curl $VAULT_ADDR/v1/auth/userpass/login/justin -d '{ "password": "secret" }' | |
{ | |
"lease_id": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/awslabs/aws-sdk-go/aws" | |
"github.com/awslabs/aws-sdk-go/service/s3" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku_app.default: Creating... | |
all_config_vars.#: "" => "<computed>" | |
git_url: "" => "<computed>" | |
heroku_hostname: "" => "<computed>" | |
name: "" => "terraform-output-bug" | |
region: "" => "us" | |
stack: "" => "<computed>" | |
web_url: "" => "<computed>" | |
heroku_app.default: Creation complete |