Skip to content

Instantly share code, notes, and snippets.

View flyingoctopus's full-sized avatar

Vincent van Haaff flyingoctopus

  • flyingoctopus
  • Vancouver, BC
View GitHub Profile
Rubinius Crash Report #rbxcrashreport
Error: signal SIGILL
[[Backtrace]]
0 rbx 0x000000010a83d420 _ZN8rubiniusL12segv_handlerEi + 544
1 libsystem_c.dylib 0x00007fff8c266cfa _sigtramp + 26
2 ??? 0x0000000000000006 0x0 + 6
3 rbx 0x000000010a841225 _ZN8rubinius5abortEv + 53
4 rbx 0x000000010a9656bb _ZN8rubinius13ZeroArguments6invokeEPNS_5StateEPNS_12NativeMethodEPNS_23NativeMethodEnvironmentERNS_9ArgumentsE + 59
@flyingoctopus
flyingoctopus / setup.md
Last active August 15, 2018 09:10
Set up Textmate for Rails usage

##Setup Textmate for Rails Dev on OS X

##File/Folder Patterns

Wouldn't it be nice to be able to see hidden files and folders when working on a project in Textmate? As it turns out, it's built right in! Modify a few regex details with the tips below.

package main
import (
"fmt"
"log"
"math/rand"
"regexp"
"strconv"
"strings"
"time"
set t_Co=256
filetype off
"call pathogen#runtime_append_all_bundles()
filetype plugin indent on
set nocompatible
" Security
set modelines=0
set t_Co=256
filetype off
"call pathogen#runtime_append_all_bundles()
filetype plugin indent on
set nocompatible
" Security
set modelines=0

Keybase proof

I hereby claim:

  • I am flyingoctopus on github.
  • I am vincentpants (https://keybase.io/vincentpants) on keybase.
  • I have a public key ASA8aG1NR8zSYb3Y-Xn3SxIa8HxZoKwwCZcAS2HkpGAp1wo

To claim this, I am signing this object:

@flyingoctopus
flyingoctopus / session_task.rb
Created January 9, 2014 22:13
batch create
data_array = []
data = $redis.smembers(:sessions)
data.each do |d|
puts "adding to postgres: #{d}"
hash = eval d
object = hash.symbolize_keys!
puts 'saved!'
data_array.push object
$redis.srem(:sessions, d) # commented out for debugging purposes
@flyingoctopus
flyingoctopus / crontab
Last active January 1, 2016 13:39
better, happier, more productive.
0 9 * * 1-5 ln -f /etc/hosts_worktime /etc/hosts
0 16 * * 1-5 ln -f /etc/hosts_playtime /etc/hosts
@flyingoctopus
flyingoctopus / Gemfile
Created December 12, 2013 01:33 — forked from pcreux/Gemfile
group :production do
gem 'unicorn'
# Enable gzip compression on heroku, but don't compress images.
gem 'heroku-deflater'
# Heroku injects it if it's not in there already
gem 'rails_12factor'
end
@flyingoctopus
flyingoctopus / emily2.pde
Last active December 27, 2015 20:59
even simpler
int pinCount = 4; // the number of pins
int thisPin;
void setup() { // set up the app
for (int thisPin = 1; thisPin <= pinCount ; thisPin++) {
setupPin(thisPin);
}
}
void loop()