Skip to content

Instantly share code, notes, and snippets.

View necrose99's full-sized avatar

Michael L. necrose99

View GitHub Profile
@contactbrenton
contactbrenton / Remove-Redistributables.ps1
Last active June 19, 2025 06:17
Installs NuGet + VcRedist module, removes selected VC++ versions, and lists installed ones. Ideal for sysadmins automating system cleanups. Tags: PowerShell VcRedist Visual C++ Automation Cleanup
<#
.SYNOPSIS
This script configures the PowerShell environment for removing Visual C++ Redistributables.
It installs the NuGet package provider and the VcRedist module, and then removes specific versions of Visual C++ Redistributables.
.DESCRIPTION
The script sets the execution policy to Bypass for the current process, installs NuGet and VcRedist modules, and uninstalls specific versions of Visual C++ Redistributables (2005, 2008, 2010, 2012). It ends by listing all installed Visual C++ Redistributables.
.NOTES
Requires administrative permissions
@YoraiLevi
YoraiLevi / Download-AppxPackage.ps1
Last active June 18, 2025 23:01
Download Windows Store Apps with Powershell
#https://serverfault.com/questions/1018220/how-do-i-install-an-app-from-windows-store-using-powershell
#Usage:
# > Download-AppxPackage "https://www.microsoft.com/p/dynamic-theme/9nblggh1zbkw" "$ENV:USERPROFILE\Desktop"
# C:\Users\user\Desktop\55888ChristopheLavalle.DynamicTheme_1.4.30233.0_neutral_~_jdggxwd41xcr0.AppxBundle
# C:\Users\user\Desktop\55888ChristopheLavalle.DynamicTheme_1.4.30234.0_neutral_~_jdggxwd41xcr0.AppxBundle
# C:\Users\user\Desktop\Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x64__8wekyb3d8bbwe.Appx
# C:\Users\user\Desktop\Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x64__8wekyb3d8bbwe.Appx
# C:\Users\user\Desktop\Microsoft.Services.Store.Engagement_10.0.19011.0_x64__8wekyb3d8bbwe.Appx
# C:\Users\user\Desktop\Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe.Appx
@necrose99
necrose99 / README.md
Created February 26, 2020 05:10 — forked from kwk/README.md
Forgot to sign-off commits?

No problem,

run

git filter-branch --msg-filter "cat - && echo && echo 'Signed-off-by: Your Name <[email protected]>'" HEAD~2..HEAD

To sign-off the last two commits.

Then force to push them to the remote repo with the -f option:

#!/bin/bash
# add_ssh_key - A script to move ssh key and set permissions
##### Constants
SSH_DIR=~/.ssh/
# Check for path
@MaxXor
MaxXor / btrfs-guide.md
Last active June 16, 2025 16:44
Btrfs guide to set up an LUKS-encrypted btrfs raid volume with included maintenance & recovery guide

Encrypted Btrfs storage setup and maintenance guide

Initial setup with LUKS/dm-crypt

This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.

Create keyfile:

dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey
@mintsoft
mintsoft / iPXE_WDS_EFI.md
Last active May 6, 2025 02:39
iPXE + WDS + EFI Boot Menu
@tstellanova
tstellanova / grub_arm64_debian.md
Last active April 3, 2025 08:54
Installing and running grub on rock64 (rk3328) arm64

Starting with Rock64, u-boot installed to SPI flash, Debian stretch installed to eMMC or micro SD card.

Setup /boot

Add things like dtb and any images you want to eventually load with grub

install grub

From Debian:

sudo apt-get -y install grub2-common efivar grub-efi-arm64
@necrose99
necrose99 / caddy
Created May 4, 2018 03:04 — forked from sebastianmarkow/caddy
caddy web server openrc startup script
#!/sbin/openrc-run
description="Caddy web server"
description_reload="Reload configuration"
extra_started_commands="reload"
: ${CADDY_CONF:=/etc/caddy/Caddyfile}
: ${CADDY_PIDFILE:=/var/run/caddy.pid}
: ${CADDY_USER:=caddy}
@renich
renich / 00-gentoo-installation-partitioning.bash
Last active June 3, 2025 05:27
Install Gentoo on BtrFS subvolumes + UEFI
#!/usr/bin/env bash
# WARNING!!
# This will obliterate all the data in your partition!! (not actually true, but act as if it was)
# Do NOT execute this script if you don't fully understand it!
# a few vars
amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' )
# create directories
@fastjack
fastjack / Additional configuration for Telegraf
Last active December 4, 2022 13:14
Quick and dirty gateway metrics for telegraf on pfSense
[[inputs.exec]]
commands = ["/usr/local/libexec/telegraf/gateways.py"]
timeout = "5s"
data_format = "influx"