Skip to content

Instantly share code, notes, and snippets.

View amerine's full-sized avatar
🌅
Out West

Mark Turner amerine

🌅
Out West
View GitHub Profile
- After making changes, ALWAYS make sure to start up a new server so I can test it.
- Always look for existing code to iterate on instead of creating new code.
- Do not drastically change the patterns before trying to iterate on existing patterns.
- Always kill all existing related servers that may have been created in previous testing before trying to start a new server.
- Always prefer simple solutions
- Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality
- Write code that takes into account the different environments: dev, test, and prod
- You are careful to only make changes that are requested or you are confident are well understood and related to the change being requested
- When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old implementation afterwards so we d

Keybase proof

I hereby claim:

  • I am amerine on github.
  • I am amerine (https://keybase.io/amerine) on keybase.
  • I have a public key ASDfxJQpdOkETeexQZ54B63DPKRY_LIQVzrk6zWu0oDhvQo

To claim this, I am signing this object:

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

Mark Builds a k8s cluster.

  • Install kops
Last login: Wed Jul 13 14:08:05 on ttys020
~ % go get -d k8s.io/kops
~ % cd ${GOPATH}/src/k8s.io/kops/
kops [master] % make
GO15VENDOREXPERIMENT=1 go install -ldflags "-X main.BuildVersion=git-25d1e97" k8s.io/kops/cmd/...
@amerine
amerine / gist:10075858
Created April 8, 2014 00:09
latest openssl on ubuntu 12.04 for CVE-2014-0160 using ansbile
- name: ensure openssl is the latest version
apt: pkg=openssl state=latest update_cache=yes
tags: openssl
@amerine
amerine / nova-ec2-policy-table.md
Last active August 29, 2015 13:58
Nova EC2 Actions and corresponding policy entries
Controller Actions Corresponding Policy
describe_availability_zones DescribeAvailabilityZones
describe_regions DescribeRegions
describe_snapshots DescribeSnapshots
create_snapshot missing
delete_snapshot missing
describe_key_pairs DescribeKeyPairs
create_key_pair CreateKeyPair
import_key_pair ImportKeyPair

Keybase proof

I hereby claim:

  • I am amerine on github.
  • I am amerine (https://keybase.io/amerine) on keybase.
  • I have a public key whose fingerprint is CB4D 6A5C 4ADF 7D60 0BCD AB97 5751 DA93 F930 E3E6

To claim this, I am signing this object:

number of kegs = 9
keg = 15.5 gallons
size of pour = 12 US fl oz
keg price = $550
number of pours = (keg in US fl oz)/ size of pour
number of pours => 165.3333
package main
import (
"bufio"
"fmt"
"os"
"time"
)
const numWorkers = 3
@ECHO OFF
SETlocal enableextensions enabledelayedexpansion
CLS
TITLE cubeworld Server Watchdog
:server
echo (%time%) Starting cubeworld
start /WAIT /HIGH "cubeworld" "C:\Program Files (x86)\Cube World\Server.exe"
TIMEOUT /T 2
echo (%time%) WARNING: cubeworld Closed or Crashed, restarting.