This file contains 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
// ==UserScript== | |
// @name Disable ESC | |
// @description Prevent ESC from exiting fullscreen | |
// @updateURL hhttps://gist.githubusercontent.com/henryhchchc/95b76dcf1c7a5f1b16c93a2829fc09c7/raw/disable_esc.js | |
// @match *://*/* | |
// ==/UserScript== | |
document.onkeydown = function (evt) { | |
if (evt.keyCode == 27) evt.preventDefault(); | |
} |
This file contains 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
#! /bin/sh | |
API_KEY="$1" | |
[ -z $API_KEY ] && echo "Usage: \n\taccept-invitation.sh <API_KEY>" && exit 1 | |
INVITATION_IDS=$(curl -s -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $API_KEY" https://api.github.com/user/repository_invitations | jq -r ".[].id") | |
for id in $INVITATION_IDS; do | |
curl \ |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputMethod\Settings\CHS] | |
"UserDefinedDoublePinyinScheme0"="Xiaohe*2*^*iuvdjhcwfg xmlnpbksqszxkrltvyovt" | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputMethod\Settings\CHT] | |
"UserDefinedDoublePinyinScheme0"="Xiaohe*2*^*iuvdjhcwfg xmlnpbksqszxkrltvyovt" |
This file contains 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
{ | |
"title": "Logitech MX Master 3 for Mac", | |
"rules": [ | |
{ | |
"description": "Side button for desktop switch", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"pointing_button": "button4" |
This file contains 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
package goddrinksjava; | |
/** | |
* The program GodDrinksJava implements an application that | |
* creates an empty simulated world with no meaning or purpose. | |
* | |
* @author momocashew | |
* @lyrics hibiyasleep | |
*/ | |