Skip to content

Instantly share code, notes, and snippets.

@hallyn
hallyn / setup-shadow-on-ubuntu.bash
Created February 25, 2023 01:44
setup shadow tests in ubuntu container
#!/bin/bash
cat /etc/apt/sources.list
sed -i '/deb-src/d' /etc/apt/sources.list
sed -i '/^deb /p;s/ /-src /' /etc/apt/sources.list
export DEBIAN_PRIORITY=critical
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y dist-upgrade
sudo apt-get -y install ubuntu-dev-tools automake autopoint \
xsltproc gettext eatmydata expect byacc libtool libbsd-dev \
@hallyn
hallyn / Makefile
Created April 10, 2022 14:52
Attempt to use systemd transient units through dbus
a: a.c
gcc a.c -o a `pkg-config --cflags --libs libsystemd`
@hallyn
hallyn / keybase.md
Created January 14, 2022 18:46
keybase.md

Keybase proof

I hereby claim:

  • I am hallyn on github.
  • I am sehh (https://keybase.io/sehh) on keybase.
  • I have a public key ASDxllZ85EEx_Ss2JeXNob0T5LzCYS19b5_iGv6ipngINAo

To claim this, I am signing this object:

@hallyn
hallyn / libera
Created November 16, 2021 14:00
Libera verification
libera-verify-369419442
@hallyn
hallyn / fat32.go
Created October 14, 2021 03:57
broken go-disks fat32 example
package main
import (
"fmt"
"io"
"os"
"github.com/diskfs/go-diskfs/filesystem/fat32"
)
@hallyn
hallyn / gist:6ab48db33b5c53f2de52f0d507a54f37
Created February 15, 2021 03:23
Extensible nested yaml fields in golang
```
package main
import (
"fmt"
"os"
"gopkg.in/yaml.v2"
)
@hallyn
hallyn / gist:05df347ada107e072ac6
Created March 18, 2015 18:15
Exploit possible race in go-sqlite3
package main
import (
"database/sql"
"fmt"
"os"
"time"
"github.com/mattn/go-sqlite3"
)