Skip to content

Instantly share code, notes, and snippets.

View whi-tw's full-sized avatar
🌐
YAY, STATUS FROM API

whi-tw

🌐
YAY, STATUS FROM API
View GitHub Profile
@whi-tw
whi-tw / README.MD
Last active May 10, 2025 20:51
UTM dynamic resolution fix (workaround)

Steps

  1. mkdir /opt/utm-resolution-fix/
  2. cp watch-and-fix.sh /opt/utm-resolution-fix/watch-and-fix.sh
  3. chmod +x /opt/utm-resolution-fix/watch-and-fix.sh
  4. cp utm-resolution-fix.service /etc/systemd/user/utm-resolution-fix.service
  5. systemctl --user daemon-reload
  6. systemctl --user enable --now utm-resolution-fix.service

Now, resizing the UTM window should actually resize the guest automatically.

@whi-tw
whi-tw / font-face.css
Created August 5, 2023 15:12
Fira Code Nerd Font for Blink Shell
This file has been truncated, but you can view the full file.
@font-face {
font-family: "FiraCode Nerd Font Mono";
font-style: normal;
font-weight: 200;
src: url("data:font/ttf;charset=utf-8;base64,AAEAAAASAQAABAAgR0RFRr7qoc8AH4F8AAAB2EdQT1NoLkU8ACBAOAAASMBHU1VCu506wwAfg1QAALziT1MvMoHBkFMAAAGoAAAAYFBmRWQW5NdDACCI+AAAAjhjbWFwgoQ4ogAAWWAAACOoY3Z0IEVKGEcAAIv4AAAAqGZwZ22eNhXSAAB9CAAADhVnYXNwAAAAEAAfgXQAAAAIZ2x5ZrLHi0cAATtAABuZ2GhlYWQVlbEeAAABLAAAADZoaGVh/v4BRQAAAWQAAAAkaG10eEGKNqwAAAIIAABXVmxvY2Fw4D2gAACMoAAArqBtYXhwM4sOngAAAYgAAAAgbmFtZea9wogAHNUYAAAJCXBvc3T9qsMSABzeJAACo1BwcmVwis2cHgAAiyAAAADWAAEAAAAGAIPgudo7Xw889QAXB54AAAAA3c/67gAAAADgomub8iv8GAXICWAAAAAGAAIAAQAAAAAAAQAABwj9qAAABLDyK/7oBcgAAQAAAAAAAAAAAAAAAAAAAAQAAQAAK6cIxwBgAHgACgACAkADeACNAAAEqQHiAAMAAwAEBLABLAAFAAAE9ASSAAAAkgT0BJIAAAKrADIBPgAAAgAACQAAAAAAAOAAAu8SAfn7AgAgOAAAAABDVERCAYAADf//Bwj9qAAABwgCWGAAAJ/f1wAABBoFXgAAACAABgSwAFAAAAAABLAAAASwAAAAAAHfAVwAdACaACIAdQH9AQcBaQBtAJYBowDRAbUAdwCkANQAggB7AKAAsQCwANQAkQCTAcMBngC7AOYAuwDHABkAPADZAJAAugEOAScAaQC6AN8ApQDtASgARQC6AGsBBwBjAOUAagBaAKMAQAAOAE4AQgCi
@whi-tw
whi-tw / README.md
Created December 18, 2024 16:13
Script to fixup commit a bunch of changed files in a git repo

Fixup a bunch of things

Usage

./fixup_to_last_changed.sh <file> <file> <file> [optional git cli flags]

Description

  • ./fixup_to_last_changed.sh <file> - will find the last commit where file was changed, and create a fixup commit for that commit.
  • ./fixup_to_last_changed.sh - as above, but individually with two files, creating two fixup commits