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

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/...
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.
Host *+*
ProxyCommand ssh $(echo %h | sed 's/+[^+]*$//;s/\([^+%%]*\)%%\([^+]*\)$/\2 -l \1/;s/:/ -p /') nc $(echo %h | sed 's/^.*+//;/:/!s/$/ %p/;s/:/ /')
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
class Foo extends Backbone.model
init: ->
@on "change:date change:time", ->
@set {correct_time: @get("date") + @get("time")},
this
@amerine
amerine / tpl-basicapp.rb
Created May 15, 2012 07:28 — forked from jetspeed/tpl-basicapp.rb
Rails 3, RSpec, Factory_Girl, HAML, SASS, Devise, JQuery, Backbone.js, jammit, haml.js
## Rails App Template
## Useful for Rails 3.0.x and Ruby 1.9.2
## Run using $ rails new [appname] -JT -m tpl-basicapp.rb
# ========
# = Gems =
# ========
# pre-install spork, dydram and elastic_searchable
run "gem install spork -v 0.9.0.rc --pre"
@amerine
amerine / connection_fix.rb
Created December 31, 2011 00:28 — forked from defunkt/connection_fix.rb
MySQL server has gone away fix
# If your workers are inactive for a long period of time, they'll lose
# their MySQL connection.
#
# This hack ensures we re-connect whenever a connection is
# lost. Because, really. why not?
#
# Stick this in RAILS_ROOT/config/initializers/connection_fix.rb (or somewhere similar)
#
# From:
# http://coderrr.wordpress.com/2009/01/08/activerecord-threading-issues-and-resolutions/
yum erase ruby ruby-libs
rpm -Uvh http://rbel.co/rbel5
yum install ruby