Skip to content

Instantly share code, notes, and snippets.

🐢
Huge backlog of issues/PRs, DM me on Twitter if you need something urgent merged

Luke Childs lukechilds

🐢
Huge backlog of issues/PRs, DM me on Twitter if you need something urgent merged
Block or report user

Report or block lukechilds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lukechilds
lukechilds / readme.md
Created Dec 11, 2019
ffmpeg compress
View readme.md

ffmpeg compress

Re-encodes an input file as an MP4 with a constant rate factor of 24

ffmpeg -i input.mov -crf 24 output.mp4

Lower crf value means higher quality and larger file size. 24 gives reasonable results with good compression.

@lukechilds
lukechilds / readme.md
Created Nov 16, 2019
@lukechilds Electrum test LN invoice
View readme.md

@lukechilds Electrum test LN invoice

lnbc11780n1pwaqwjepp56979uu5m0hr6z7nu9dgglt76w46urrntd6p9hg0d5vn985pt8d9qdp6gpk826m9vd5xjmrywvsy2mr9vd68yatdyp6x2um5ypxyugrfdemx76trv5cqzynxqyz5vqrzjq2gvezz8qsrnk2mr8a5ls5hgeg4rwestkdv6r6rp726gwcxznzk9xzfh4uqqtwsqqqqqqqwzqqqqqqgq9qerhlwfd6az59sm2m5eaywtarg0gynj4zh9njhwqser43twfj850rcz5kgr4yudwg73ncy56mvctusu28ar2c5pafe99yt29wak0dsrcp5juth7
View 0ba313922acf3df65579f0c969198ed20c401bc5aeb89656ee85b54574665a1f.json
{
"uuid": "0ba313922acf3df65579f0c969198ed20c401bc5aeb89656ee85b54574665a1f",
"requestId": 2035240010,
"quoteId": 1054714439,
"timeStarted": 1536076648826,
"orderType": "buy",
"status": "completed",
"statusFormatted": "completed",
"isActive": false,
"error": false,
View swap.json
{
"uuid": "d0b0ddb6a45d4596f946a01bd8d163f516890d4411b96329bdbd95a914218553",
"requestId": 2349317043,
"quoteId": 2092844076,
"timeStarted": 1534957099421,
"orderType": "buy",
"status": "completed",
"statusFormatted": "completed",
"error": false,
"progress": 1,
View swap.json
{
"uuid": "51ead533d50be7d4125f961dd0f0e873136ebec3e36f51f23419c3b5869d6abf",
"requestId": 3630423274,
"quoteId": 2859345951,
"timeStarted": 1534698328332,
"orderType": "buy",
"status": "completed",
"statusFormatted": "completed",
"error": {
"code": -9997,
@lukechilds
lukechilds / readme.md
Last active Jun 23, 2017
base64-js Node.js v8.1.2 vs v8.2.0-rc.1
View readme.md

Running base64-js benchmarks on Node.js v8.1.2 vs v8.2.0-rc.1

$ node --version
v8.1.2

$ node bench/basic.js
decode ms, decode ops/ms, encode ms, encode ops/ms
8 166667 37 36036.10810810811
View keybase.md

Keybase proof

I hereby claim:

  • I am lukechilds on github.
  • I am lukechilds (https://keybase.io/lukechilds) on keybase.
  • I have a public key ASAqC3NB9y98h4sOGcD5Jr9ax5HJpCiJgcxPoZawvLAbnQo

To claim this, I am signing this object:

@lukechilds
lukechilds / filesizecomparison.txt
Created May 29, 2017
UTF-8 vs gzip vs gzip+Base64
View filesizecomparison.txt
$ wget todomvc.com
--2017-05-29 16:13:28-- http://todomvc.com/
Resolving todomvc.com... 192.30.252.154, 192.30.252.153
Connecting to todomvc.com|192.30.252.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 254815 (249K) [text/html]
Saving to: 'index.html'
index.html 100%[===========================>] 248.84K 215KB/s in 1.2s
View var-let-bench.js
const iterations = 100000000;
(() => {
console.time('Var While');
var iVarWhile = 0;
while (iVarWhile < iterations) {
iVarWhile += 2;
}
console.timeEnd('Var While');
})();
You can’t perform that action at this time.