Skip to content

Instantly share code, notes, and snippets.

@charliwest
charliwest / firstBootLogin.sh
Created January 10, 2024 09:22
Runs the first time a user logs in after enrollment macOS
#!/bin/zsh
organizationIdentifier=XXXX
installerBaseString=${organizationIdentifier}.firstBoot
tempUtilitiesPath=/var/tmp
installerScriptName=${installerBaseString}-installer.zsh
uninstallerScriptName=${installerBaseString}-cleanup.zsh
launchDaemonName=${installerBaseString}.plist
launchDaemonPath="/Library/LaunchDaemons"/${launchDaemonName}
installerScriptPath=${tempUtilitiesPath}/${installerScriptName}
uninstallerScriptPath=${tempUtilitiesPath}/${uninstallerScriptName}
@charliwest
charliwest / basicAppRemover
Created January 4, 2024 12:43
Tries its best to find things related to an app and remove it
#!/bin/bash
set -euo pipefail
function remove()
{
paths=("$@")
for path in "${paths[@]}"
do
if [[ -e $path ]]; then
@charliwest
charliwest / gist:10d174693bfe6a477e6d9ecdb01b3fc3
Last active November 28, 2023 12:09
browser_remover_combined.sh
#!/bin/bash
# Check if the app names are provided as a command line argument
if [ -z "$4" ]; then
echo "Usage: $0 <app_names>"
exit 1
fi
# Get the app names from the fourth argument and split them into an array
IFS="," read -ra app_names <<< "$4"
2021-1-7 21:20:57.6|Info|RefreshMovieService|Updating info for WALL·E
2021-1-7 21:21:09.3|Info|RefreshMovieService|Updating info for Wanted
2021-1-7 21:21:18.5|Info|RefreshMovieService|Updating info for We Need to Talk About Kevin
2021-1-7 21:21:18.6|Info|MediaCoverService|Downloading Fanart for [Wanted (2008)][tt0493464, 8909] https://image.tmdb.org/t/p/original/qqhzXiNyCotzJdyEbi41EtzYYYI.jpg
2021-1-7 21:21:28.0|Info|RefreshMovieService|Updating info for You're Next
2021-1-7 21:21:28.0|Info|MediaCoverService|Downloading Poster for [We Need to Talk About Kevin (2011)][tt1242460, 71859] https://image.tmdb.org/t/p/original/auAmiRmbBQ5QIYGpWgcGBoBQY3b.jpg
2021-1-7 21:21:36.4|Info|RefreshMovieService|Updating info for Zootopia
2021-1-7 21:21:36.7|Info|MediaCoverService|Downloading Fanart for [You're Next (2011)][tt1853739, 83899] https://image.tmdb.org/t/p/original/18uR7gc2JnblqfOBhVMGXuz3chi.jpg
2021-1-7 22:12:28.2|Info|RssSyncService|Starting RSS Sync
2021-1-7 22:12:30.7|Info|DownloadDecisionMaker|Processing
@charliwest
charliwest / docker-compose.yml
Last active October 25, 2019 14:23 — forked from Aghassi/docker-compose.yml
LinuxServer Docker Compose: Plex, Sonarr, Radarr, NZBGet, Let's Encrypt
version: '2'
services:
hydra2:
image: linuxserver/hydra2:latest
container_name: hydra2
volumes:
- /volume1/docker/hydra2:/config
- /volume1/media/downloads/nzb:/downloads
restart: always
environment: