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
@thesamesam
thesamesam / xz-backdoor.md
Last active May 31, 2024 14:15
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.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@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 May 30, 2024 19:17
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