Skip to content

Instantly share code, notes, and snippets.

View hkscsheph's full-sized avatar

NG KA YEE hkscsheph

View GitHub Profile
@echo off
ping -t 8.8.8.8|cmd /q /v /c "(pause&pause)>nul & for /l %%a in () do (set /p "data=" && echo(!time! !data!) >> ./PingLog.txt&ping -n 2 8.8.8.8>nul"
@hkscsheph
hkscsheph / shortFbid.js
Last active August 3, 2025 11:09
Shortest Facebook Post Share Link (From pfbid to fbid) inspired by: https://gist.github.com/t-wy/66faed8679d127793891ecb775efdaa9
copy(
'fb.com/'+
[...document.getElementsByTagName("script")]
.find(x => x.innerHTML.includes("share_fbid"))
.innerText.match(/share_fbid":"(.+?)",/)[1]
)