Skip to content

Instantly share code, notes, and snippets.

@allisson
allisson / ubuntu-2204-remove-snap.md
Last active March 19, 2024 23:11
Ubuntu 22.04 remove snap

Remove snaps

sudo snap remove --purge firefox
sudo snap remove --purge snap-store
sudo snap remove --purge snapd-desktop-integration
sudo snap remove --purge gtk-common-themes
sudo snap remove --purge gnome-3-38-2004
sudo snap remove --purge core20
sudo snap remove --purge bare
sudo snap remove --purge snapd
@chriswayg
chriswayg / README.md
Last active February 25, 2024 02:41 — forked from nicerobot/README.md
Modified macOS uninstall script for packaged install of node.js from https://stackoverflow.com/a/9287292/23056

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/chriswayg/cd923e933062f0c053a417fa6bf1094e/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@chriswayg
chriswayg / CC-Offline-Package-Generator.md
Last active July 7, 2020 15:05 — forked from jorisguex/ccdl.command
CC Offline Package Generator v0.1.2 (macOS only)
@chriswayg
chriswayg / pythonlister.sh
Last active July 23, 2020 06:12
Find and list most installed Python versions on a macOS system
#!/bin/bash
set -o errexit
# pythonlister version 0.3
# License: MIT - (c) 2020 ChrisWayg
# Run the script directly
# /bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/chriswayg/ee97606a4dc93a4cdacff90915d5d1e5/raw/pythonlister.sh)"
# Download, install with sudo in /usr/local/ and run the script
# f=/usr/local/bin/pythonlister; sudo mkdir -p /usr/local/bin && sudo curl -sSLo $f https://gist.githubusercontent.com/chriswayg/ee97606a4dc93a4cdacff90915d5d1e5/raw/pythonlister.sh && sudo chmod +x $f && pythonlister
@jorisguex
jorisguex / ccdl.command
Last active May 14, 2021 06:32 — forked from ayyybe/ccdl.command
Adobe Offline Package Generator v0.1.2 (macOS only)
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
@guycalledseven
guycalledseven / manual-uninstall-parallels.sh
Last active March 14, 2024 14:17
Manually remove Parallels Desktop v15 leftovers MacOS
# used different forum posts/guides to figure this out like:
# The uninstall script is located at /Library/Parallels/Parallels Service.app/Contents/Resources
# https://github.com/danijeljw/remparallels/blob/master/remprls.sh
# https://kb.parallels.com/122461
# sudo find / -iname "*parallels*"
# sudo find / -iname "*prl*"
#before uninstalling deactivate your licencse - this won't be possible after uninstall
prlsrvctl deactivate-license
@ayyybe
ayyybe / ccdl.command
Last active May 2, 2024 16:08
Adobe Offline Package Builder v0.1.2 (macOS only) --- No longer being maintained.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
@chriswayg
chriswayg / show_openbsd_filesets.sh
Created September 12, 2019 07:27
Display a list of file sets which have been installed by the OpenBSD installer
#!/bin/sh
set -e
# This script displays a list file sets which have been installed by the OpenBSD installer.
# It only checks one typical file per file set, as well as checking for the (renamed) bsd.mp kernel.
printf "\nInstalled OpenBSD file sets:\n"
[[ -f /bsd.sp ]] && printf "[X] bsd\n"
[[ -f /bsd ]] && [[ -f /bsd.mp ]] && printf "[X] bsd\n"
[[ -f /bsd.mp ]] && printf "[X] bsd.mp\n"
@chriswayg
chriswayg / create-cloud-template.sh
Last active May 1, 2024 20:47
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@chriswayg
chriswayg / Ubuntu_Debian_Cloud_images_in_Proxmox.md
Last active May 4, 2024 00:19
Ubuntu and Debian Cloud images in Proxmox