Skip to content

Instantly share code, notes, and snippets.

View SMUsamaShah's full-sized avatar
🎯
Focusing ... almost

Muhammad Usama SMUsamaShah

🎯
Focusing ... almost
View GitHub Profile
@SMUsamaShah
SMUsamaShah / dailynotes.bat
Last active March 1, 2024 18:59
(Windows) Daily Notes Prompt at end of work day
@echo off
REM Use: "script.bat Your note here" to append a note to 'daily_note_YYYY_MM_DD.txt'.
REM If no argument given, type note interactively. Press Enter on an empty line to finalize.
REM Note is saved in 'd:\notes'.
setlocal enabledelayedexpansion
REM Creating a Newline variable (the two blank lines are required!) src: https://stackoverflow.com/a/269819/342095
set NLM=^
@SMUsamaShah
SMUsamaShah / Hacker_News_Story_Rank_Change_Indicator.user.js
Last active December 25, 2025 23:55
UserScript: Indicate New/Unread HN stories on front page since your last visit.
// ==UserScript==
// @name Hacker News Story Rank Change Indicator
// @namespace http://tampermonkey.net/
// @version 2024-09-07_15-42
// @description Indicate the new stories and stories moving up/down on the front page
// @author SMUsamaShah
// @match https://news.ycombinator.com/
// @match https://news.ycombinator.com/news
// @match https://news.ycombinator.com/news?p=*
// @match https://news.ycombinator.com/?p=*
@SMUsamaShah
SMUsamaShah / Globals.json
Created December 25, 2023 00:04
Kwgt weeks in a year calendar widget
##KUSTOMCLIP##
{
"clip_version": 1,
"KUSTOM_GLOBAL": {
"gcol1": {
"index": 0,
"type": "COLOR",
"title": "gcol1",
"value": "#FFAFAFAF",
"key": "gcol1"
@SMUsamaShah
SMUsamaShah / Retro consoles capability.md
Last active December 20, 2023 09:37
Retro consoles sorted/grouped by games quality

Played games from these consoles on Miyoo Mini Plus.

Simplest (2D games, no textures)

  • Intellivision
  • Atari 2600
  • Vectrex (line drawing, good games)
  • Odyssey (difficult to control on miyoo mini)

not that simple

  • Colecovision (complicated controls for miyoo mini)
@SMUsamaShah
SMUsamaShah / find duplicate roms.md
Last active December 14, 2023 16:12
miyoo mini find duplicate roms

Find duplicate roms on Miyoo Mini (running BusyBox) when roms are zipped (.zip/.7z) and each zip contains just one file.

This command finds and lists all duplicates.

find . \( -name '*.zip' -o -name '*.7z' \) -type f -exec sh -c 'if [ "${1##*.}" = "zip" ]; then echo `unzip -p "{}" | md5sum` "{}"; else echo `7z e "{}" -so | md5sum` "{}"; fi' -- {} \; | sort | awk 'BEGIN{last_hash=""; last_line=""; seen_duplicate=0} {if ($1 == last_hash) {if (!seen_duplicate) print last_line; print $0; seen_duplicate=1} else seen_duplicate=0; last_hash=$1; last_line=$0}'

example output:

91128778a332495f77699eaf3a37fe30 - ./Alleyway.zip
@SMUsamaShah
SMUsamaShah / ublock filters.md
Last active November 15, 2023 21:46
uBlock filters

Google

Hide suggested labels

www.google.com###bres

eBay

@SMUsamaShah
SMUsamaShah / NextDesktopBackground.ahk
Created September 18, 2023 11:36
AutoHotkeyScript to Delete current wallpaper and move to Next desktop background
; Get path of current wallpaper file from registry
RegRead, TranscodedImageCache, HKEY_CURRENT_USER, Control Panel\Desktop, TranscodedImageCache
WallpaperPath := % BinaryToText(TranscodedImageCache)
;MsgBox, % WallpaperPath
; Delte the actual wallpaper image file
FileDelete, % WallpaperPath
; Select next background, same as desktop right click + Next desktop background
next_bg()
@SMUsamaShah
SMUsamaShah / List of Good Windows Web Desktops.md
Last active August 25, 2023 22:15
List of Good Windows Web Desktops
@SMUsamaShah
SMUsamaShah / list_of_p2p_file_sharing.md
Last active March 24, 2026 16:36
List of P2P file sharing tools

Browser Based

  1. Web Wormhole https://webwormhole.io/ https://github.com/saljam/webwormhole
  2. Localsend https://web.localsend.org/
  3. FilePizza https://file.pizza/
  4. ShareDrop sharedrop.io https://github.com/szimek/sharedrop (SOLD, not recommended, use one of the forks)
    1. A clone SnapDrop snapdrop.net https://github.com/RobinLinus/snapdrop (SOLD, not recommended, use one of the forks)
      1. A fork PairDrop https://pairdrop.net/ https://github.com/schlagmichdoch/pairdrop
  5. ToffeeShare https://toffeeshare.com/
  6. Instant.io https://instant.io/
@SMUsamaShah
SMUsamaShah / skip-disliked-youtube-videos.user.js
Last active April 24, 2025 18:16
Skip Disliked YouTube Videos automatically
// ==UserScript==
// @name Skip Disliked Videos
// @namespace http://tampermonkey.net/
// @version 0.21
// @description Skip disliked videos. Just press dislike to skip to next one!
// @match https://www.youtube.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==