Skip to content

Instantly share code, notes, and snippets.

View gabldotink's full-sized avatar
👓

gabldotink gabldotink

👓
View GitHub Profile
@gabldotink
gabldotink / audio_formats_list.sh
Last active May 4, 2024 04:04
prints all best audio formats for a YouTube video (public domain)
#!/bin/sh
# SPDX-License-Identifier: CC0-1.0 OR 0BSD
readonly POSIXLY_CORRECT
export POSIXLY_CORRECT
# this script generates a yt-dlp audio formats list for YouTube videos with multiple languages
# you can use this list like so, for example:
# audio_formats_list="$(sh audio_formats_list.sh [url])"
# yt-dlp --use-extractors youtube --audio-multistreams --format 'bestvideo'+"$audio_formats_list" -- [url]
@gabldotink
gabldotink / pacman.conf
Last active March 24, 2024 15:19
my /etc/pacman.conf file for EndeavourOS
# https://gist.github.com/35e7b179d1d5fc4894d98cee7e07d8ae
# Based on default EndeavourOS file and https://wiki.archlinux.org/title/Unofficial_user_repositories
# “Stable” repositories are enabled, and “unstable”/“testing” repositories aren’t.
# You can adjust the commented-out lines if you want something different.
# Some of these repositories may give errors when you try to access them; you can comment them out.
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
@gabldotink
gabldotink / twitter_blocks.md
Last active January 18, 2024 05:36
accounts that have blocked me on X/Twitter https://twitter.com/gabldotink

Twitter blocks

This is a list of accounts that block me (@gabldotink) on X/Twitter.

This list only includes blockers that I am aware of. Its information may be out of date.

This information is provided entirely on an informational basis; I don’t wear any block as a medal of honor. Please do not harrass any users on this list for their decision.

I try to not block other accounts from mine. I currently have zero accounts blocked, and 21 accounts are currently blocking me.

@gabldotink
gabldotink / checkem.sh
Created September 23, 2023 14:46
checking discrepancies between a local download and the torrent files of the Elephants Dream 360p PNGs. broken. CC0 1.0
#!/bin/bash
# SPDX-License-Identifier: CC0-1.0
# This script is broken.
# for i in $(transmission-show /tmp/ed.torrent);do printf "$i" | grep --fixed-strings 'ED-360-png/' | awk '{print $1;}' > /tmp/ed_1 2>&1;find "ED-360-png/*" -type f -exec [[ {} == "$i"'.!qB' ]] \; && cat /tmp/ed_1 && printf "$q";done
for i in $(transmission-show /tmp/ed.torrent);do
printf '%s' "$i" | \
if grep --fixed-strings 'ED-360-png/';then
@gabldotink
gabldotink / why_cc.md
Created August 25, 2023 15:58
why I license my webcomic under CC BY-SA 4.0

why CC?

These are the reasons that I license my webcomic, JoeRunner and co., under CC BY-SA 4.0.

  • Allowing people to redistribute my work unrestricted means that more people see it, and it has a smaller chance of becoming lost media.

  • Using a CC license raises knowledge about CC, possibly inspiring more CC content.

@gabldotink
gabldotink / chromium_git-sizer.txt
Created August 5, 2023 15:29
git-sizer output for a mirror clone of https://chromium.googlesource.com/chromium/src ; most recent commit at the time: 396a94e9062802dec7eafbc9b26d9051807d782d (Thu Aug 3 03:28:58 2023 +0000)
| Name | Value | Level of concern |
| ---------------------------- | --------- | ------------------------------ |
| Overall repository size | | |
| * Commits | | |
| * Count | 22.1 M | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| * Total size | 14.3 GiB | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| * Trees | | |
| * Count | 29.3 M | ******************* |
| * Total size | 103 GiB | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| * Total tree entries | 2.41 G | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
@gabldotink
gabldotink / posix_ps.sh
Last active November 5, 2023 16:02
POSIX PS1 and PS2. a bit slow. CC0 1.0
PS1_FUNC(){
if [ "$(id -u)" = 0 ]
then PS1_FUNC_SYMBOL='#'
else PS1_FUNC_SYMBOL='$'
fi
printf 'gab@gabuntu %s %s
%s> ' "$PWD" "$(date '+%Y-%m-%d %H:%M:%S %Z UTC%z')" $PS1_FUNC_SYMBOL
}
PS2_FUNC(){
printf '=> '
@gabldotink
gabldotink / validator.nu_noerrors.html
Created May 12, 2023 01:59
files with the minimum requirements for validator.nu to not throw any errors or warnings. nowarnings is more strict. CC0 1.0
<!doctype html><title>;</title>
@gabldotink
gabldotink / find_us_ia_domains.sh
Last active March 14, 2023 17:47
horrible bash script I wrote to find all domains with the format "ia######.us.archive.org" via brute force. first five "until" statements can be uncommented for surety. requires bash and curl
#!/usr/bin/env bash
# find domains with format ia######.us.archive.org
# CC0 Public Domain
# https://gist.github.com/gabldotink/02076e1c66935de876f6a59ac1cd16e7
unset n
declare -i n='0'
printf 'looking for domains\n' >&2
@gabldotink
gabldotink / readme.md
Last active September 10, 2023 03:11
Wayback Machine exclusions and Save Page Now blocklist (very, very incomplete)

This gist (permanent link) contains an incomplete, unofficial list of web pages that are either:

  1. excluded from the Wayback Machine — that is, not publicly visible
  2. on the blocklist for the Wayback Machine’s Save Page Now service

wayback_exclusions

Pages that this file represents are prohibited from viewing in the Wayback Machine. Attempting to view captures from these pages will display an error message: