A Pen by pythoninthegrass on CodePen.
This file contains hidden or 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/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 |
This file contains hidden or 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 | |
| """ | |
| 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 |
This file contains hidden or 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 | |
| # 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' |
This file contains hidden or 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
| --[[ | |
| 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 |
This file contains hidden or 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 | |
| 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:
- Disable SIP
- Disclaimer from Apple
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.
- Disclaimer from Apple
This file contains hidden or 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
| #/etc/profile: system-wide .profile file for ash. | |
| # shellcheck disable=SC2155 | |
| umask 077 | |
| export PATH="/volume1/@appstore/git/bin:/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin" | |
| export PGDATA=/var/services/pgsql | |
| export TERMINFO=/usr/share/terminfo |
This file contains hidden or 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/Application Support/jesseduffield/lazydocker/config.yml | |
| gui: | |
| returnImmediately: true | |
| customCommands: | |
| services: | |
| - name: docker-compose | |
| command: docker-compose --env-file=.env up --remove-orphans -d | |
| containers: | |
| - name: bld-meetup | |
| attach: false |
This file contains hidden or 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
| { | |
| "name": "Keychron Q1", | |
| "vendorProductId": 875823367, | |
| "macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | |
| "layers": [ | |
| [ | |
| "KC_ESC", | |
| "KC_BRID", | |
| "KC_BRIU", | |
| "USER00", |