This file contains 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 bash | |
# Read https://www.linode.com/docs/email/postfix/configure-spf-and-dkim-in-postfix-on-debian-8 first! | |
# Run this script at the beginning of each month | |
# (Optional) Email notification if the script is interrupted | |
#function notify() { | |
# printf 'Refer to the logs for further info.\n' | mail -s 'DKIM rotation process was interrupted' '[email protected]' | |
#} | |
# |
This file contains 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 | |
# genpass by owenthewizard | |
from os import urandom | |
from base64 import b64encode | |
config = { | |
# Number of bytes of entropy to use when generating password |
This file contains 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 | |
# Example: wallpaper.py wallpaper 1920x1080 | |
import json | |
import requests | |
import tempfile | |
import subprocess | |
import sys |
This file contains 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
# Library for using Samsung 20S207DA1 | |
# Based on https://www.pollin.de/productdownloads/D120394D.PDF | |
import serial | |
class Samsung20S207DA1: | |
DIM_0 = b'\x04\x00' | |
DIM_20 = b'\x04\x20' | |
DIM_40 = b'\x04\x40' | |
DIM_60 = b'\x04\x60' |
This file contains 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/bash | |
# update-efibootmgr.sh | |
# Update UEFI boot entries using efibootmgr | |
# TODO: remove old entries, could use efibootmgr -v? | |
set -eu | |
set -o pipefail | |
distro="Funtoo Linux" |
This file contains 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
diff -Naur i3.orig/src/manage.c i3/src/manage.c | |
--- i3.orig/src/manage.c 2017-04-09 00:17:47.132061657 -0500 | |
+++ i3/src/manage.c 2017-04-09 00:18:35.928057642 -0500 | |
@@ -269,9 +269,6 @@ | |
else | |
nc = tree_open_con(nc->parent, cwindow); | |
- /* set the urgency hint on the window if the workspace is not visible */ | |
- if (!workspace_is_visible(assigned_ws)) | |
- urgency_hint = true; |