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 / keybase.md
Created January 8, 2018 18:50
Keybase Proof

Keybase proof

I hereby claim:

To claim this, I am signing this object:

#!/bin/bash
if [ "$1" = "help" ]; then
echo "AxelFoley, pacman, aerodynamic, furelise, snowtruck, sandstorm, ff, ffvic, imperialmarch, tetris, zelda, phasor, mythexe, mario, missionimpossible, mariovictory"
elif [ "$1" = "AxelFoley" ]; then
beep -f 659 -l 460 -n -f 784 -l 340 -n -f 659 -l 230 -n -f 659 -l 110 -n -f 880 -l 230 -n -f 659 -l 230 -n -f 587 -l 230 -n -f 659 -l 460 -n -f 988 -l 340 -n -f 659 -l 230 -n -f 659 -l 110 -n -f 1047-l 230 -n -f 988 -l 230 -n -f 784 -l 230 -n -f 659 -l 230 -n -f 988 -l 230 -n -f 1318 -l 230 -n -f 659 -l 110 -n -f 587 -l 230 -n -f 587 -l 110 -n -f 494 -l 230 -n -f 740 -l 230 -n -f 659 -l 460
elif [ "$1" = "pacman" ]; then
beep -l 100 -f 15804.2656402 -n -l 25 -f 19.4454364826 -n -l 25 -f 123.470825314 -n -l 50 -f 554.365261954 -n -l 75 -f 138.591315488 -n -l 75 -f 1108.73052391 -n -l 50 -f 19.4454364826 -n -l 75 -f 783.990871963 -n -l 50 -f 19.4454364826 -n -l 75 -f 698.456462866 -n -l 50 -f 195.997717991 -n -l 25 -f 184.997211356 -n -l 50 -f 1108.73052391 -n -l 75 -f 7
@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ღ)", "♥(。ᅌ ω ᅌ。)",
@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 / 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 / README.md
Last active July 15, 2021 19:34
string array deepEquals
@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 / 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 / README.md
Last active January 9, 2023 02:57
sb.ltn.fi userscripts
@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