Skip to content

Instantly share code, notes, and snippets.

@lispm
lispm / rlabels.lisp
Last active November 30, 2024 21:15
rlabels : simple labels replacement, expanding to non-recursive code
; Copyright Rainer Joswig, 2023, [email protected]
; simple LABELS replacement, expanding to non-recursive code
; the goal is to provide a simple LABELS like operator
; which optimizes simple self-tail-recursive code to
; to a stack-less jump.
; limitations: does not detect when a call is NOT in tail position,
; which would require a code walker.
@moyix
moyix / killbutmakeitlooklikeanaccident.sh
Created February 5, 2022 22:51
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
@phoe
phoe / package-local-nicknames.md
Last active March 27, 2025 15:53
Package-local nicknames in Common Lisp - a semishitpost about PLNs

Package-local nicknames in Common Lisp

Warning: this is a rant.

Warning: you have been warned.

Note: actually worthwhile content starts in the second subsection. You are free to skip the first one.

Story time

@RickCogley
RickCogley / curl-to-matrix-text-readme.md
Last active February 25, 2024 01:45
Testing curl to matrix.org

Testing the matrix.org client-server API

Matrix is:

an open standard for decentralised communication, providing simple HTTP APIs and open source reference implementations for securely distributing and persisting JSON over an open federation of servers.

It's pretty fantastic, if you think on the massive problem of fragmentation all across the web. They've created an easy to use API, and you can do a kludgy test using curl from the terminal (*nix, mac, win). See: http://matrix.org/docs/howtos/client-server.html

It's pretty straightforward to do a quick test. I have an account at https://matrix.org / https://vector.im, so I used that to get a token.