Skip to content

Instantly share code, notes, and snippets.

@dracos
dracos / packaging.md
Last active Aug 29, 2015
The problems with packages
View packaging.md
  • 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 Dec 17, 2014
Karabiner config for mapping the Mac curly quote shortcuts to what they SHOULD be
View curly-quotes
<?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 Jan 29, 2015
Keybase GitHub proof
View keybase.md

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 Aug 29, 2015
Installation output running FixMyStreet vagrant
View gist:fa63c7b279d444338490
$ 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 Feb 20, 2015
Ways to see FixMyStreet confirmation pages
View gist:53b026de75eb1da1dfb2
/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 Feb 22, 2015
Using virtualenv for ruby gems
View postactivate
# 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 Aug 29, 2015 — forked from anonymous/overpass.geojson
OpenStreetMap allotments within the Birmingham council boundary
View overpass.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View free-prescriptions.feature
#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
View bruce.diff
> <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 {