Skip to content

Instantly share code, notes, and snippets.

@tivrfoa
tivrfoa / README.md
Last active April 7, 2024 23:30
rust-analyzer with neovim for the Linux Kernel - Rust for Linux
@jpmens
jpmens / chain-of-trust.md
Created November 24, 2021 09:34
DNSSEC chain of trust
| . (root)   |       | org.             |       | example.org.         |       | sub.example.org. |
| ---------- |       | ---------------- |       | -------------------- |       | ---------------- |
| SOA        |       | SOA              |       | SOA                  |       | SOA              |
| NS         |       | NS               |       | NS                   |       | NS               |
| DNSKEY     |   ┌── | DNSKEY           |   ┌── | DNSKEY               |   ┌── | DNSKEY           |
| DS (org)   | ──┘   | DS (example.org) | ──┘   | DS (sub.example.org) | ──┘   | AAAA             |

ASCII art by @mritzmann based on a diagram I made.

{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# OPTIONS_GHC -Wall #-}
-- This script fetches prices of commodities like funds, etfs, stocks and
-- currencies by scraping a webpage and prints it in hledger compatible format.
module Main where
@aaronmdjones
aaronmdjones / freenode-resign-letter.txt
Created May 19, 2021 10:20
My resignation from freenode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
My resignation from freenode staff
==================================
I joined the freenode staff in March 2019 [1].
Before I joined the staff, Freenode Ltd was sold [2] to a person named
Andrew Lee as part of a sponsorship deal. The informal terms of that
@ferki
ferki / Rexfile
Last active April 22, 2021 09:08
rex reboot
use Rex -feature => [qw(1.4 exec_autodie)];
use Rex::Commands::SimpleCheck;
sayformat "[%h]>\t%s";
task 'reboot', sub {
my $server = connection->server;
my $port = Rex::Config->get_port( server => $server ) || 22;
@jpmens
jpmens / discussion.md
Last active October 15, 2022 21:24
Determine the number of delegated ccTLDs from a root zone transfer

Students should determine the number of delegated two-letter country code Top-Level Domains (ccTLDs) from a root zone transfer. They will actually copy/paste the command into a terminal but should be able to explain what the command does. The current answer is: 248

The challenge is finding a version which is simple enough for people with "not very much" Unix experience to understand what the pipeline does. The pipeline must be portable across Unix, Linux, macOS.

The source of data is a full zone transfer from the F-root server:

dig @f.root-servers.net . AXFR
@cadreoneseven
cadreoneseven / wordpress on postgres.txt
Last active April 28, 2022 06:03
Installation of Wordpress on PostgreSQL database backend. In case you want some more robust that mysql
#Step 1: Download Wordpress
# Point to your webserver root - typically
$ cd /var/www/html
$ wget https://wordpress.org/latest.tar.gz
# Then untar
$ tar xzf latest.tar.gz
# There will a folder named wordpress
#Step 2: Create Database in postgresql e.g wp1
@erincandescent
erincandescent / netboot.nix
Created January 6, 2020 01:06
netbooting a raspberry pi running alpine with nix
# dhcp server settings:
# dhcp-mac=set:rpi,b8:27:eb:*:*:*
# dhcp-boot=tag:rpi,boot,10.69.69.179
{ lib, stdenv, config, pkgs, ... }:
let
alpineRelease = "3.11";
alpineRevision = "2";
alpineVersion = "${alpineRelease}.${alpineRevision}";
@okanon
okanon / wlan.md
Last active February 19, 2024 05:11
AlpineLinux with wlan settings

AlpineLinux with wlan settings.

Install necessary drivers and software

First make sure your wireless drivers are loaded properly.
Install wpa_supplicant & dhcpcd.

apk add wpa_supplicant dhcpcd

Configuration

@chriswayg
chriswayg / create-cloud-template.sh
Last active May 1, 2024 20:47
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1