Skip to content

Instantly share code, notes, and snippets.

@burningtree
burningtree / subreg-ddns.php
Created October 23, 2013 07:04
PHP script for updating DNS zone record with current external IP on subreg.cz via SOAP API
<?php
/* subreg-ddns.php
* PHP script for updating DNS zone record with
* current external IP on subreg.cz via SOAP API
*
* author: Jan Stransky <jan.stransky@arnal.cz>
* usage: php subreg-ddns.php
* licence MIT
*/
@burningtree
burningtree / gist:7350765
Created November 7, 2013 07:56
Hackintosh Bluetooth edimax fix IOBluetoothFamily.kext/Contents/PlugIns/BroadcomBluetoothHostControllerUSBTrans port.kext/Contents/Info.plist
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport</string>
<key>IOClass</key>
<string>BroadcomBluetoothHostControllerUSBTransport</string>
<key>IOProviderClass</key>
<string>IOUSBDevice</string>
<key>idProduct</key>
<integer>1</integer>
<key>idVendor</key>
@burningtree
burningtree / en.js
Created December 9, 2013 09:21
justboin image
/**
* Justboil.me - a TinyMCE image upload plugin
* jbimages/langs/en.js
*
* Released under Creative Commons Attribution 3.0 Unported License
*
* License: http://creativecommons.org/licenses/by/3.0/
* Plugin info: http://justboil.me/
* Author: Viktor Kuzhelnyi
*
@burningtree
burningtree / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@burningtree
burningtree / keybase.md
Last active August 29, 2015 14:16
keybase.md

Keybase proof

I hereby claim:

  • I am burningtree on github.
  • I am tree (https://keybase.io/tree) on keybase.
  • I have a public key whose fingerprint is E230 092B DE79 B552 74C0 7697 9842 1DBD 0930 2131

To claim this, I am signing this object:

@burningtree
burningtree / test.yaml
Last active August 29, 2015 14:16
mq test
metaquery_version: 1
endpoints:
test:
request: 'http://en.wikipedia.org/wiki/Prague'
select: h1
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2
mQGNBFWrEPgBDADLX3bM4bETL3zYNJrkTryFbdWeylRoOGtwB/1bZ2pVjAsgiOMc
Maj3+7/6thT+kKZAB2PMnKRUCzi92Cec0pUadubCtjvCZnmBAvZZANU1T23PAqzt
y3BIIvsrY84lLW4V9UQ2T6OkccpemKYBSCps24Gl6+2avAC9g0iB7xkoeneYGTy3
jCypz6nBHG+2GpfhXUonsizrMMbjUdUTtl5SzYYumdXTsFnkZofvHbG/2BPmZTqG
tMCyTqA7XHvb8I1MDUMfWIgR/DBWcMYH43stbSveMiPGG3kcWnM3cX1d/q/b38pj
lcGDXfX5JfGLaAVpvtACdrKnaEloHV1jbAFCDc3bvnS9XdLzOrCwpwkP35DJEf9i
efcCYLPDwqWSQ87Mi5mUPYz6Ah9nH/j05SemUwgZWoG4hpkae1hU3oJN4hS30uZf
tell application "TextWrangler"
activate
close find window
select insertion point before line 1 of window 1
repeat
open find window
find "^\\d\\.[^\\n]+[\\n\\s]+([^\\n]+\\n{1})*" searching in text 1 of project window 1 options {search mode:grep, starting at top:false, wrap around:false, backwards:false, case sensitive:true, match words:false, extend selection:false} with selecting match
replace "^([a-z]{1,3}\\.)" using " \\1" searching in selection of project window 1 options {search mode:grep, starting at top:false, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false}
end repeat
close find window
@burningtree
burningtree / error.log
Created August 28, 2016 21:13
BUX crash battle detail
08-28 23:12:26.086 4755 4861 I ActivityManager: Displayed com.getbux.android/.app.battle.BattleActivity: +190ms
08-28 23:12:26.218 15072 15072 D AndroidRuntime: Shutting down VM
08-28 23:12:26.218 15072 15072 W System.err: java.lang.ArithmeticException: Rounding necessary
08-28 23:12:26.219 15072 15072 W System.err: at android.icu.text.DecimalFormat.round(DecimalFormat.java:1017)
08-28 23:12:26.219 15072 15072 W System.err: at android.icu.text.DecimalFormat.round(DecimalFormat.java:810)
08-28 23:12:26.219 15072 15072 W System.err: at android.icu.text.DecimalFormat.format(DecimalFormat.java:861)
08-28 23:12:26.219 15072 15072 W System.err: at android.icu.text.DecimalFormat.format(DecimalFormat.java:782)
08-28 23:12:26.219 15072 15072 W System.err: at java.text.DecimalFormat.format(DecimalFormat.java:611)
08-28 23:12:26.219 15072 15072 W System.err: at java.text.NumberFormat.format(NumberFormat.java:287)
08-28 23:12:26.219 15072 15072 W System.err: at com.getbux.android.app.battle.BattleActivity$ViewBi
@burningtree
burningtree / results.txt
Created September 11, 2016 08:24 — forked from maxpert/results.txt
JSON vs MsgPack using Gzip + LZ4
Original tweet size in JSON 2624 Msgpack = 1817 Gzip + Json = 1058 Gzip + Msgpack = 1116 LZ4 + Json = 1628 LZ4 + Msgpack = 1361
Original tweet size in JSON 1863 Msgpack = 1443 Gzip + Json = 0783 Gzip + Msgpack = 0835 LZ4 + Json = 1153 LZ4 + Msgpack = 1040
Original tweet size in JSON 2074 Msgpack = 1670 Gzip + Json = 0842 Gzip + Msgpack = 0894 LZ4 + Json = 1229 LZ4 + Msgpack = 1139
Original tweet size in JSON 2025 Msgpack = 1617 Gzip + Json = 0845 Gzip + Msgpack = 0895 LZ4 + Json = 1238 LZ4 + Msgpack = 1143
Original tweet size in JSON 2069 Msgpack = 1663 Gzip + Json = 0846 Gzip + Msgpack = 0901 LZ4 + Json = 1243 LZ4 + Msgpack = 1164
Original tweet size in JSON 2035 Msgpack = 1634 Gzip + Json = 0852 Gzip + Msgpack = 0907 LZ4 + Json = 1247 LZ4 + Msgpack = 1167
Original tweet size in JSON 1988 Msgpack = 1464 Gzip + Json = 0804 Gzip + Msgpack = 0862 LZ4 + Json = 1220 LZ4 + Msgpack = 1061
Original tweet size in JSON 1910 Msgpack = 1502 Gzip + Json = 0775 Gzip + Msgpack = 0832 LZ4 + Json = 1154 LZ4 + Msgpack = 1060