Skip to content

Instantly share code, notes, and snippets.

@TylerJWhit
TylerJWhit / repos.txt
Created September 3, 2025 18:44
repos.txt
https://github.com/Gogh-Co/Gogh.git
https://github.com/paperwm/PaperWM.git
@TylerJWhit
TylerJWhit / repos.sh
Created September 3, 2025 18:43
Grab a list of Repos in a repo folder and output to a file (For reinstall needs).
#!/bin/bash
# === Save GitHub repos from repos/ ===
repos_dir="."
output_file="repos.txt"
if [[ -d "$repos_dir" ]]; then
echo "Collecting repo URLs from $repos_dir..."
> "$output_file" # clear previous file
for dir in "$repos_dir"/*/; do
if [[ -d "$dir/.git" ]]; then
@TylerJWhit
TylerJWhit / install.sh
Last active September 3, 2025 18:34
Install a list of apt packages and snap packages (prepend snap packages with the word snap)
#!/bin/bash
# Update and upgrade system
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
# Read apps.txt line by line
while IFS= read -r app || [ -n "$app" ]; do
# Skip empty lines
@TylerJWhit
TylerJWhit / Get-RemoteLocalGroupMembers.ps1
Last active April 28, 2021 17:32
Get-RemoteLocalGroupMembers
# Version: 0.5
# Date: 2021-04-28
# File Name: Get-RemoteLocalGroupMembers
# Author: TylerJWhit
# Notes:
# The following commands may be of help:
#
# Run against every computer in domain.
# Get-ADComputer -Filter * | Select-Object -ExpandProperty Name | Get-RemoteLocalGroupMembers
#
@TylerJWhit
TylerJWhit / .bashrc
Last active March 12, 2020 02:14 — forked from chrisnolet/.bash_profile
Color-coded git branch for bash prompt
# Original Source https://gist.github.com/chrisnolet/46206e21d59f8250bb979a8516a9a034
# Modified to stick with Pop_OS! Style.
parse_git_branch() {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (*\([^)]*\))*/\1/'
}
markup_git_branch() {
if [[ -n $@ ]]; then
if [[ -z $(git status --porcelain 2> /dev/null) ]]; then
@TylerJWhit
TylerJWhit / .bash_profile
Created March 1, 2020 07:57 — forked from chrisnolet/.bash_profile
Color-coded git branch for bash prompt
parse_git_branch() {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (*\([^)]*\))*/\1/'
}
markup_git_branch() {
if [[ -n $@ ]]; then
if [[ -z $(git status --porcelain 2> /dev/null) ]]; then
echo -e " \001\033[32m\002($@)\001\033[0m\002"
else
echo -e " \001\033[31m\002($@)\001\033[0m\002"
@TylerJWhit
TylerJWhit / nato.py
Last active February 19, 2019 00:31
Text to Nato
import argparse
import sys
def get_argument_parser():
parser = argparse.ArgumentParser(description = 'Converts string to Nato Alphabet')
parser.add_argument('argstr', type = str)
return parser
@TylerJWhit
TylerJWhit / Get-InstalledApps.ps1
Last active December 7, 2019 16:02
List all applications in Windows
# Version: 0.5
# Date: 2019-01-30
# File Name: Get-InstalledApps
# Author: TylerJWhit
# Notes:
# The following commands may be of help:
#
# Run against every computer in domain.
# Get-ADComputer -Filter * | Select-Object -ExpandProperty Name | Get-InstalledApps
#
base:
'*':
- basepkgs
- sshsetup
roles:webserver:
- match: grain
- apache
@TylerJWhit
TylerJWhit / gist:5e2cfd26c9eda4bb82140788f1b75215
Last active January 11, 2017 01:38
FreeBSD Drives, Memory, Motherboard, and CPU info
geom disk list | grep 'Mediasize\|descr'; sysctl hw.physmem hw.model; dmidecode --type baseboard | grep Product