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 / android_desktop_secondary_display.md
Last active April 26, 2025 11:34
Use Android phone like a computer, on your computer

(INCOMPLETE -- NOT FOUND A GOOD DESKTOP MODE PROCESS)

My Pixel phone does not support USB video output. Which means I can't connect my phone to my display via USB-to-HDMI (or any other) cable and expect it to work. Scrcpy supports Virtual Display and wireless connection now. Which means I can view my android in 1920x1080 on my monitor in desktop mode. And if installed Termux https://termux.dev/en/ I can use it like a Linux system that I always have in my pocket.

  1. Download scrcpy https://github.com/Genymobile/scrcpy and extract
  2. Open a terminal/cmd in scrcpy folder
  3. Establish a connection between your computer and android phone
docker run --rm -d -p 11470:11470 -p 12470:12470 -e NO_CORS=1 stremio/server:latest
@SMUsamaShah
SMUsamaShah / gist:54e6921c300d1a31bc18b5aeafc2ca97
Last active March 10, 2025 09:59
List of websites with specific movie clips
@SMUsamaShah
SMUsamaShah / gist:03763824fc0dc5c4840585cb30385f5d
Created February 4, 2025 18:27
Image to Lip/body movement
best
https://humanaigc.github.io/emote-portrait-alive/ (closed by Alibaba group)
https://omnihuman-lab.github.io/ (closed by bytedance)
https://humanaigc.github.io/emote-portrait-alive-2/ (closed)
https://www.microsoft.com/en-us/research/project/vasa-1/ (open)
@SMUsamaShah
SMUsamaShah / dynalist_bookmark.js
Last active October 21, 2024 13:41
Save current link to dynalist
(function() {
const TOKEN = "YOUR_DYNALIST_TOKEN";
const FILE_ID = "YOUR_FILE_ID";
const INBOX_NODE_ID = "YOUR_INBOX_NODE_ID";
let savedNodeId = null;
let updateTimer = null;
// Utility Functions
// DOM Utils
function createDiv() { return document.createElement('div'); }
@SMUsamaShah
SMUsamaShah / doc.md
Created October 20, 2024 00:42
interesting ai papers
@SMUsamaShah
SMUsamaShah / steam_rating_apis.md
Created October 14, 2024 11:56
Steam API links to find a game's ID by name and then get its steam rating
@SMUsamaShah
SMUsamaShah / list.json
Last active August 28, 2024 21:21
Video Schedule Export
{
"1": {
"1": {
"id": "E77wMx5iRLU",
"playAt": 1724922019,
"duration": 526
},
"2": {
"id": "UgYYLtghx2w",
"playAt": 1724922550,
@SMUsamaShah
SMUsamaShah / set-wallpaper-using-flux-schnell-via-api.ahk
Created August 8, 2024 20:34
AutoHotkey V2 Script to download and set wallpaper using Flux Schnell model via segmind.com API
#Requires AutoHotkey v2.0
; Main function
Main() {
api_key := "YOUR_API_KEY_HERE" ; Replace with your actual API key
url := "https://api.segmind.com/v1/flux-schnell"
jsonData := GetJsonData()
;MsgBox("Debug input json: " . jsonData)
;return