This file contains 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 ( | |
"bytes" | |
"fmt" | |
"io" | |
"os" | |
"os/exec" | |
"path" | |
"sync" |
This file contains 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
# 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 |
This file contains 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
### 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: |
This file contains 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
window = glfwCreateWindow(1024, 768, "Test", NULL, NULL); | |
glfwMakeContextCurrent(window); | |
glfwSwapInterval(1); | |
while(1) { |
This file contains 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
#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; |
This file contains 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/env ruby | |
require 'rubygems' | |
require 'celluloid' | |
class Thingy | |
include Celluloid | |
def initialize(name) | |
@name = name |
This file contains 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
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' |
This file contains 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
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 |
This file contains 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
❯ 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": |
This file contains 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
❯ 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 |