Skip to content

Instantly share code, notes, and snippets.

View 537's full-sized avatar
🎯
Focusing

537

🎯
Focusing
View GitHub Profile
@pcaversaccio
pcaversaccio / curl
Last active January 18, 2026 14:28
Protective wrappers for `curl`/`wget` that prevent homograph/IDN attacks by blocking URLs containing non-ASCII characters or Punycode domains.
#!/usr/bin/env bash
set -Eeuo pipefail
RED=$'\033[1;31m'
YELLOW=$'\033[1;33m'
RESET=$'\033[0m'
for arg in "$@"; do
# Reject any non-ASCII byte.
if LC_ALL=C printf "%s" "$arg" | grep -q "[^ -~]"; then
@atoponce
atoponce / keyboardPatternPasswords.js
Last active December 5, 2025 22:50
Generates secure passwords with at least 72 bits symmetric security using patterns on the keyboard from different English layouts.
"use strict";
const COLEMAK = {
// top row
"`": ["1", "!"], get "~"() { return this["`"]; },
"1": ["`", "~", "2", "@", "q", "Q"], get "!"() { return this["1"]; },
"2": ["1", "!", "3", "#", "w", "W"], get "@"() { return this["2"]; },
"3": ["2", "@", "4", "$", "f", "F"], get "#"() { return this["3"]; },
"4": ["3", "#", "5", "%", "p", "P"], get "$"() { return this["4"]; },
"5": ["4", "$", "6", "^", "g", "G"], get "%"() { return this["5"]; },
@devmaars
devmaars / Termux SSH Tutorial.md
Created April 5, 2024 15:05
This guide will show you how to set up an ssh server on your phone using Termux and connect to it from your computer. This is useful if you want to access your phone's files or run commands on your phone from your computer.

How to ssh to termux the right way

Termux

Requirements

  • Termux (From F-Droid)
  • ADB (Android Debug Bridge)
  • USB Cable (Wireless connection is also possible but it's slower)
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active February 4, 2026 05:29
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@rain-1
rain-1 / WorLLMs.md
Last active December 27, 2025 05:36
WorLLMs

Could an LLM end up being the core part of a dangerous computer worm?

How would we neutralize such a thing if this happened?

Some virus and worm background

There is a hilarious story from https://users.cs.utah.edu/~elb/folklore/xerox.txt about an early computer virus called robin hood and friar tuck. This was basically just two programs running on a UNIX system that would look out for each other and reboot the other process if it was killed. It's interesting to note that since computer programs run thousands of times faster than humans, a human can't type kill -9 robinhood then type kill -9 friartuck in time. The computer is faster so it always wins if you try this. To defeat this you need to take a different approach than speed.

@emidoots
emidoots / ramblings.md
Last active December 25, 2024 04:39
Because cross-compiling binaries for Windows is easier than building natively

Because cross-compiling binaries for Windows is easier than building natively

I want Microsoft to do better, want Windows to be a decent development platform-and yet, I constantly see Microsoft playing the open source game: advertising how open-source and developer friendly they are - only to crush developers under the heel of the corporate behemoth's boot.

The people who work at Microsoft are amazing, kind, talented individuals. This is aimed at the company's leadership, who I feel has on many occassions crushed myself and other developers under. It's a plea for help.

The source of truth for the 'open source' C#, C++, Rust, and other Windows SDKs is proprietary

You probably haven't heard of it before, but if you've ever used win32 API bindings in C#, C++, Rust, or other languages, odds are they were generated from a repository called microsoft/win32metadata.

@adojos
adojos / ssh-commands-reference.md
Last active January 28, 2026 14:07
SSH: Common SSH Commands #ssh

OpenSSH Commands Reference


Commands Description
ssh -V Prints SSH-Agent verion information
ls -al ~/.ssh List existing SSH Keys from standard SSH folder in user profile folder
ssh-keygen -t rsa -b 4096 -C "[email protected]" Generating SSH Keys using SSH-Keygen tool of OpenSSH
eval $(ssh-agent -s) Starts the SSH-Agent in the background
@tatumroaquin
tatumroaquin / archlinux-qemu-kvm.md
Last active February 3, 2026 16:35
QEMU-KVM Installation for Arch Linux

QEMU-KVM in Arch Linux

Check Virtualization Support

lscpu | grep -i Virtualization
  • VT-x for Intel
  • AMD-Vi for AMD

Ensure that your kernel includes KVM modules

As noted by @murdats below, there are more URLs than just these 1440 ones, depending on the argument values
that are hashed (as the filenames below are MD5 hashes of a few arguments: red/blue pill color, HHMM time, etc.)
You can read details about the algorithm used to generate these URLs here:
https://news.ycombinator.com/item?id=28448335
---
00:00 https://thechoiceisyours.whatisthematrix.com/generated/v7/high/d43725991d28ffcab04aa716762cf6af.mp4
@phibr0
phibr0 / latex.css
Last active June 11, 2023 10:46
LaTeX inspired PDF's in Obsidian
/*
LaTeX inspired PDF Export Theme for https://obsidian.md
Made by @phibr0 on Github
Tested with Obsidians default Theme and the California Coast Community Theme
Please don't share this File with others, instead share this Link: https://www.buymeacoffee.com/phibr0/e/42263
*/