Skip to content

Instantly share code, notes, and snippets.

View epsilon-0's full-sized avatar
being cute

A. Tammy epsilon-0

being cute
View GitHub Profile
epsilon-0 /
Last active May 20, 2022 09:09
run commands in podman container/pod namespace
die() { echo "$*" 1>&2 ; exit 1; }
# run commands in podman container/pod namespace, even in rootless containers
# the first argument is the pod or container name
# the rest of the arguments are the command that needs to be run in the namespace of the container/pod
# this works for rootless containers and can also allow separate wireguard or nftables configuration for each
# container/pod. This is particularly useful if forwarding an IP from a VPS without having a firewall at the VPS.
pirate /
Last active September 4, 2023 21:45
Backup a docker-compose project, including all images, named and unnamed volumes, container filesystems, config, logs, and databases.
#!/usr/bin/env bash
### Bash Environment Setup
# set -o xtrace
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
macbookandrew / findStyles.js
Last active September 14, 2023 20:10
List unique CSS properties for all DOM elements
View findStyles.js
* List unique CSS properties for all DOM elements
* Initially created to list unique font stacks on a page
* @see {@link Inspired by this StackOverflow answer}
* @see {@link URL for this file}
* @author AndrewRMinion Design (
* @version 1.1
tvlooy /
Last active November 21, 2022 17:27
OpenBSD VMM howto
raine /
Last active October 4, 2021 10:52
Connecting to gitter using weechat

Auth and copy token at

Ignore the /PASS thing, it doesn't work in weechat.

/server add gitter -ssl -ssl_verify -ssl_dhkey_size=1024 -password=<REPLACE_WITH_YOUR_TOKEN>
/connect gitter
myusuf3 /
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
eddmann /
Last active March 14, 2023 22:52
Arch Setup (with Awesome)
# setup disk partitions
# format disk partitions
lsblk /dev/sda
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
pascalpoitras /
Last active September 28, 2023 21:39
My always up-to-date WeeChat configuration (weechat-dev)