This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:12-slim | |
RUN ["sed", "-i", "s/^Components: .*/Components: main contrib/", "/etc/apt/sources.list.d/debian.sources"] | |
RUN apt-get update && apt-get install -y libdvd-pkg dvdbackup | |
RUN ["dpkg-reconfigure", "libdvd-pkg"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import hashlib | |
import json | |
import re | |
import shutil | |
import subprocess | |
import tempfile | |
import urllib.request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import re | |
import shutil | |
import subprocess | |
import tempfile | |
import urllib.request | |
USER_AGENT = "Ungoogled-Chromium-Debian-Update/1.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <discid/discid.h> | |
static const char* get_device(int argc, char** argv); | |
int main(int argc, char** argv) { | |
DiscId* discid; | |
const char* device; | |
int read_successful; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Print a compact version of the current working directory. | |
# The home directory is replaced with ~, and long paths are truncated to the final part with < as a marker. | |
# Examples: | |
# /home/example/Documents becomes ~/Documents | |
# /example/of/a/really/really/long/path becomes <ly/really/long/path | |
# The maximum length can be set using the LIMIT variable. | |
LIMIT=20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Sort Pittsburgh Regional Transit bus schedules numerically | |
// @version 3 | |
// @match https://www.rideprt.org/all-schedules/ | |
// @grant none | |
// ==/UserScript== | |
// This script is dedicated to the public domain under Creative Commons CC0 1.0 Universal | |
// <https://creativecommons.org/publicdomain/zero/1.0/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <utility> | |
class my_class { | |
public: | |
compl my_class() {} // Destructor | |
}; | |
int main() { | |
my_class example_obj; | |
my_class bitand example_ref = example_obj; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ENTROPY_BYTES=16 | |
dd if=/dev/urandom bs="$ENTROPY_BYTES" count=1 2> /dev/null | \ | |
base64 -w 0 | sed 's/=//g; s/+/-/g; s/\//_/g' | |
echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Usage: ./makepin.py [number of digits, default 4] | |
import secrets | |
import sys | |
digit_count = int(sys.argv[1]) if len(sys.argv) >= 2 else 4 | |
pin = secrets.randbelow(10**digit_count) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Enable Direct Password Input on TreasuryDirect | |
// @version 1 | |
// @include https://www.treasurydirect.gov/* | |
// @grant none | |
// ==/UserScript== | |
document.querySelector('input.pwordinput').readOnly = false; |
NewerOlder