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'
@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