Skip to content

Instantly share code, notes, and snippets.

View critocrito's full-sized avatar

Christo Buschek critocrito

View GitHub Profile
@critocrito
critocrito / 00_install_fbsd_14_1_hetzner.md
Created September 16, 2025 17:31 — forked from ctsrc/00_install_fbsd_14_1_hetzner.md
Install FreeBSD 14.1 on Hetzner

Install FreeBSD 14.1 on Hetzner server

Hetzner no longer offers direct install of FreeBSD, but we can do it ourselves. Here is how :)

Boot the server into rescue mode

Boot the Hetzner server in Hetzner Debian based rescue mode. ssh into it.

The Hetzner rescue image will tell you hardware details about the server in the login banner. For example, with one of my servers I see:

@critocrito
critocrito / jq_jsonl_conversion.md
Created July 23, 2025 10:01 — forked from sloanlance/jq_jsonl_conversion.md
jq: JSONL ↔︎ JSON conversion

jq: JSONL ↔︎ JSON conversion

Prerequisites

  • jqhttps://jqlang.org/ — "like sed for JSON data"

    There are several options available for installing jq. I prefer to use Homebrew: brew install jq

  • JSONL → JSON

@critocrito
critocrito / freebsd_hetzner_cloud_vps.md
Created August 30, 2024 07:54 — forked from c0m4r/freebsd_hetzner_cloud_vps.md
FreeBSD installation on Hetzner Cloud VPS
@critocrito
critocrito / download_file.rs
Created November 13, 2023 08:37 — forked from giuliano-macedo/download_file.rs
Download large files in rust with progress bar using reqwest, future_util and indicatif
// you need this in your cargo.toml
// reqwest = { version = "0.11.3", features = ["stream"] }
// futures-util = "0.3.14"
// indicatif = "0.15.0"
use std::cmp::min;
use std::fs::File;
use std::io::Write;
use reqwest::Client;
use indicatif::{ProgressBar, ProgressStyle};
(ns smokingheaps.recherchen.doppelganger
(:require [lambdaisland.uri :refer [uri join assoc-query]]
[lambdaisland.uri.normalize :refer [normalize]]
[clj-http.client :as client]
[smokingheaps.recherchen.csv.interface :as csv]
[progrock.core :as pr]))
;; Fetch all combinations of the redirect url.
(def urlbox-url "http://urlbox.online")
(def urldirect-url "http://urldirect.ru")

Extract all metadata recursively into files

find <target> -type f | while read -r file; do
  tika -m "$file" > "$file".meta.txt
done

Extract metadata fields recursively into a table

@critocrito
critocrito / SketchSystems.spec
Last active March 24, 2021 10:13
Host Actor
Host Actor
checkHealth
ok? -> showConfig
err? -> error
showConfig
ok? -> registerClient
err? -> bootstrap
saveConfig
ok? -> showConfig
err? -> error
Ncube App
Config Show
ok? -> Home
err? -> Onboarding
Onboarding
ok? -> Bootstrap
err? -> Onboarding
Home
Home Ncube
List Workspaces*
ok? -> Home Screen
err? -> Home Error
Home Error
retry -> List Workspaces
Save Error
retry -> Save Workspace
@critocrito
critocrito / SketchSystems.spec
Last active June 18, 2020 14:13
Bootstrap Ncube
Bootstrap Ncube
Show Config*
ok? -> Home Screen
err? -> Splash Screen
# Introductionary splash screen
Splash Screen
next -> Settings Screen
# Fill in configuration settings