Skip to content

Instantly share code, notes, and snippets.

{ this.props.status }

Thorsten Lorenz thlorenz

{ this.props.status }
View GitHub Profile
thlorenz /
Last active Jul 2, 2022
Get and related stations playlist for all channels
// Run as a Chrome Snippetfrom either of the below urls:
const KEY = '<yourkeyhere>'
const subsidy ='.')[1]
function getChannelInfos() {
thlorenz /
Last active Apr 2, 2022
Walk through the "Solanas Token Program Explained" article using _amman_ to label, inspect, etc.
#!/usr/bin/env bash
## Prepare Wallets
solana-keygen new --silent --no-bip39-passphrase --outfile solpair1.json
solana-keygen new --silent --no-bip39-passphrase --outfile solpair2.json
### Airdrop and label them
amman airdrop ./solpair1.json -l soladdr1
thlorenz / intro to common
Last active May 22, 2020
Notes from commander_trashdin's Lisp intro on twitch
View intro to common

Common Lisp Twitch Intro Video Notes

Notes for intro provided by commander_thrashdin.


(fun arg1 arg1 ...)
thlorenz / ngrok.txt
Last active May 2, 2020
batufo: ngrok url updater
View ngrok.txt

Keybase proof

I hereby claim:

  • I am thlorenz on github.
  • I am thlorenz ( on keybase.
  • I have a public key ASDi53IJKgU2P7pjH8Aepd3pnhwCfFWfL7s7VHVBAuHPMwo

To claim this, I am signing this object:

thlorenz /
Last active Nov 24, 2018
[settings] OBS settings for streaming with not so great internet

OBS Low Internet Settings

These were provided to me by @feross at some point and then I tweaked them to work with slow internet, i.e. 1MBPS up.

I'm posting the the screenshots of those settings in the comments and I added two files that I found via File/Show Profile Folder

thlorenz / deoptmark.js
Last active Aug 13, 2018
Provide benchmark.js interface to just run functions meant to be benchmarked, i.e. to collect deoptimization info
View deoptmark.js
'use strict'
const deferred = {
resolve: function dontCare() {}
class DeoptMark {
constructor({ ITER = 1E3 } = {}) {
this._ITER = ITER
this._fns = []
thlorenz / Understanding why the new V8 is so Damn Fast, One Demo at a
Last active May 23, 2018
[tallk] Understanding why the new V8 is so Damn Fast, One Demo at a Time
View Understanding why the new V8 is so Damn Fast, One Demo at a

Understanding why the new V8 is so Damn Fast, One Demo at a Time


The entire V8 compiler architecture as well as large parts of the Garbage Collector where updated recently. TurboFan replaced Crankshaft, Orinoco now collects garbage in parallel whenever possible. Node.js v8 shipped with this new and improved version of V8. As a result we can finally write idiomatic and declarative JavaScript without worrying about incurring performance overhead due to JavaScript compiler shortcomings.

At least this is what the V8 team tells us. In this talk we will explore if and why this is true, one demo at a time.

thlorenz /
Last active Aug 26, 2018
async/wrap express wrapper


Tried to improve debugging when an express middleware is wrapped to auto-handle errors of an asnync function.

Turns out the below reads a bit better than a return Promise.catch() implementation, but still, once we reach the central express error handler, the line of the wrapped function that caused the error isn't included.


'use strict'
thlorenz / clean-dupes.js
Created Feb 22, 2017
Remove duplicate files found inside one directory
View clean-dupes.js
#!/usr/bin/env node
const fs = require('fs')
const path = require('path')
function bySizeThenByName(a, b) {
if (a.size === b.size) {
return a.path.localeCompare(b)
return a.size < b.size