Skip to content

Instantly share code, notes, and snippets.

View smmr0's full-sized avatar

Summer ☀️ smmr0

View GitHub Profile
@smmr0
smmr0 / do-app-update
Last active October 4, 2021 00:26
do-app-update
#!/usr/bin/env sh
set -e
app_name="$1"
app_id="$(doctl apps list --format 'Spec.Name,ID' | tail -n +2 | awk -v "app_name=$app_name" '$1 = $app_name { print $2 }')"
tempfile="$(mktemp --tmpdir "do-$app_name-XXXXXXXXXX.yaml")"
trap 'rm -f "$tempfile"' EXIT
@smmr0
smmr0 / autoconfig.js
Last active April 9, 2026 20:51
Firefox Developer Edition/Betterbird: Desktop friendlier
// https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig
pref('general.config.filename', 'firefox.cfg');
pref('general.config.obscure_value', 0);
@smmr0
smmr0 / userChrome.css
Last active July 23, 2023 19:02
Firefox: User chrome
/* Moved to https://gist.github.com/smmr0/2463f83c858f7af7ba018a19e8fa07df#file-userchrome-css */
@smmr0
smmr0 / .gitconfig-organization.local
Last active August 8, 2024 20:26
Git: Organization config
[user]
name = …
email = …
signingkey =
@smmr0
smmr0 / logid.cfg
Last active April 11, 2025 01:26
logiops config
devices: (
{
name: "MX Master 3S";
hiresscroll: {
hires: true;
invert: false;
target: false;
};
buttons: (
{
@smmr0
smmr0 / 49-i18npath-generator
Last active May 26, 2025 20:17
Linux: Custom locale
#!/usr/bin/env sh
# https://src.fedoraproject.org/rpms/setup/blob/94f4f1acd8043ebf19727f66a0b91e6a530e4d7b/f/profile#_11
i18npathmunge() {
case ":${I18NPATH}:" in
*:"$1":*)
;;
*)
if [ "$2" = 'after' ] ; then
I18NPATH="$I18NPATH:$1"
@smmr0
smmr0 / analog-output.conf.common.patch
Last active October 30, 2022 20:15
ASUS ZenBook 3 Deluxe UX490UA: Ubuntu: Volume controls
# https://askubuntu.com/a/917257
--- analog-output.conf.common 2021-11-07 18:13:46.834763904 -0600
+++ analog-output.new.conf.common 2021-11-07 18:14:54.876504851 -0600
@@ -134,12 +134,23 @@
; # numbering schemes, so we can't hardcode the full jack name in our configuration
; # files.
+[Element Master]
+switch = mute
+volume = ignore
@smmr0
smmr0 / addons_extensions_plugins_and_themes.md
Last active July 2, 2026 18:58
Addons, extensions, plugins, and themes
@smmr0
smmr0 / .gitignore
Last active August 8, 2024 18:28
GNOME Desktop: Custom Locale
/gnome-desktop-3.0.mo
@smmr0
smmr0 / filter_with_python3_as_python
Last active October 25, 2023 16:16
Todo.txt: Action helper: Filter with `python3` as `python`
#!/usr/bin/env sh
# Mainly for use with <https://github.com/FND/todo.txt-cli/blob/1bdbdf41464826cc85e84ae8c3c17336e24a2922/futureTasks>
# Installation:
# 1. `cd "$TODO_ACTIONS_DIR"`
# 2. `mkdir -p helpers`
# 3. `mkdir -p filters`
# 4. `ln -s /path/to/filter_with_python3_as_python helpers/` (where `/path/to/filter_with_python3_as_python` is this file)
# 5. `ln -s /path/to/filter_cmd filters/` (where `/path/to/filter_cmd` is to be used as `TODOTXT_FINAL_FILTER`)