Skip to content

Instantly share code, notes, and snippets.

View frite's full-sized avatar

Manolis M. frite

  • NaN
  • The internetz
View GitHub Profile
@frite
frite / cloud-init-docker-etc.yaml
Created August 31, 2025 20:09 — forked from MrGraversen/cloud-init-docker-etc.yaml
Base cloud-init for security hardening, SSH, Docker, etc.
#cloud-config
package_update: true
manage_resolv_conf: true
resolv_conf:
nameservers:
- '8.8.8.8'
- '8.8.4.4'
- '1.1.1.1'
lldb WebKitBuild/Debug/jsc
(lldb) target create "WebKitBuild/Debug/jsc"
(lldb) env DYLD_FRAMEWORK_PATH=$HOME/code/apple/WebKit/WebKitBuild/Debug
(lldb) command script import $HOME/code/apple/WebKit/Tools/lldb/lldb_webkit.py
(lldb) r --useDollarVM=1
@frite
frite / dusort.sh
Created November 23, 2024 22:47 — forked from smontanaro/dusort.sh
I got this du postprocessing script from "the net" in the dark ages (probably from Usenet in the 80s or 90s). I have no idea who the original author was. I've never modified it **at all**. It has always just worked.
#!/bin/sh
#
# sort a "du" listing by directory size
# usage: du | dusort
FILES=
TFORM=0
while test $# -ge 1; do
case $1 in
-t) TFORM=1; ;;
@frite
frite / mysql2-m1.md
Created June 8, 2023 08:55 — forked from fernandoaleman/mysql2-m1.md
How to install mysql2 gem on m1 Mac

Problem

Installing mysql2 gem errors on m1 Mac.

Solution

Make sure mysql, openssl and zstd are installed on Mac via Homebrew.

brew install mysql openssl zstd
# Assuming that actually the target has an ASN.
# Ideally, the target is not an ISP or AWS etc. because then the ranges are probably given out to customers
ranges () {
whois -h whois.radb.net -- "-i origin $(curl -s http://ip-api.com/json/$1 | jq .as | awk '{print $1}' | cut -d\" -f2)" | grep -Eo "([0-9.]+){4}/[0-9]+" | uniq
}
@frite
frite / keybase.md
Created November 24, 2019 16:47
Keybase proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: