This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## go to google developer doc, try to call the api with the API playground | |
https://developers.google.com/drive/api/v2/reference/files/get?apix_params=%7B%22fileId%22%3A%221QyHj0cN0cOG-ypbrB2DnbnES_b5o8QKF%22%7D&apix=true | |
``` | |
curl \ | |
'https://www.googleapis.com/drive/v3/files/[FILEID]?key=[YOUR_API_KEY]' \ | |
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \ | |
--header 'Accept: application/json' \ | |
--compressed | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |