random side thought and execution that i am logging for possibly future use
currently I don't have any system pythons installed
instead, I have a venv created in ~/.local/uv
named venv
and it is added to my USERPATH
so far nothing has broken
# courtesy of chatgpt | |
import csv | |
from tabulate import tabulate | |
import re | |
# you need to download this file from the official iana website | |
CSV_FILE = "service-names-port-numbers.csv" | |
MAX_WIDTH = 80 # maximum width for displayed fields |
random side thought and execution that i am logging for possibly future use
currently I don't have any system pythons installed
instead, I have a venv created in ~/.local/uv
named venv
and it is added to my USERPATH
so far nothing has broken
Only looks good in terminals
O
║
╨ ╱
▔─▁ ▁─▔ ▔─▁ ▁▁─N
N ╥ ╲
│ ║ }
▁┴ ╨ ╱
# Spawns docker containers as lightweight VMs | |
# very convenient optionless | |
function dvm { | |
param ( | |
[Parameter(ValueFromRemainingArguments=$true)] | |
[string[]]$args | |
) | |
$ErrorActionPreference = "Stop" |
git config --global user.email || echo "no email found" | |
git config --global user.signingkey || echo "no signing key found" | |
echo "$(git config --global user.email) namespaces=\"git\" $(eval cat $(git config --global user.signingkey))" >> ~/.ssh/allowed_signers | |
git config --global gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers |
Can be invoked directly using dash
@echo off
set "PATH=%~dp0\usr\bin;%PATH%"
"%~dp0\usr\bin\dash" /usr/bin/rebaseall -p
flowchart TD
A["Start Bash Shell"] --> B{"Login Shell?"}
B -- Yes --> C["/etc/profile"]
C --> D{"~/.bash_profile exists?"}
D -- Yes --> E["~/.bash_profile"]
D -- No --> F["~/.profile"]
E --> G{"Source ~/.bashrc?"}
so, it is possible to use docker containers as a lightweight "use and throw away" vm
docker run -dit --name ubuntu ubuntu:24.04
# can also expose all host
docker run -dit --network host --name ubuntu ubuntu:24.04
docker exec -it ubuntu bash
next time you start the container it stays alive
; Author: [email protected]
┼ ┌ ┬ ┐ ╋ ┏ ┳ ┓ ┼ ╭ ┬ ╮ ╬ ╔ ╦ ╗
│ ├ ┼ ┤ ┃ ┣ ╋ ┫ │ ├ ┼ ┤ ║ ╠ ╬ ╣
─ └ ┴ ┘ ━ ┗ ┻ ┛ ─ ╰ ┴ ╯ ═ ╚ ╩ ╝
┿ ┍ ┯ ┑ ╂ ┎ ┰ ┒ ╪ ╒ ╤ ╕ ╫ ╓ ╥ ╖
│ ┝ ┿ ┥ ┃ ┠ ╂ ┨ │ ╞ ╪ ╡ ║ ╟ ╫ ╢
━ ┕ ┷ ┙ ─ ┖ ┸ ┚ ═ ╘ ╧ ╛ ─ ╙ ╨ ╜
#Requires AutoHotkey v2.0 | |
#SingleInstance | |
#UseHook | |
; V2 rewrite and simplification by author: nopeless @ github.com | |
; | |
; Originally written by Lexikos (404) | |
; http://www.autohotkey.com/forum/post-147849.html#147849 | |
; Modifications by Trevor Bekolay for the How-To Geek | |
; http://www.howtogeek.com/ |