Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines and whitespace cleanup
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@pythoninthegrass
pythoninthegrass / docker_backup.sh
Created January 2, 2022 22:37
Compresses Docker volumes, moves to NFS, and cleans up excess archives
#!/usr/bin/env bash
# SOURCES:
# https://www.reddit.com/r/unRAID/comments/go9vz8/backing_up_large_plex_folder/
# https://www.rootusers.com/13-simple-xz-examples/
# https://unix.stackexchange.com/questions/548434/multithreaded-xz-with-gzip-pv-and-pipes-is-this-the-most-efficient-i-can-ge
# https://help.ubuntu.com/community/BackupYourSystem/TAR
# https://github.com/ColonelRyzen/unraid_plex_ssd_backup/blob/master/plex_ssd_backup.sh
# https://gist.github.com/robsonke/c5c478bae476adb32d48
# https://stackoverflow.com/questions/27793125/bash-need-to-strip-single-quotes-around-a-string/27795009#27795009
@pythoninthegrass
pythoninthegrass / Brewfile
Last active March 13, 2026 01:01
Reinstall with overwrite all formulae, casks, or Mac app store apps. Especially useful when migrating to Apple Silicon (arm64)
tap "abridoux/formulae"
tap "aws/tap"
tap "azure/azd"
tap "buo/cask-upgrade"
tap "cirruslabs/cli"
tap "controlplane-com/cpln"
tap "cue-lang/tap"
tap "d12frosted/emacs-plus"
tap "datolabs-io/opsy", "https://github.com/datolabs-io/opsy"
tap "dopplerhq/cli"
@pythoninthegrass
pythoninthegrass / python_commands.md
Last active December 5, 2021 21:16
Python Commands

Python Commands

Aliases

# ~/.bashrc

...

# ALIAS
alias python='python3.10'
On the First day of Christmas\nMy true love sent to me\nA Partridge in a Pear Tree.\n\nOn the Second day of Christmas\nMy true love sent to me\nTwo Turtle Doves, and\nA Partridge in a Pear Tree.\n\nOn the Third day of Christmas\nMy true love sent to me\nThree French Hens,\nTwo Turtle Doves, and\nA Partridge in a Pear Tree.\n\nOn the Fourth day of Christmas\nMy true love sent to me\nFour Calling Birds,\nThree French Hens,\nTwo Turtle Doves, and\nA Partridge in a Pear Tree.\n\nOn the Fifth day of Christmas\nMy true love sent to me\nFive Gold Rings,\nFour Calling Birds,\nThree French Hens,\nTwo Turtle Doves, and\nA Partridge in a Pear Tree.\n\nOn the Sixth day of Christmas\nMy true love sent to me\nSix Geese-a-Laying,\nFive Gold Rings,\nFour Calling Birds,\nThree French Hens,\nTwo Turtle Doves, and\nA Partridge in a Pear Tree.\n\nOn the Seventh day of Christmas\nMy true love sent to me\nSeven Swans-a-Swimming,\nSix Geese-a-Laying,\nFive Gold Rings,\nFour Calling Birds,\nThree French Hens,\nTwo Turtle Doves, and\
# EditorConfig is awesome: https://EditorConfig.orghttps://EditorConfig.orghttps://EditorConfig.org
# Unix-style newlines and whitespace cleanup
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
insert_final_newline = true
# general formatting
_poetry_fba08e63e8e33757_complete()
{
local cur script coms opts com
COMPREPLY=()
_get_comp_words_by_ref -n : cur words
# for an alias, get the real script behind it
if [[ $(type -t ${words[0]}) == "alias" ]]; then
script=$(alias ${words[0]} | sed -E "s/alias ${words[0]}='(.*)'/\1/")
else
# vim:fileencoding=utf-8:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family Hack Nerd Font
# bold_font auto
@pythoninthegrass
pythoninthegrass / starship.toml
Last active April 6, 2026 01:53
Starship prompt setup
# SOURCES
# https://starship.rs/config
# https://starship.rs/presets/nerd-font.html#configuration
# DEBUG via:
# starship explain
# STARSHIP_LOG=trace
"$schema" = 'https://starship.rs/config-schema.json'
# Verify that shell is interactive
if [[ $- != *i* ]]; then return; fi
# PATH
## BAK (macOS): export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" || source /etc/profile
# Android
export ANDROID_SDK=$HOME/Library/Android/sdk
export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH
# Google Cloud