Skip to content

Instantly share code, notes, and snippets.

View mchangrh's full-sized avatar
🐕
Spreadsheets

Michael M. Chang mchangrh

🐕
Spreadsheets
View GitHub Profile
@mchangrh
mchangrh / cane-sb-buttons.user.js
Created August 12, 2023 19:23 — forked from mlnrDev/cane-sb-buttons.user.js
YouTube SponsorBlock Buttons
// ==UserScript==
// @name YouTube SB Buttons
// @namespace cane-sb-buttons
// @version 1.0.8
// @updateURL https://gist.githubusercontent.com/mlnrDev/b0949e9d3f2ba312b7523579976c9f31/raw/cane-sb-buttons.user.js
// @downloadURL https://gist.githubusercontent.com/mlnrDev/b0949e9d3f2ba312b7523579976c9f31/raw/cane-sb-buttons.user.js
// @description Useful buttons/redirects for SponsorBlock moderation. No need for bookmarklets!
// @author cane, original by Deedit
// @match https://www.youtube.com/*
// @icon https://sponsor.ajay.app/LogoSponsorBlockSimple256px.png
@mchangrh
mchangrh / zfs_dfree
Created June 13, 2023 01:21
ZFS SMB dfree
#!/bin/bash
CUR_PATH=$(pwd)
function GET_ZPOOL {
arrIN=(${CUR_PATH//\// })
echo "${arrIN[0]}"
}
ZPOOL=$(GET_ZPOOL)
ZFS_CHECK_OUTPUT=$(zfs get type "$ZPOOL" 2>&1 > /dev/null) > /dev/null
@mchangrh
mchangrh / bootstrap.sh
Last active March 30, 2024 03:02
Universal U(EFI) bootstrap from inside
#!/bin/bash
# USAGE: ./bootstrap.sh <swap_partition>
# DESCRIPTION: Overwrites swap partition with netboot.xyz image and adds efibootmgr entry for next boot
# LICENSE: LGPL3.0-only
# for OCI, currently you'll have to connect to your console via VNC after reboot
# https://docs.oracle.com/en-us/iaas/Content/Compute/References/serialconsole.htm#Connecti
# and proceed through the "graphical" installer
@mchangrh
mchangrh / README.md
Last active January 9, 2023 02:57
sb.ltn.fi userscripts
@mchangrh
mchangrh / yt-neuter.txt
Last active August 3, 2023 07:06
yt-neuter uBo list
[uBlock Origin]
! Title: YouTube Neuter
! Last modified: 2022/06/27
! Expires: 10 days
! Homepage: https://github.com/mchangrh/yt-neuter
! Licence: Unlicense
! Redirect https://raw.githubusercontent.com/mchangrh/yt-neuter/main/yt-neuter.txt
!
## global
@mchangrh
mchangrh / debian-mirrors.ini
Last active April 5, 2022 21:42
Debian Mirrors
# OVH
http://debian.mirrors.ovh.net/debian/
# DigitalOcean
http://mirrors.digitalocean.com/debian/
# Azure
http://debian-archive.trafficmanager.net/debian/
# AWS
https://cdn-aws.deb.debian.org/
# Amazon Cloudfront / Cache
https://cloudfront.debian.net/debian/
@mchangrh
mchangrh / README.md
Last active July 15, 2021 19:34
string array deepEquals
@mchangrh
mchangrh / o365backup.md
Last active February 18, 2023 02:15
Office 365 Backup Solution

Office 365 Backup Solution

tl;dr "Buy Office 365 Cloud - Cloud Backup" - So I created my own alternative I received a phone call from another business who tried to sell me on a Office 365 Cloud - Cloud Backup solution. I work at a relatively small company so our email is managed on Office 365. I havn't heard of any Office 365 Backup Solutions so I played along and tried to get the details out. Unfortunately, after a quick Google search, there were only paid, enterprise solutions and nothing open source. So here's the workaround.

Setup

To set this system up, a few components are required

  • Outlook 2016 Desktop App on Windows
@mchangrh
mchangrh / macgen.sh
Last active May 13, 2019 18:43
MAC Address Generation from FQDN
#/bin/bash
# title :MacGen
# description :Randomly Generate MAC from FQDN
# author :mchangrh
# source :https://repl.it/@mchangrh/MacGen
#==========
# Read Hostname
read -p 'Enter Hostname:' host
# Establish Prefixes
@mchangrh
mchangrh / uwus.js
Created March 30, 2019 06:02
collections of uwus in json array
["(・`ω´・)", ";;w;;", "owo", "UwU", ">w<", "^w^",
"OwO", "Owo", "owO", "ÓwÓ", "ÕwÕ",
"@w@", "ØwØ", "øwø", "uwu", "☆w☆",
"✧w✧", "♥w♥", "゜w゜", "◕w◕", "ᅌwᅌ",
"◔w◔", "ʘwʘ", "⓪w⓪", "︠ʘw ︠ʘ", "(owo)",
"𝕠𝕨𝕠", "𝕆𝕨𝕆", "𝔬𝔴𝔬", "𝖔𝖜𝖔", "𝓞𝔀𝓞",
"𝒪𝓌𝒪", "𝐨𝐰𝐨", "𝐎𝐰𝐎", "𝘰𝘸𝘰", "𝙤𝙬𝙤",
"𝙊𝙬𝙊", "𝚘𝚠𝚘", "σωσ", "OɯO", "oʍo",
"oᗯo", "๏w๏", "o̲wo̲", "ᎧᏇᎧ", "օաօ",
"(。O ω O。)", "(O ᵕ O)", "(O꒳O)", "ღ(O꒳Oღ)", "♥(。ᅌ ω ᅌ。)",