Skip to content

Instantly share code, notes, and snippets.

View Sieboldianus's full-sized avatar
💭
🌊

Alexander Dunkel Sieboldianus

💭
🌊
View GitHub Profile
@timothyham
timothyham / ipv6guide.md
Last active February 27, 2025 09:05
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

@flaviovs
flaviovs / README.md
Last active January 25, 2025 00:35
How to use TARPIT in Linux without consuming (your) resources

Iptables(8) TARPIT is a useful security mechanism that can slow down or stop attacks on a network. If everyone used TARPIT to block attackers, in theory their resources would be exhausted as their connection attempts would be delayed, which would discouraged people from attempting unauthorized access. Here's a brief description of how TARPIT works:

To achieve this tar pit state, iptables accepts the incoming TCP/IP connection and then switches to a zero-byte window. This forces the attacker's system to stop sending data, rather like the effect of pressing Ctrl-S on a terminal. Any attempts by the attacker to close the connection are ignored, so the connection remains active and typically times out after only 12–24 minutes. This consumes resources on the attacker's system but not

Twitter ID Screen name Followers Removal observed Before After
17461978 SHAQ 15612791 2022-02-26T22:24:52Z SHAQ.ETH SHAQ.SOL
21910850 jakeowen 2119904 2022-02-26T15:45:18Z jakeowen.eth Jake Owen
7846 ijustine 1811449 2022-03-09T14:43:37Z iJustine.eth iJustineUltra
1666038950 BoredElonMusk 1752290 2022-02-17T08:05:47Z bored.eth Bored
381051960 ethRuby 1267133 2022-03-19T08:08:11Z CryptoSolis.eth Ruby
1282418324228337665 wsbmod 832406 2022-02-24T06:52:07Z wsbmod.eth wsbmod
20882981 EclecticMethod 495235 2022-02-18T04:39:30Z eclecticm.eth Eclectic Method
811350 alexisohanian 479340 2022-02-08T06:31:55Z AlexisOhanian.eth 7️⃣7️⃣6️⃣ Alexis Ohanian 7️⃣7️⃣6️⃣
22784458 Fwiz 410813 2022-03-22T08:54:42Z Ryan Wyatt - fwiz.eth 💜 Ryan Wyatt - @ GDC
@samuelcolvin
samuelcolvin / webauthn_client.js
Created November 17, 2021 22:32
demo of webauthn using FastAPI
const log_el = document.getElementById('log')
function log(...messages) {
console.log(...messages)
log_el.innerText += '\n' + messages.map(m => JSON.stringify(m, null, 2)).join(' ')
}
function error(message) {
console.error(message)
log_el.innerText += '\n' + message
@csarn
csarn / README.md
Last active December 4, 2024 03:12
ZFS pull backup with minimal permissions

Usage

on system that should be backed up

  • put "restrict_commands.sh" in /usr/local/bin and make it executable
  • install ts, lzop and optionally mbuffer
useradd zfsbackup --create-home --system
mkdir /home/zfsbackup/.ssh
zfs allow -u zfsbackup send,hold tank/dataset
echo 'restrict,command="restrict_commands.sh" ssh-ed25519 ...' > /home/zfsbackup/.ssh/authorized_keys
@tnwei
tnwei / jb-serve.py
Created September 3, 2021 15:19
Live reload script for Jupyter Book
import subprocess
from pathlib import Path
import os
import click
from livereload import Server
@click.command()
@click.argument("pathsource", default=".", type=Path)
@click.option("-o", "--outputdir", default="_build/html", type=Path, show_default=True)
@cnlohr
cnlohr / forgot_to_check_out_with_recurse_submodules.md
Last active August 19, 2024 16:58
Git forgot to clone recursively (forgot to check out with recurse submodules)
@Deliquescence
Deliquescence / userChrome.css
Last active January 1, 2025 19:54
Firefox userChrome.css
:root {
--custom-accent-color: white;
}
/* Hide "Close Multiple Tabs" menu */
#context_closeTabOptions {
display: none !important;
}
@tavinus
tavinus / nc-files_texteditor-install.md
Last active June 15, 2022 16:22
Nextcloud Disable Text App and install old Text Editor

Revert Nextcloud's Text Editor

Unfortunatelly the new Nextcloud Text App is not yet usable in production because it does not support plain text editing very well and breaks the exibition and editing of many plain text formats. It may also cause data loss when trying to format some file types (this may not be the case anymore, check the devs).

Seems like the main issue is to align the Colaboration with the rich/raw modes. But there are other problems as well.

In any case, we will just disable the current Text app and manually install the old App.

Disable Text App

  • Click on Your icon > Apps
@Rarst
Rarst / hugo-remote-api.html
Last active June 11, 2024 14:13
Remote API example in Hugo static site build.
{{ with getJSON "https://noti.st/rarst.json" }}
<h3 class="text-left">Latest Talk</h3>
{{ $talks := (index .data 0).relationships.data }}
{{ $latest :=index $talks 0 }}
<a href="{{ $latest.links.self }}">
<img src="{{ $latest.attributes.image.src }}" alt="{{ $latest.attributes.title }}"
class="img-responsive" style="max-height: 210px;border: 1px solid #eee" loading="lazy"/>
</a>
{{ end }}