Skip to content

Instantly share code, notes, and snippets.

View SerJaimeLannister's full-sized avatar

LanguageNest SerJaimeLannister

View GitHub Profile
@VinceGuidry
VinceGuidry / editor.rb
Created September 24, 2025 13:27
Kitty terminal protocol parsing
require 'io/console'
require 'ansi/terminal'
require 'ansi/string'
require 'pry'
module Vinced
class Keypress
attr_reader :string, :parsed, :printable
@keyle
keyle / bindings.json
Last active December 7, 2025 13:06
micro and ghostty settings
{
"Alt-/": "lua:comment.comment",
"Alt-Left": "StartOfLine",
"Alt-Right": "EndOfLine",
"Alt-c": "Copy",
"Alt-d": "DuplicateLine",
"Alt-e": "command:format",
"Alt-f": "Find",
"Alt-g": "command:definition",
"Alt-k": "lua:comment.comment",
@SerJaimeLannister
SerJaimeLannister / discussion.md
Last active September 20, 2025 21:12
List or discussion regarding softwares with the highest haters to benefit to humanity ratio?

Coming up from the hackernews comment [1] on a hackernews post about systemd [2]

I think everyone in the linux community can somewhat agree that systemd gets a lot of hate.

Sure we can have some fair critisms of a project but there is a somewhat fair consensus among people that systemd is hated unfairly in the sense of a benefit to humanity ratio as that orginal comment pointed out.

The point of this gist or discussion which I am looking forward to isn't about systemd but rather trying to compile a list about what are some other softwares and why they are hated etc. as I felt like this was a really interesting topic.

So the question on everybody's mind should now be?

@crisdosaygo
crisdosaygo / vanity.c
Created March 28, 2025 10:53
gcc -O2 -o vanity vanity.c -lssl -lcrypto
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <openssl/sha.h>
#define TARGET_PREFIX "20250327"
#define MAX_WORDS 256
#define MAX_TEXT 2048
#define MAX_ATTEMPTS (1ULL << 32) // 2^32 attempts (~4.3B, enough for 8-char prefix)
@SMUsamaShah
SMUsamaShah / list_of_p2p_file_sharing.md
Last active December 21, 2025 06:48
List of P2P file sharing tools

Browser Based

  1. Web Wormhole https://webwormhole.io/ https://github.com/saljam/webwormhole
  2. Localsend https://web.localsend.org/
  3. FilePizza https://file.pizza/
  4. ShareDrop sharedrop.io https://github.com/szimek/sharedrop (SOLD, not recommended, use one of the forks)
    1. A clone SnapDrop snapdrop.net https://github.com/RobinLinus/snapdrop (SOLD, not recommended, use one of the forks)
      1. A fork PairDrop https://pairdrop.net/ https://github.com/schlagmichdoch/pairdrop
  5. ToffeeShare https://toffeeshare.com/
  6. Instant.io https://instant.io/
@nickovs
nickovs / curve25519.py
Last active February 25, 2025 17:18
A pure Python implementation of Curve25519
"""A pure Python implementation of Curve25519
This module supports both a low-level interface through curve25519(base_point, secret)
and curve25519_base(secret) that take 32-byte blocks of data as inputs and a higher
level interface using the X25519PrivateKey and X25519PublicKey classes that are
compatible with the classes in cryptography.hazmat.primitives.asymmetric.x25519 with
the same names.
"""
# By Nicko van Someren, 2021. This code is released into the public domain.
@tuxfight3r
tuxfight3r / socat-forward-tcp.sh
Created April 18, 2019 14:15 — forked from drmalex07/socat-forward-tcp4-to-tcp6.sh
Tunnel TCP traffic via socat. #socat
#!/bin/bash
PUBLIC_IP4_IFACE=eth2
LISTEN_IFACE=${PUBLIC_IP4_IFACE}
listen_address=$(ip -f inet addr show dev ${LISTEN_IFACE} | grep -Po 'inet \K[\d.]+')
listen_port=${1}
target_host=${2}
target_port=${3}
@tazjin
tazjin / thoughts.md
Last active December 12, 2025 19:33
Nix builder for Kubernetes
@baleyko
baleyko / socat_server.sh
Created March 8, 2018 10:44 — forked from CMCDragonkai/socat_server.sh
Socat: Simple HTTP Server
socat \
-v -d -d \
TCP-LISTEN:1234,crlf,reuseaddr,fork \
SYSTEM:"
echo HTTP/1.1 200 OK;
echo Content-Type\: text/plain;
echo;
echo \"Server: \$SOCAT_SOCKADDR:\$SOCAT_SOCKPORT\";
echo \"Client: \$SOCAT_PEERADDR:\$SOCAT_PEERPORT\";
"
@sebble
sebble / stars.sh
Last active November 26, 2025 06:16
List all starred repositories of a GitHub user.
#!/bin/bash
USER=${1:-sebble}
STARS=$(curl -sI https://api.github.com/users/$USER/starred?per_page=1|egrep '^Link'|egrep -o 'page=[0-9]+'|tail -1|cut -c6-)
PAGES=$((658/100+1))
echo You have $STARS starred repositories.
echo