Skip to content

Instantly share code, notes, and snippets.

#/bin/env bash
sudo killall VDCAssistant

Rubyconf

Day One

10:40 The Games Developers Play
11:30 Designing an engineering team: Making room for everyone
2:00 ???
2:50 Uncoupling Systems
4:00 Building for Gracious Failure

Day Two

@krames
krames / interview_questions.md
Created January 20, 2016 19:48
Interview Questions
  1. Tell me a bit about your last project?
  2. What do you like/dislike about ruby?
  3. What is a good application of blocks in ruby?
  4. How would you go about adding a list of employees to a rails application?
  5. What do you do to keep up with tech?
  6. What technologies are you interested in outside of ruby?
@krames
krames / Generate_scaffold.md
Last active August 29, 2015 14:21
How to generate rails scaffold and edit the resulting views.

Generate scaffold

To create a model called HighScore with a game field of type strubg and a score field of type integer you would do the following:

bundle exec rails generate scaffold HighScore game:string score:integer
    invoke  active_record
    create    db/migrate/20130717151933_create_high_scores.rb
    create    app/models/high_score.rb
    invoke    test_unit

Go Bootcamp

All of the course material is open source and available here. I took the 3 day language class. You can find the agenda here.

Highlights

Slices of Slices

Slices of slices behave a little differently than I expected.

docker-compose

I really struggled to get docker-compose installed on my machine. By default the mac does not include pip so I opted to install python using brew. I then tried to install docker-compose and had issues with an incompatible requests (See issue). After switching to a different version of requests, I ran into issues with openssl (See issue.

Ultimately I removed brew's version of python and did the following:

  1. sudo easy_install pip
  2. sudo pip install docker-compose==1.1.0-rc2
  3. sudo pip uninstall requests
  4. sudo pip install requests==2.4.3
def request(verb, endpoint, opts={})
retry_on_auth_failure do
cached_token.request(verb, endpoint, opts)
end
end
def retry_on_auth_failure(retries=1, timeout=0, &block)
attempts_remaining = retries
begin
yield
[color]
ui = auto
[color "branch"]
current = yellow black
local = yellow
remote = magenta
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red reverse
@krames
krames / jenkins_fog.sh
Created April 15, 2014 17:52
This script is used to test the Rackspace fog provider using Jenkins.
#!/bin/bash
source /var/lib/jenkins/.bash_profile
export FOG_RC=/var/lib/jenkins/.fog
# Use the correct ruby
rvm use "ruby-1.9.3-p484@fog_test"
# Set "fail on error" in bash
set -e