Skip to content

Instantly share code, notes, and snippets.

@takuya-murao
takuya-murao / disable-onmousedown-in-google-search-results-page.user.js
Last active October 14, 2022 01:07
Disable onmousedown in Google search results page
// ==UserScript==
// @name Disable onmousedown in Google search results page
// @namespace https://gist.github.com/3081371
// @include http://www.google.*/search?*
// @include https://www.google.*/search?*
// ==/UserScript==
(function () {
var disableOnmousedown = function (node) {
var a, i;
@xero
xero / irc.md
Last active March 29, 2024 13:30
irc cheat sheet

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@tanyuan
tanyuan / smart-caps-lock.md
Last active April 30, 2024 00:49
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.