Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
#!/usr/bin/env bash
# SOURCES:
# https://www.cyberciti.biz/faq/apple-mac-os-x-update-softwareupdate-bash-shell-command/
# https://www.tecmint.com/use-shell-script-variable-in-awk/
# https://stackoverflow.com/questions/369758/how-to-trim-whitespace-from-a-bash-variable/40962059#40962059
# https://stackoverflow.com/questions/238073/how-to-add-a-progress-bar-to-a-shell-script
# https://beebo.org/haycorn/2015-10-03_applescript-tips.html
# https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/DisplayProgress.html
# https://pysimplegui.readthedocs.io/en/latest/#progress-meters
@pythoninthegrass
pythoninthegrass / MegaPKGr.zsh
Last active May 28, 2021 23:59 — forked from talkingmoose/MegaPKGr.zsh
The pkgbuild binary and Jamf Composer don't support adding single files of 8 GB or more to a package. Some apps like Install macOS Big Sur.app include files larger than 8 GB in their bundles. This script will create a deployable PKG file from apps whose bundles include those large files.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by: William Smith
Professional Services Engineer
Jamf
bill@talkingmoose.net
https://gist.github.com/e9ed319226c6da30dd633725e48a97b0
@pythoninthegrass
pythoninthegrass / LICENSE
Created June 7, 2021 20:01 — forked from noelbundick/LICENSE
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@pythoninthegrass
pythoninthegrass / remove_completed_torrents.sh
Last active June 21, 2021 06:53 — forked from root-hal9000/removecompletedtorrents.sh
Transmission-Daemon: Remove Completed Torrents
#!/usr/bin/env bash
# SOURCE: https://gist.github.com/ffcruz85/6c9fb792fce4af0c4cb561fd653c86b6
# Script to check for complete torrents in transmission folder, then stop and move them
# either hard-code the MOVEDIR variable here…
MOVEDIR='/data/complete'
# TODO: read $env vars or file
@pythoninthegrass
pythoninthegrass / config.yaml
Last active May 17, 2024 23:33
Tabby (AKA Terminus) config
terminal:
searchOptions: {}
colorScheme:
name: Tomorrow Night Blue Dark
foreground: '#ffffff'
background: '#212c41'
cursor: '#ffffff'
colors:
- '#000000'
- '#ff9da4'
# 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
@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'
# 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
_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
# 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