Skip to content

Instantly share code, notes, and snippets.

View caius's full-sized avatar
👻

Caius Durling caius

👻
View GitHub Profile
@caius
caius / 1.md
Last active August 29, 2015 13:56

Hi Caius,

I wanted to touch base with you about an exciting new opportunity for a growing startup who are part of a multi billion turnover company.

The current split is with a team of 5, junior and mid weight developers You will be working across a Ruby on Rails, Javascript and Heroku and will come on board as a lead developer helping to manage and mentor as well as code

If of interest, please get in touch.

Jason Rumney
Director

@caius
caius / keybase.md
Created March 12, 2014 15:07
keybase.md

Keybase proof

I hereby claim:

  • I am caius on github.
  • I am caius (https://keybase.io/caius) on keybase.
  • I have a public key whose fingerprint is 30DD C4FD E1EF 3BA8 C131 08B3 963E 5690 438C FCD8

To claim this, I am signing this object:

<?php
$person = array(
"person" => array(
"name" => "Caius"
)
);
var_dump($person);
/*
array(1) {
# encoding: utf-8
module Rubocop
module Cop
module Style
# This cop checks for ^/$ usage in regexps and reports violations
class RegexAnchors < Cop
def on_regexp(node)
string_parts = node.children.select { |child| child.type == :str }
package main
import (
"github.com/stianeikeland/go-rpio"
"time"
)
var green rpio.Pin
var red rpio.Pin
var blue rpio.Pin
@caius
caius / ext_dl_extconf_rb.patch
Created April 11, 2014 09:16
Patch for 1.9.3-p545 to enable `dl' extension compiling under clang. Thanks to http://lists.freebsd.org/pipermail/freebsd-ruby/2014-February/004085.html for the patch
diff --git a/ext/dl/extconf.rb b/ext/dl/extconf.rb
index 898e4a7..122cf19 100644
--- a/ext/dl/extconf.rb
+++ b/ext/dl/extconf.rb
@@ -1,7 +1,9 @@
require 'mkmf'
if RbConfig::CONFIG['GCC'] == 'yes'
- $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer"
+ # $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer"
@caius
caius / nginx-extras
Last active August 29, 2015 14:00
BB Nginx package info
caius@nonus:~$ aptitude show nginx-extras
Package: nginx-extras
State: installed
Automatically installed: no
Version: 1:1.2.9-1bbox1+ng~precise1
Priority: extra
Section: httpd
Maintainer: John Leach <john@brightbox.co.uk>
Architecture: i386
Uncompressed Size: 2,179 k
sub vcl_recv {
if (req.http.host != "www.thomas-cached-site.com" && req.http.host != "thomas-cached-site.com") {
/* We're only caching stuff for thomas-cached-site.com */
return (pass);
}
}
class RandomUnavailable < StandardError
attr_reader :unavailable_method
def self.for(*methods)
Module.new do
singleton_class.send(:define_method, :included) do |klass|
klass.instance_eval do
methods.each do |m|
define_method(m) { raise RandomUnavailable.new(m) }
end
a = Struct.new(:fred)
b = Struct.new(:fred)
a == b # => false
class George < Struct.new(:name)
end
# simulate require __FILE__
class George < Struct.new(:name)