Skip to content

Instantly share code, notes, and snippets.

View SuperSandro2000's full-sized avatar
Factorio - "><script src=></script>

Sandro SuperSandro2000

Factorio - "><script src=></script>
View GitHub Profile
thesamesam /
Last active May 27, 2024 07:18
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.


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

Mic92 /
Created October 22, 2023 05:57
Scrape all nixpkgs pull requests
#!/usr/bin/env python3
import http.client
import json
import os
import time
import urllib.parse
import urllib.request
from pathlib import Path
from typing import Any
s1341 / freeipa-server.nix
Created May 29, 2023 04:08
working freeipa config
}: let
cfg =;
in { = {
enable = lib.mkEnableOption "freeipa service";
router = lib.mkOption {
kurohouou / low-battery-and-unavailable-check.yaml
Last active March 26, 2024 14:09 — forked from sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors
name: Low Battery and Device Unavailable Check
description: Regularly test all sensors with 'battery' device-class for crossing
a certain battery level threshold as well as if it is unavailable.
domain: automation
name: Battery warning level threshold
description: Battery sensors below threshold are assumed to be low-battery (as
well as binary battery sensors with value 'on').
mfenniak / detect-reboot-needed.nix
Created January 6, 2023 15:39
NixOS module that provides hourly notifications when a reboot is needed for a kernel, initrd, or kernel-module upgrade
{ pkgs, ... }:
readlink = "${pkgs.coreutils}/bin/readlink";
notify-send = "${pkgs.libnotify}/bin/notify-send";
in { = {
script = ''
set -eu -o pipefail
gnremy / CVE-2021-44228_IPs.csv
Last active April 26, 2023 07:01
CVE-2021-44228 Apache Log4j RCE Attempts Dec 20th 9:27PM ET
ip tag_name Apache Log4j RCE Attempt Apache Log4j RCE Attempt Apache Log4j RCE Attempt Apache Log4j RCE Attempt Apache Log4j RCE Attempt Apache Log4j RCE Attempt Apache Log4j RCE Attempt Apache Log4j RCE Attempt Apache Log4j RCE Attempt
christianparpart /
Last active May 18, 2024 17:52
Terminal Spec: Synchronized Output

Synchronized Output

Synchronized output is merely implementing the feature as inspired by iTerm2 synchronized output, except that it's not using the rare DCS but rather the well known SM ? and RM ?. iTerm2 has now also adopted to use the new syntax instead of using DCS.


When rendering the screen of the terminal, the Emulator usually iterates through each visible grid cell and renders its current state. With applications updating the screen a at higher frequency this can cause tearing.

This mode attempts to mitigate that.

cketti / youtube_preview.user.js
Created May 20, 2021 00:10
Element youtube preview fix (modified)
// ==UserScript==
// @name Element youtube preview
// @namespace
// @version 0.3
// @description fix the embeds!!
// @author Cinnabar
// @author cketti
// @match
// @match https://your.element.url.example
danieldk / update-cargo-hashes.txt
Last active October 1, 2021 20:02
Rough procedure for updating all cargoSha256/cargoHash
Rough procedure for updating cargo hashes. Warning: this still requires a lot
of manual work to cover all bases. Based on:
# Invalidate all hashes
rg -l "cargoHash" | grep "\.nix" | xargs -n1 sed -i -re 's/cargoHash = "..../cargoHash = "sha256-1234/g'
rg -l "cargoSha256" | grep "\.nix" | xargs -n1 sed -i -re 's/cargoSha256 = "[^s].../cargoSha256 = "1234/g'
rg -l "cargoSha256" | grep "\.nix" | xargs -n1 sed -i -re 's/cargoSha256 = "sha256-..../cargoSha256 = "sha256-1234/g'
Konfekt /
Last active December 11, 2023 09:52
git diff common binary files