Skip to content

Instantly share code, notes, and snippets.

View FlyingFathead's full-sized avatar
💭
Just flyin' around

Harry Horsperg FlyingFathead

💭
Just flyin' around
View GitHub Profile
@FlyingFathead
FlyingFathead / disable_and_mask_avahi_and_cups.sh
Last active May 28, 2025 11:53
Disable+mask Avahi & CUPS
#!/bin/bash
#
# Disable and Mask CUPS & Avahi Services
#
# ~~~ Overview ~~~
#
# This script is designed to disable and mask specific CUPS (Common Unix Printing System)
# and Avahi services and sockets on your Debian/Ubuntu tree Linux systems.
#
# It reduces possible attack vectors and mitigates several security vulnerabilities
@FlyingFathead
FlyingFathead / word_letter_counter_for_llm_datasets.py
Last active July 31, 2024 19:08
Word letter counting dataset generator for LLM training
#!/usr/bin/env python3
# word_letter_counter_for_llm_datasets.py
"""
A training set generator to assist an LLM in actually being able to count
the letters in a given word. A model that can't count letters in a word isn't
usable for critical tasks; incorrect letter counts lead to compounding mistakes.
Outputs in JSON, can also use the NLTK corpus for a word dictionary, offering
a quick way to create a massive letter counting dataset for different words.
@thesamesam
thesamesam / xz-backdoor.md
Last active December 9, 2025 03:22
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@FlyingFathead
FlyingFathead / ubuntu-rpi-linuxmodules.sh
Last active December 6, 2021 03:42
Ubuntu Impish (21.10) Raspberry Pi4B distribution check and 'linux-modules-extra-raspi' "auto-installer" (fingers crossed!)
#!/bin/bash
# this script will download and install the 'linux-modules-extra-raspi' package if:
#
# 1. the Linux distribution is detected as Ubuntu, and
# 2. the mentioned package is not installed on the system according to dpkg.
#
# The packages are:
# On the Raspberry Pi: apt package 'linux-modules-extra[-raspi]', or:
# on x86_64 (amd64) environments, named according to the kernel that's in use.
# is required starting from Ubuntu Impish to install zram-swap
@FlyingFathead
FlyingFathead / parsers.sh
Last active May 4, 2023 08:40
text parsers for bash / gpt-2 etc training data
#!/bin/bash
# idiotproofing, "lol"
echo "bad human/entity! this isn't inteded to be run!"
tail --lines=+8 ./parsers.sh
exit 1
# ===============================================================================
# 1. SPLIT A LARGE FILE WITH GPT-2'S <|endoftext|> DELIMITER AS THE SPLIT POINT.
# ===============================================================================
@TheDevMinerTV
TheDevMinerTV / Skins.json
Last active July 10, 2025 07:56
Rust skins automatically updated!
{
"Command": "skin",
"Skins": [
{
"Item Shortname": "fun.guitar",
"Skins": [
0,
809801196,
826914904,
809938266,
# Code adapted from Tensorflow Object Detection Framework
# https://github.com/tensorflow/models/blob/master/research/object_detection/object_detection_tutorial.ipynb
# Tensorflow Object Detection Detector
import numpy as np
import tensorflow as tf
import cv2
import time
@FinalAngel
FinalAngel / get_youtube_id_regex.js
Created February 21, 2012 14:45
get youtube id regex
/(youtu(?:\.be|be\.com)\/(?:.*v(?:\/|=)|(?:.*\/)?)([\w'-]+))/i
Tested examples:
http://www.youtube.com/user/Scobleizer#p/u/1/1p3vcRhsYGo
http://www.youtube.com/watch?v=cKZDdG9FTKY&feature=channel
http://www.youtube.com/watch?v=yZ-K7nCVnBI&playnext_from=TL&videos=osPknwzXEas&feature=sub
http://www.youtube.com/ytscreeningroom?v=NRHVzbJVx8I
http://www.youtube.com/user/SilkRoadTheatre#p/a/u/2/6dwqZw0j_jY
http://youtu.be/6dwqZw0j_jY
http://www.youtube.com/watch?v=6dwqZw0j_jY&feature=youtu.be