Skip to content

Instantly share code, notes, and snippets.

View mikew's full-sized avatar

mikew mikew

  • 709scene
  • St. John's, Newfoundland
View GitHub Profile
@mikew
mikew / babel.config.js
Created November 27, 2023 00:51
efficient mui imports via babel
[
'babel-plugin-transform-imports',
{
'@mui/material': {
transform: (importName: string) => {
const base = '@mui/material/modern'
switch (importName) {
case 'colors':
throw new Error(
@mikew
mikew / gist:aa3a4d03780aabc40237900d44f07a5e
Created September 20, 2023 03:18
browser-kde-color-scheme resources
j
@mikew
mikew / 00-README.md
Last active February 16, 2024 15:56
Homelab User Documentation

Services

Movie DVR

Powered by [Radarr][radarr-docs]

The idea behind this is you search for a movie, select the desired quality, and that's it. Radarr will periodically search for any missing movies and download them.

@mikew
mikew / routePath.ts
Created December 29, 2022 21:39
Route Path
import {
generatePath,
matchPath,
useParams,
ExtractRouteParams,
} from 'react-router'
import history from './history'
// Routes have parameters, and it's important to know about them.
@mikew
mikew / 00-README.md
Last active August 28, 2021 18:41
GloSC UWP Path script

The process of getting the full path of a UWP application for GloSC is a little cumbersome. This script aims to automate it.

It prints the contents of an ini file for GloSC, with the name of the UWP app.

@mikew
mikew / 00-README.md
Created August 20, 2020 18:34
FF9 / Moguri Mod Woes

Update: On August 18th, 2020, Moguri version 8.2.1.2 was released. Sadly, it breaks Steam's controller support, which in turn means Steam Remote Play is also broken.


On August 6th, 2020, an update was release for Final Fantasy 9 on Steam. This broke Moguri Mod.


Read below for instructions on how to downgrade FF9 and Moguri Mod.

@mikew
mikew / vid2gif.sh
Last active January 24, 2020 20:57
#!/bin/sh
# http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
_convert() {
palette="$(mktemp).png"
fps="15"
width="800"
# width="300"
dither="dither=bayer:bayer_scale=3"
on run argv
set appToLaunch to (item 1 of argv)
tell application "System Events"
set activeApp to bundle identifier of first process whose frontmost is true
end tell
if appToLaunch is equal to activeApp then
tell application "System Events" to keystroke "`" using command down
else
#!/usr/bin/env bash
set -e
main() {
local service_name="${1:-systemd-cloudwatch}"
local group_name="${2:-vineview}"
local filter_unit="${3}"
[ -z "${service_name}" ] && usage
@mikew
mikew / 00-prepare.sh
Created August 10, 2018 21:05
"easily" extend create-react-app
#!/usr/bin/env bash
set -ex
# Overwrites a CRA webpack config with one that loads the config from CRA
# and passes it to a function you control.
overwrite-cra-webpack() {
echo "const path = require('path')
const extensions = path.join(process.cwd(), 'webpack.config.js')
module.exports = require(extensions)(require('${1}'))"
}