Skip to content

Instantly share code, notes, and snippets.

View thlorenz's full-sized avatar
👁️
{ this.props.status }

Thorsten Lorenz thlorenz

👁️
{ this.props.status }
View GitHub Profile
@thlorenz
thlorenz / dorny-filters-generator.ts
Last active August 16, 2023 03:25
script: Dorny path filter generator (derived from deps of the provided package)
import path from 'path'
// 1. Define root of project from which to resolve all packages
const ROOT = path.resolve(__dirname, '..')
// 2. Define the relative path of the package that we generate the dorny filters for
const PACK = process.argv[2]
if (PACK == null) {
throw new Error(
'Need to supply relative path argument for package you want to render dorny filter for'
@thlorenz
thlorenz / all-but-di.fm.js
Last active February 10, 2023 07:49
Get Di.fm and related stations playlist for all channels
// Run as a Chrome Snippetfrom either of the below urls:
// https://www.jazzradio.com/member/favorite/channels
// https://www.classicalradio.com/member/favorite/channels
// https://www.radiotunes.com/member/favorite/channels
// https://www.rockradio.com/member/favorite/channels
// https://www.zenradio.com/member/favorite/channels
const KEY = '<yourkeyhere>'
const subsidy = document.location.host.split('.')[1]
function getChannelInfos() {
@thlorenz
thlorenz / script.sh
Last active October 4, 2022 16:34
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
thlorenz / collaborating.md
Last active September 20, 2022 18:20
A quick guideline to contributing to my open source projects

Collaborator Guidelines

Now where you are a collaborator you have certain powers that you should use carefully, so I'm listing some guidelines here.

Contributing

Proposing a Change

Even though as a contributor you could push directly to master, please don't do that. Instead each bug fix or feature

@thlorenz
thlorenz / steps-lldb-jit-on-osx.md
Last active April 21, 2021 09:56
lldb JIT on OSX (showing no useful info at this point)

Installation

Ninja

  • needed for faster Node.js builds
brew install ninja
@thlorenz
thlorenz / intro to common lisp.org
Last active May 22, 2020 10:19
Notes from commander_trashdin's Lisp intro on twitch

Common Lisp Twitch Intro Video Notes

Notes for intro provided by commander_thrashdin.

Functions

(fun arg1 arg1 ...)
@thlorenz
thlorenz / ngrok.txt
Last active May 2, 2020 17:46
batufo: ngrok url updater
http://05738ef0.ngrok.io
@thlorenz
thlorenz / autostep-gdb.md
Last active October 16, 2019 09:25
gdb: automatically step through a binary one instruction at a time and log registers at each step

gdbinit

set disassemble-next-line on
set dissasembly-flavor intel

b _start
run

while 1
@thlorenz
thlorenz / builiding-lldb-on-mac-with-jit-support-simple-steps.md
Last active July 24, 2019 01:32
Building lldb with GDB JIT support on Mac OSX.

Building lldb on Mac

Create Codesign Certificate

First we need to create a certificate. The llvm provided a way to do that, but I found this way to work slightly better for me. Just substitute lldb_codesign for the certificate name, instead of gdb-cert.

Install swig dependency