Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dracos
dracos / tile.png
Last active August 29, 2015 14:05
tile.png
@dracos
dracos / packaging.md
Last active August 29, 2015 14:08
The problems with packages
  • Ubuntu trusty:

vagrant@vagrant-ubuntu-trusty-32:$ sudo apt-get install ruby2.0 [...] The following NEW packages will be installed libruby1.9.1 libruby2.0 ruby ruby1.9.1 ruby2.0 rubygems-integration [...] vagrant@vagrant-ubuntu-trusty-32:$ ruby --version ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

@dracos
dracos / curly-quotes
Created December 17, 2014 17:24
Karabiner config for mapping the Mac curly quote shortcuts to what they SHOULD be
<?xml version="1.0"?>
<root>
<item>
<name>Swap curly quote keyboard shortcuts</name>
<identifier>private.swap_curly_quotes</identifier>
<autogen>
__KeyToKey__
KeyCode::BRACKET_LEFT, ModifierFlag::OPTION_L | ModifierFlag::NONE,
KeyCode::BRACKET_RIGHT, ModifierFlag::OPTION_L
</autogen>
@dracos
dracos / keybase.md
Created January 29, 2015 21:33
Keybase GitHub proof

Keybase proof

I hereby claim:

  • I am dracos on github.
  • I am dracos (https://keybase.io/dracos) on keybase.
  • I have a public key whose fingerprint is 30DF 1266 9F1F AEE6 E2F1 E5DD 1BBC AF68 67C3 3852

To claim this, I am signing this object:

@dracos
dracos / gist:fa63c7b279d444338490
Last active August 29, 2015 14:14
Installation output running FixMyStreet vagrant
$ vagrant up --no-color
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: fixmystreet_default_1422611757941_92404
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 3000 => 3000 (adapter 1)
@dracos
dracos / gist:53b026de75eb1da1dfb2
Created February 20, 2015 14:00
Ways to see FixMyStreet confirmation pages
/contact/submit?_test_=1&success=(0|1)
/questionnaire/submit?token=_test_&been_fixed=(Unknown|Yes)&new_state=(confirmed|)
/questionnaire/submit?problem=_test_
/P/_test_
/A/_test_?confirm_type=(subscribe|unsubscribe)
/C/_test_
@dracos
dracos / postactivate
Created February 22, 2015 18:57
Using virtualenv for ruby gems
# Put this in your virtualenv's postactivate
# (if you're using virtualenvwrapper, add to
# ~/.virtualenvs/postactivate (or wherever))
export GEM_HOME="$VIRTUAL_ENV/gems"
export PATH="$GEM_HOME/bin":$PATH
# If you don't want your default ruby gem
# locations searched, uncomment this line
# export GEM_PATH=""
@dracos
dracos / overpass.geojson
Last active August 29, 2015 14:19 — forked from anonymous/overpass.geojson
OpenStreetMap allotments within the Birmingham council boundary
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#http://www.nhs.uk/NHSEngland/Healthcosts/Pages/Prescriptioncosts.aspx
Given a user is dispensed a prescription
When their age is >= 60
Then the prescription cost should be 0
Given a user is dispensed a prescription
And their age is < 16
Then the prescription cost should be 0
> <meta name=viewport content="initial-scale=1.0">
> <style>
> @media all and (max-width: 40em) {
> body {
> display: -webkit-flex;
> display: flex;
> -webkit-flex-direction: column;
> flex-direction: column;
> }
> body > header {