Skip to content

Instantly share code, notes, and snippets.

View danbee's full-sized avatar

Daniel Barber danbee

View GitHub Profile

Keybase proof

I hereby claim:

  • I am danbee on github.
  • I am danbarber (https://keybase.io/danbarber) on keybase.
  • I have a public key whose fingerprint is F3DF 3736 1C4A E11B 15B3 6425 1753 B269 F69F 2B48

To claim this, I am signing this object:

@danbee
danbee / elasticsearch.repo
Created September 23, 2014 15:30
Yum repo file for Elasticsearch 1.3.x
[elasticsearch-1.3]
name=Elasticsearch repository for 1.3.x packages
baseurl=http://packages.elasticsearch.org/elasticsearch/1.3/centos
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1
// Add a function to jQuery to randomise selectors
$.fn.randomize = function(selector){
(selector ? this.find(selector) : this).parent().each(function(){
$(this).children(selector).sort(function(){
return Math.random() - 0.5;
}).detach().appendTo(this);
});
return this;
};
@danbee
danbee / private.xml
Created January 13, 2016 11:42
Karabiner configuration to swap Backquote(`) and Section(§) on a UK Filco Tenkeyless.
<?xml version="1.0"?>
<root>
<deviceproductdef>
<productname>FKBN88M_UKB2</productname>
<productid>0x2221</productid>
</deviceproductdef>
<item>
<name>Swap Backquote(`) and Section(§) on Filco Tenkeyless UK</name>
<identifier>private.deviceproductdef</identifier>
@danbee
danbee / Rakefile
Created November 30, 2016 17:05
Webpack build with RSpec
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require_relative 'config/application'
Rails.application.load_tasks
task(:default).clear
# Run webpack:build before :spec
task default: ["webpack:build", :spec]
// This #include statement was automatically added by the Particle IDE.
#include "HttpClient/HttpClient.h"
int button_blue = D0;
int button_red = D1;
int button_reset = D2;
int led = D7;
bool latch_blue = false;
@danbee
danbee / Rakefile
Last active January 25, 2018 23:09
Rakefile for Jekyll that reads environment variables into config
require 'jekyll'
task default: %w[build]
desc "Build the site"
task :build do
config = Jekyll.configuration({
url: ENV["SITE_URL"],
})
site = Jekyll::Site.new(config)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Mouse]
"SmoothMouseXCurve"=hex:00,00,00,00,00,00,00,00,00,a0,00,00,00,00,00,00,00,40,\
01,00,00,00,00,00,00,80,02,00,00,00,00,00,00,00,05,00,00,00,00,00
"SmoothMouseYCurve"=hex:00,00,00,00,00,00,00,00,66,a6,02,00,00,00,00,00,cd,4c,\
05,00,00,00,00,00,a0,99,0a,00,00,00,00,00,38,33,15,00,00,00,00,00
@danbee
danbee / vimr_leader_s_crash.log
Created November 29, 2018 20:55
Crash log from pressing Leader-S to run a spec
Process: VimR [92263]
Path: /Applications/VimR.app/Contents/MacOS/VimR
Identifier: com.qvacua.VimR
Version: SNAPSHOT-294 (294)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: VimR [92263]
User ID: 501
Date/Time: 2018-11-29 15:53:44.215 -0500
@danbee
danbee / 64squares.club.sh
Last active November 30, 2018 19:55
64squares name resolution
$ whois 64squares.club
% IANA WHOIS server
% for more information on IANA, visit http://www.iana.org
% This query returned 1 object
refer: whois.nic.club
domain: CLUB
organisation: .CLUB DOMAINS, LLC