Skip to content

Instantly share code, notes, and snippets.

View keithpitt's full-sized avatar
🍔
This is not a burger

Keith Pitt keithpitt

🍔
This is not a burger
View GitHub Profile
package main
import (
"bytes"
"fmt"
"io"
"os"
"os/exec"
"path"
"sync"
@keithpitt
keithpitt / gist:61acb5700f75b078f199
Last active October 1, 2015 23:27
Installing the Buildkite Agent on FreeBSD
# Install bash
$ sudo pkg install bash
$ sudo sh -c 'echo "fdesc /dev/fd fdescfs rw 0 0" >> /etc/fstab'
$ sudo mount -a
$ bash
# To change your default shell to bash, you can type:
$ sudo chsh -s /usr/local/bin/bash freebsd
# This bit isn't great, but the agent requires the bash executable to be at /bin/bash
### Keybase proof
I hereby claim:
* I am keithpitt on github.
* I am keithpitt (https://keybase.io/keithpitt) on keybase.
* I have a public key whose fingerprint is 287D 82C1 F448 4545 23E6 AE11 2E32 9798 2C44 10DA
To claim this, I am signing this object:
window = glfwCreateWindow(1024, 768, "Test", NULL, NULL);
glfwMakeContextCurrent(window);
glfwSwapInterval(1);
while(1) {
@keithpitt
keithpitt / HelloPolycodeApp.cpp
Last active December 20, 2015 14:19
Full screening bug in Polycode
#include "HelloPolycodeApp.h"
HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
core = new POLYCODE_CORE(view, 1400,900,true,true,0,0,90);
x = 0, leftVelocity = 0, rightVelocity = 0;
y = 0, yVelocity = 0;
speed = 10;
gravity = 1.2;
quit = false;
#!/usr/bin/env ruby
require 'rubygems'
require 'celluloid'
class Thingy
include Celluloid
def initialize(name)
@name = name
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/Users/keithpitt/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from /Users/keithpitt/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `block in connect'
from /Users/keithpitt/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/timeout.rb:51:in `timeout'
from /Users/keithpitt/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `connect'
from /Users/keithpitt/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/net/http.rb:861:in `do_start'
from /Users/keithpitt/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/net/http.rb:856:in `start'
from /Users/keithpitt/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.0.pre.8/lib/bundler/vendor/net/http/persistent.rb:628:in `start'
Updating git://github.com/rails/rails.git
Updating git://github.com/rails/journey.git
Updating git://github.com/rails/arel.git
Updating git://github.com/rails/activerecord-deprecated_finders.git
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (>= 0) ruby depends on
railties (~> 3.2.0) ruby
❯ bundle
Fetching git://github.com/rails/rails.git
remote: Counting objects: 337189, done.
remote: Compressing objects: 100% (84427/84427), done.
remote: Total 337189 (delta 261813), reused 323477 (delta 249669)
Receiving objects: 100% (337189/337189), 49.58 MiB | 152 KiB/s, done.
Resolving deltas: 100% (261813/261813), done.
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Bundler could not find compatible versions for gem "bundler":
❯ time ~/.rbenv/shims/ruby -e 'exit' redthread-provisioner/git/master
~/.rbenv/shims/ruby -e 'exit' 0.10s user 0.11s system 97% cpu 0.210 total
❯ time ~/.rbenv/versions/1.9.3-p194-perf/bin/ruby -e 'exit' redthread-provisioner/git/master
~/.rbenv/versions/1.9.3-p194-perf/bin/ruby -e 'exit' 0.02s user 0.02s system 94% cpu 0.047 total