Skip to content

Instantly share code, notes, and snippets.

View Crashthatch's full-sized avatar
⛰️
Horizon Explorer

Tom Fletcher Crashthatch

⛰️
Horizon Explorer
  • Arrow Software Development
  • Bath, UK
View GitHub Profile
@Crashthatch
Crashthatch / dmesg
Last active December 11, 2015 03:39
xbian@xbian:~# dmesg
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.6.11+ (root@xbian) (gcc version 4.7.3 20121001 (prerelease) (crosstool-NG 1.17.0) ) #3 PREEMPT Tue Jan 8 22:27:29 CET 2013
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: BCM2708
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 105472
[ 0.000000] free_area_init_node: node 0, pgdat c056f670, node_mem_map c0619000
@Crashthatch
Crashthatch / gist:5157673
Created March 14, 2013 00:03
Facebook mobile app referrer bug demonstration
Click the following 2 links on a mobile device (using a recent browser that supports rel="noreferrer", like the latest Safari (iOS), Android Browser or Chrome (Android)) to see the problem:<BR /><BR />
<a href="http://apps.facebook.com/friendwheel">Link sends referrer</a> - Results in "".
<BR />
<a href="http://apps.facebook.com/friendwheel" rel="noreferrer">Link without referrer</a> - Redirects to the app correctly.
@Crashthatch
Crashthatch / dabblet.css
Created September 22, 2013 11:51
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@Crashthatch
Crashthatch / paypalRecurring
Created March 5, 2014 23:06
Recurring payment Paypal subscription with instant confirmation of first month
First Call:
USER: '***',
PWD: '***',
SIGNATURE: '***',
METHOD: 'SetExpressCheckout',
VERSION: 86,
L_BILLINGTYPE0: 'RecurringPayments',
L_BILLINGAGREEMENTDESCRIPTION0: 'Recurring Monthly Subscription - Small',
PAYMENTREQUEST_0_AMT: 19.95,
PAYMENTREQUEST_0_TAXAMT: 3.32,
06-03 16:58:48.791: E/ActivityThread(29064): Activity io.cordova.hellocordova.CordovaApp has leaked ServiceConnection org.altbeacon.beacon.BeaconManager$1@334fcbca that was originally bound here
06-03 16:58:48.791: E/ActivityThread(29064): android.app.ServiceConnectionLeaked: Activity io.cordova.hellocordova.CordovaApp has leaked ServiceConnection org.altbeacon.beacon.BeaconManager$1@334fcbca that was originally bound here
06-03 16:58:48.791: E/ActivityThread(29064): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1158)
06-03 16:58:48.791: E/ActivityThread(29064): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1052)
06-03 16:58:48.791: E/ActivityThread(29064): at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:2156)
06-03 16:58:48.791: E/ActivityThread(29064): at android.app.ContextImpl.bindService(ContextImpl.java:2139)
06-03 16:58:48.791: E/ActivityThread(29064): at android.content.ContextWrapper.bindService(ContextWrapper.java:559)
06-03 16:58:48.791: E/Activi

#Idiots Guide to Using littleBits cloudBit API

##Introduction

  1. Connect a cloudBit to your network using the instructions at http://control.littlebitscloud.cc/
  2. Find out your AccessToken
  • visit http://control.littlebitscloud.cc/
  • on the left hand side select any of your cloudBits
  • using the tab bar at the bottom select settings
  • scroll down and copy your AccessToken
@Crashthatch
Crashthatch / docker-machine env debug log
Created August 23, 2015 18:39
docker-machine env daemon not yet responding
C:\Users\Tom>docker-machine -D env default --shell=cmd
executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo default --machinereadable
STDOUT: name="default"
groups="/"
ostype="Linux 2.6 / 3.x / 4.x (64-bit)"
UUID="345f9308-8e80-47f7-b319-7bfee6e390c9"
CfgFile="C:\\Users\\Tom\\.docker\\machine\\machines\\default\\default\\default.vbox"
SnapFldr="C:\\Users\\Tom\\.docker\\machine\\machines\\default\\default\\Snapshots"
LogFldr="C:\\Users\\Tom\\.docker\\machine\\machines\\default\\default\\Logs"
hardwareuuid="345f9308-8e80-47f7-b319-7bfee6e390c9"
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
@Crashthatch
Crashthatch / latest
Created April 15, 2017 17:18
Response from /latest/
{
"name": "d3",
"platform": "NPM",
"description": "Data-Driven Documents",
"homepage": "https://d3js.org",
"repository_url": "git+https://github.com/d3/d3.git",
"normalized_licenses": [
"BSD-3-Clause"
],
"rank": 26,
@Crashthatch
Crashthatch / 4.8.0
Created April 15, 2017 17:23
response for 4.8.0 in url
{
"name": "d3",
"platform": "NPM",
"description": "Data-Driven Documents",
"homepage": "https://d3js.org",
"repository_url": "git+https://github.com/d3/d3.git",
"normalized_licenses": [
"BSD-3-Clause"
],
"rank": 26,