Skip to content

Instantly share code, notes, and snippets.

View serious-angel's full-sized avatar
...cogito, ergo sum...

/\ngel serious-angel

...cogito, ergo sum...
View GitHub Profile
@OTDE
OTDE / code-golfing-rikis-template-engine-in-julia.jl
Created April 29, 2026 01:03
Code-golfing riki's HTML templating engine in Julia
#=
A few days back, I was on lobste.rs the other day and saw a cool post by
riki. The post is about using Lua to write a super-compact HTML generator,
using the table data structure as a base. HTML generators are an infamous
category of programmer tar pit. Regardless of what programming language you
enjoy, if you like to yap (don't lie), then yapping to the internet in your own
special way will usually require you to interact with HTML in some form. While
writing a fully spec-compliant HTML generator in a weekend might be generously
described as a "fool's errand," it's feasible to quickly build something that
will get you _most_ of the way there.
@charmparticle
charmparticle / fido2_u2p_fingerprint_setup_in_linux.md
Last active April 8, 2026 01:36
setting up the atkey.pro usb fingerprint reader in linux -- this should also work for any fido2 u2p usb fingerprint reader; maybe even those $20 ones.

First, check that the device can be seen by your OS:

lsusb
dmesg

if it appears in dmesg but not lsusb, you might need to plug it directly into a usb port rather than in a usb hub. For some reason when I did this, and then switched it back to the usb hub, lsusb could see it again. I don't understand why, but this might work for you also.

@ormaaj
ormaaj / roflparser.md
Created March 10, 2025 19:35
Silly bash typeset builtin wrapper

This script exploits bash's weird interpretation of POSIX's requirement that declaration builtins overloaded by functions must not modify the parsing of the arguments. Bash even extends this requirement to nonstandard extensions such as arrays. This typeset wrapper parses options by stealing the (approximately correct) optstring from ksh. It modifies each assignment then prints the effect of the command as a side-effect.

Code:

@Nickguitar
Nickguitar / bypassing_discord_masked_links_filter.md
Last active March 30, 2026 12:52
Bypassing Discord's masked links filter
@0xdevalias
0xdevalias / reverse-engineering-webpack-apps.md
Last active April 30, 2026 01:37
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps
@iscle
iscle / gist:66e946553e74a883b4494d3b6df0ee82
Last active November 19, 2025 16:59
Install python2.7 on Ubuntu 23.04 as "python"
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar xzf Python-2.7.18.tgz
cd Python-2.7.18
sudo ./configure --enable-optimizations
sudo make altinstall
sudo ln -s "/usr/local/bin/python2.7" "/usr/bin/python"
@scrivocodice
scrivocodice / neighbors_scan.py
Last active March 16, 2026 22:01
Scan neighbors network devices
#!/usr/bin/env python
"""List all hosts with their IP address on my subnet."""
import os
out = os.popen('ip neighbour show nud reachable').read().splitlines()
for i, line in enumerate(out, start=1):
ip = line.split(' ')[0]
h = os.popen(f'host {ip}').read()
@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active May 3, 2026 05:42
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@zookee1
zookee1 / tamrieltradecentre.sh
Last active August 2, 2025 21:29
Tamriel Trade Centre Update
#!/bin/bash
REGION="eu" # eu or us
TTC="/mnt/games/SteamLibrary/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/My Documents/Elder Scrolls Online/live/AddOns/TamrielTradeCentre"
ZIP="/tmp/PriceTable.zip"
wget -O $ZIP https://$REGION.tamrieltradecentre.com/download/PriceTable
unzip -o $ZIP -d "$TTC"
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*