Skip to content

Instantly share code, notes, and snippets.

View masezou's full-sized avatar

MASAHIRO TAKAHASHI masezou

View GitHub Profile
#!/usr/bin/env bash
# Copyright (c) 2025 masezou. All rights reserved.
#########################################################
bold_msg() {
echo -e "\033[1m$1\033[0m"
}
bold_green_msg() {
echo -e "\033[1m\033[32m$1\033[0m"
}
green_msg() {
@masezou
masezou / kopia-setup.sh
Last active February 21, 2025 05:02
kopia install for Ubuntu Server
#!/usr/bin/env bash
# Copyright (c) 2025 masezou. All rights reserved.
#########################################################
SERVER=1
KOPIA_UI_USER=kopia
KOPIA_UI_PASSWORD=Password1234
#########################################################
bold_msg() {
@masezou
masezou / k3s-setup.sh
Last active November 27, 2025 12:34
k3s setup for Ubuntu Server
#!/usr/bin/env bash
# Copyright (c) 2025 masezou. All rights reserved.
#########################################################
exec > >(tee -a /var/log/k3s-setup.log) 2>&1
bold_msg() {
echo -e "\033[1m$1\033[0m"
}
bold_green_msg() {
echo -e "\033[1m\033[32m$1\033[0m"
@masezou
masezou / Remove_VMwareTools.ps1
Created April 5, 2024 03:33 — forked from broestls/Remove_VMwareTools.ps1
Force removal of VMware Tools, Program Files, and Windows Services
# This script will manually rip out all VMware Tools registry entries and files for Windows 2008-2019
# Tested for 2019, 2016, and probably works on 2012 R2 after the 2016 fixes.
# This function pulls out the common ID used for most of the VMware registry entries along with the ID
# associated with the MSI for VMware Tools.
function Get-VMwareToolsInstallerID {
foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) {
If ($item.GetValue('ProductName') -eq 'VMware Tools') {
return @{
reg_id = $item.PSChildName;