Skip to content

Instantly share code, notes, and snippets.

View shrihari1999's full-sized avatar

Shrihari shrihari1999

  • India
View GitHub Profile
@shrihari1999
shrihari1999 / target of shortcut
Created September 18, 2025 13:34
Steam low memory mode startup options
"C:\Program Files (x86)\Steam\Steam.exe" -silent -quicklogin -vgui -oldtraymenu -vrdisable -nofriendsui -skipstreamingdrivers -cef-force-occlusion -cef-force-opaque-backgrounds -cef-single-process -cef-disable-gpu -no-dwrite
@shrihari1999
shrihari1999 / stop_wu.bat
Created September 18, 2025 13:31
Stop windows update
@echo off
:loop
sc query wuauserv | findstr /I /C:"STOPPED" > NUL
if not %errorlevel%==0 (
net stop wuauserv
)
TIMEOUT /T 5 /NOBREAK > NUL
goto loop
@shrihari1999
shrihari1999 / delete-contacts-from-freshchat-bin.js
Created January 9, 2024 11:10
Deletes all contacts from freshchat recycle bin
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
let startPage = 1;
let endPage = 86;
async function demo() {
for(let i=startPage; i<=endPage; i++){
$($(`.rs-pagination-btn[title="${i}"]`)).trigger('click')