🔐
OpenSSL Install
Install the OpenSSL on Debian based systems
sudo apt-get install openssl
Install the OpenSSL on Debian based systems
sudo apt-get install openssl
#!/usr/bin/env python | |
import argparse | |
import io | |
import operator | |
import re | |
from contextlib import redirect_stderr | |
from pathlib import Path | |
""" |
# /usr/lib/systemd/system/backup-saves.service | |
[Unit] | |
Description=Run ludusavi then rsync to offsite backup | |
[Service] | |
Type=simple | |
ExecStart=bash /home/deck/backup_saves.sh |
#!/usr/bin/env python3 | |
""" | |
NOTE: | |
Extended into a full repo at https://github.com/pythoninthegrass/convert_html_md | |
Any future work will be posted there. | |
SOURCES: | |
https://gist.github.com/aolle/6e595650391deef79ffb1c9bb38fb6e9 | |
https://dev.to/kcdchennai/python-decorator-to-measure-execution-time-54hk |
#!/usr/bin/env bash | |
# SOURCE: https://gist.github.com/Koze/2e1a9bf967b2bf865fc9 | |
# close all windows (e.g., thousands of finder windows from unarchiver) | |
osascript -e 'tell application "Finder" to close windows' | |
## index 1 is frontmost window | |
# osascript 'tell application "Finder" to close window 1' |
A Pen by pythoninthegrass on CodePen.
--[[ | |
lvim is the global options object | |
Linters should be | |
filled in as strings with either | |
a global executable or a path to | |
an executable | |
]] | |
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT |
#!/usr/bin/env bash | |
export LC_ALL=C | |
if ((BASH_VERSINFO[0] < 4)); then | |
echo "Sorry, you need bash 4.0 or newer to run this script." | |
exit 1 | |
fi | |
# Check for gnu tools on MacOS | |
UNAME="uname" |
As of at least macOS Catalina 10.15.3, /etc/sysctl.conf
values are no longer respected and/or the file straight up doesn't exist (confirmed on macOS Monterey 12.4.)
Ran across a fio
shm error: failed to setup shm segment
while benchmarking SSDs. The fix was to set shmmni
to 4096
. The following has to happen:
Warning
Disable SIP only temporarily to perform necessary tasks, and reenable it as soon as possible. Failure to reenable SIP when you are done testing leaves your computer vulnerable to malicious code.
#/etc/profile: system-wide .profile file for ash. | |
umask 077 | |
PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin | |
export PATH | |
PGDATA=/var/services/pgsql | |
export PGDATA |