Skip to content

Instantly share code, notes, and snippets.

View rwp0's full-sized avatar
📚
On one's own way, at one's own pace…

Elvin Aslanov rwp0

📚
On one's own way, at one's own pace…
View GitHub Profile
@rwp0
rwp0 / aliases.doskey.txt
Created August 19, 2025 10:29
Create Command Processor aliases through Windows Registry's AutoRun key using DosKey command
c=nircmd win center ititle $*
@rwp0
rwp0 / wifi.netsh.bat
Last active August 17, 2025 17:09
Get Current Wi-Fi profile with netsh
netsh wlan ^
show interfaces
rem Shows current SSID, Profile, and Signal of the "Wi-Fi" interface
netsh wlan ^
show profiles ^
key=clear name=...
@rwp0
rwp0 / rotate.adb.sh
Created August 17, 2025 15:54
ADB Rotate Android Screen
adb shell \
settings put system \
user_rotation 1 # Landscape
# user_rotation 0 # Portrait
# accelerometer_rotation 1 # Auto
@rwp0
rwp0 / settopmost.nircmd.bat
Created August 11, 2025 16:58
Set Window to Always on Top with NirCmd
nircmd win settopmost ititle Bitwarden 1
rem nircmd win settopmost ititle Bitwarden 0
@rwp0
rwp0 / setsize.nircmd.bat
Created August 11, 2025 15:44
Resize Window to Maximum with NirCmd
nircmd win setsize ititle WINTITLE 0 0 1920 1080
@rwp0
rwp0 / center.nircmd.bat
Last active August 11, 2025 12:09
NirCmd Center Window by Title
nircmd win center title "Window Title"
rem Full title (exact match)
nircmd win center ititle "Extension"
rem Partial title (i is for in title)
rem Esp. useful for Firefox extension pop-ups such as that of Bitwarden
@rwp0
rwp0 / shortcut.out
Last active July 28, 2025 05:21
Read Windows Shortcut Details with PowerShell
PS C:\Users\MyUser> (new-object -comobject wscript.shell).CreateShortcut("C:\Users\MyUser\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Google Calendar.lnk")
FullName : C:\Users\MyUser\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Google Calendar.lnk
Arguments : "-taskbar-tab" "43091b08-244e-40f3-91c9-6a24dc9f454q" "-new-window" "https://calendar.google.com" "-profile"
"C:\Users\MyUser\AppData\Roaming\Mozilla\Firefox\Profiles\fw5sd6e9.default-nightly" "-container" "0"
Description : Google Calendar Web App
Hotkey :
IconLocation : C:\Users\MyUser\AppData\Roaming\Mozilla\Firefox\Profiles\vf5zb6e8.default-nightly\taskbartabs\icons\43091b08-244e-40f3-91c9-6a24dc9f454q.ico,0
RelativePath :
@rwp0
rwp0 / force_dark.adb.sh
Created July 24, 2025 23:28
Force Dark Mode in Developer Options with ADB
adb shell setprop debug.hwui.force_dark true
# adb shell settings put secure ui_night_mode 2
@rwp0
rwp0 / honeyboard.adb.sh
Last active July 31, 2025 23:24
Disable Samsung Keyboard for Gboard
# adb pair
# adb connect
# adb devices
adb shell \
pm disable-user \
--user 0 com.samsung.android.honeyboard
# Install back with:
# adb shell cmd package install-existing com.samsung.android.honeyboard
@rwp0
rwp0 / rss.youtube.js
Last active June 27, 2025 22:42
YouTube Channel RSS JavaScript Query Selector
document.querySelector("link[title='RSS']").href;
// https://www.youtube.com/feeds/videos.xml?channel_id=<CHANNEL_ID>