View gist:11172938
require 'open-uri'
(0..9).to_a.reverse.each do |first|
%w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z).each do |second|
(0..9).each do |third|
%w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z).each do |fourth|
puts '.'
(0..99).each do |fifth|
fifth = "0#{fifth}" if fifth < 10
try_code = "#{first}#{second}#{third}#{fourth}#{fifth}" #7T2Z03
View gist:9598165
### Keybase proof
I hereby claim:
* I am barttenbrinke on github.
* I am barttenbrinke ( on keybase.
* I have a public key whose fingerprint is 0A3B 665C 519E EC2F 5704 187C 4427 04E3 83E6 878C
To claim this, I am signing this object:
View gist:5714203
# Script to run innobackupex script (for all databases on server), check for success, and apply logs to backups.
# (C)2013 Bart ten Brinke @ Retrosync
# Based on the following script:
# (C)2010 Owen Carter @ Mirabeau BV
# This script is provided as-is; no liability can be accepted for use.
# You are free to modify and reproduce so long as this attribution is preserved.
View gist:5505525
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/thread.rb:72:in `sleep': No live threads left. Deadlock? from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/thread.rb:72:in `block (2 levels) in wait'
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/thread.rb:68:in `block in wait'
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/thread.rb:66:in `handle_interrupt'
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/thread.rb:66:in `wait'
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/thread.rb:188:in `block in pop'
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/thread.rb:187:in `handle_interrupt'
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/thread.rb:187:in `pop'
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/thread.rb:335:in `pop'
/app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0.rc1/lib/action_controller/metal/live.rb:51:in `each'
/app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0.rc1/lib/action_dispatch/http/response.rb:42:in `each'
View gist:5452123
# -*- encoding : utf-8 -*-
require 'spec_helper'
## Only run the sphinx test if we can actually run them
if sphinx_test_possible?
describe "Sphinx Integration Test" do
describe "searching for employees" do
View gist:3413754
diff --git a/vm/builtin/string.cpp b/vm/builtin/string.cpp
index 49e5628..52e7848 100644
--- a/vm/builtin/string.cpp
+++ b/vm/builtin/string.cpp
@@ -944,20 +944,9 @@ namespace rubinius {
native_int limit;
bool assign(native_int chr) {
- int j, i = set[chr];
View gist:3351360
rubinius master rake
(in /Users/user/programming/rubinius)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby vm/codegen/field_extract.rb vm/builtin/basicobject.hpp vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/alias.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/class.hpp vm/builtin/compiledmethod.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/immediates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/lookuptable.hpp vm/builtin/ffi_pointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/randomizer.hpp vm/builtin/regexp.hpp vm/builtin/staticscope.hpp vm/builtin/encoding.hpp vm/builtin/string.hpp vm/builtin/symbol.hpp vm/builtin/thread
View gist:3350586
creating extconf.h
creating Makefile
compiling readline.c
readline.c: In function 'username_completion_proc_call':
readline.c:1389: error: 'username_completion_function' undeclared (first use in this function)
readline.c:1389: error: (Each undeclared identifier is reported only once
readline.c:1389: error: for each function it appears in.)
make: *** [readline.o] Error 1
rake aborted!
View gist:2948629
server:~ $ brew install -v fuse4x-kext
sh: line 1: 9774 Abort trap: 6 /Applications/ -version 2> /dev/null
sh: line 1: 9776 Abort trap: 6 /Applications/ -version 2> /dev/null
sh: line 1: 9785 Abort trap: 6 /Applications/ -version 2> /dev/null
==> Downloading
Already downloaded: /Library/Caches/Homebrew/fuse4x-kext-0.9.1.tgz
/usr/bin/tar xf /Library/Caches/Homebrew/fuse4x-kext-0.9.1.tgz
==> /usr/bin/xcodebuild -sdk macosx10.7 -configuration Release -alltargets MACOSX_DEPLOYMENT_TARGET=10.7 SYMROOT=build ARCHS=i386 x86_64 ONLY_ACTIVE_ARCH=NO
View gist:2786800
class Base64
def self.encode64(string)
def self.decode64(string)
data = NSData.dataFromBase64String(string)
NSString.alloc.initWithData(data, encoding:NSUTF8StringEncoding)