Skip to content

Instantly share code, notes, and snippets.

View egberts's full-sized avatar
💭
Busy pounding the keyboard

Egbert egberts

💭
Busy pounding the keyboard
  • US
View GitHub Profile
@egberts
egberts / gist:f9f9f1f3156bc17a1c8718b3dfd068d3
Created July 4, 2024 18:29
clean_output_dir()/utils.py performance test for getpelican/pelican repo
from __future__ import annotations
import logging
import os
import pathlib
import shutil
from datetime import datetime as dt
from collections.abc import Iterable
LOG_FORMAT = "%(name)s: %(message)s"
@egberts
egberts / ipv6guide.md
Created June 27, 2024 13:11 — forked from timothyham/ipv6guide.md
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

@egberts
egberts / README.md
Created August 21, 2023 06:46 — forked from cfm/README.md
Adapting the twelve-factor methodology for "Qubes-native" multi-VM applications: a preliminary sketch

Adapting the twelve-factor methodology for "Qubes-native" multi-VM applications: a preliminary sketch[^1]

Introduction

Virtualization is the conceptual technology on which modern services (server applications) are built. Whether an application happens to run on a fully- or para-virtualized VM[^2] or is containerized—or even runs on a “bare-metal” physical server after all—most modern services are designed in isolated, replicated, disposable components on commodity hardware.[^3] The [“twelve-factor methodology”][wiggins] (2011) is an influential articulation of the principles

@egberts
egberts / lockly_cloud_api_details.md
Created September 22, 2022 23:26 — forked from hacker1024/lockly_cloud_api_details.md
Lockly cloud API details

Lockly cloud API details

This documentation has moved to a dedicated site.

@egberts
egberts / killbutmakeitlooklikeanaccident.sh
Created July 17, 2022 13:30 — forked from moyix/killbutmakeitlooklikeanaccident.sh
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
@egberts
egberts / js-jit-engines.dot
Created July 11, 2022 23:47
JavaScript JIT Engines, historical timeline
digraph JavaScript_Engine {
Netscape [color="#007c84"];
Mozilla [color="#e66000"];
Netscape -> Mozilla
Javagator [color="#007c84"];
Rhino [color="#007c84"];
Netscape -> Javagator -> Rhino
Rhino -> JDK8
@egberts
egberts / openssl_commands.md
Last active March 19, 2022 23:15 — forked from Hakky54/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@egberts
egberts / setup_ssh_agent_with_apple_keychain.sh
Created March 7, 2022 12:45 — forked from piaverous/setup_ssh_agent_with_apple_keychain.sh
A simple bash snippet to add to your .bashrc or .zshrc in order to easily load password protected SSH Keys from the Apple Keychain, and never worry about them again !
###
# SSH keys setup with Apple keychain
###
if [ -z "$SSH_AUTH_SOCK" ] && [ -z "$SSH_AGENT_PID" ]; then
# If no SSH Agent is running, start one and load keys from Apple keychain
eval `ssh-agent -s` &> /dev/null
ssh-add --apple-load-keychain &> /dev/null
else
if [ -z "$(ssh-add -l | grep SHA256)" ]; then
# If agent is running but has no keys, load keys from Apple keychain
Rank Type Prefix/Suffix
1. Prefix my+
2. Suffix +online
3. Prefix the+
4. Suffix +web
5. Suffix +media
6. Prefix web+
7. Suffix +world
8. Suffix +net
9. Prefix go+
@egberts
egberts / named.conf-vim-hilight-number.png
Last active March 15, 2020 20:02
named Vim syntax files
named.conf-vim-hilight-number.png