Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
source 0__base_include.sh
GREEN='\033[0;32m'
LB='\033[1;34m' # light blue
NC='\033[0m' # No Color
echo "############################################################################"
echo "Now deploying k3s cluster - ${CLUSTER_NAME} on multipass VMs"
@itsjimbo
itsjimbo / multipass_cluster_example.sh
Created March 13, 2025 16:21
multipass_cluster_example.sh
#!/bin/bash
set -e
source 0__base_include.sh
nodeCount=2
read -p "How many worker nodes do you want?(default:$nodeCount) promt with [ENTER]:" inputNode
nodeCount="${inputNode:-$nodeCount}"
cpuCount=4
read -p "How many cpus do you want per node?(default:$cpuCount) promt with [ENTER]:" inputCpu
cpuCount="${inputCpu:-$cpuCount}"
@itsjimbo
itsjimbo / mongodb_backup.sh
Created January 2, 2021 05:45
Mongo db backup script - tested on OSX
#!/bin/bash
######################################################################
#
# MONGODB backup script
# Notes - Use directory name to get date input instead of relying on file
# timestamp
# - Backup FIRST then remove older backups - if you don't have much
# space then you can reverse the process - but this ensure if failure
# occurs older backup will not get removed until fixed
@itsjimbo
itsjimbo / google-drive-download-jupyter-notebook.ipynb
Last active April 8, 2020 17:39
Download public google drive file from jupyter notebook using curl
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@itsjimbo
itsjimbo / hackintosh_fix_sleep.sh
Created January 24, 2020 21:28
post-update fix for sleep on hackintosh - after every update this fixes sleep; sleep is reset from apple update
#!/bin/sh
#
#
#iMac:~ $ pmset -g
#System-wide power settings:
#Currently in use:
# hibernatemode 0
# womp 0