Skip to content

Instantly share code, notes, and snippets.

@wkliwk
wkliwk / googleDriveDownloadLink.txt
Last active January 18, 2021 19:54
get the downloadable link from google drive
@wkliwk
wkliwk / time-vote-hker
Created November 17, 2019 12:33
(bookmarklets) for voting HKer to be TIME's Person of the Year for 2019
javascript: (function () {
const t = new XMLHttpRequest;
t.open("POST", "https://time-magazine-production.herokuapp.com/api/vote"), t.setRequestHeader("Content-Type", "application/json"), t.onload = function () {
200 === t.status ? alert("成功\n光復香港,時代革命") : alert("錯誤")
}, t.send(JSON.stringify({
person_id: "54",
result: !0,
fingerprint: (t => {
const e = `; ${document.cookie}`.split(`; ${t}=`);
if (2 === e.length) return e.pop().split(";").shift()
@wkliwk
wkliwk / btt.sh
Last active March 30, 2024 15:22
BTT reset trial time
# BetterTouchTool reset trial time
# ** All preference will reset
echo "remove ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist"
rm -rf ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist
echo "Done"
echo "remove ~/Library/Application\ Support/BetterTouchTool/"
rm -rf ~/Library/Application\ Support/BetterTouchTool/
echo "Done"