Skip to content

Instantly share code, notes, and snippets.

@dpower-lv
dpower-lv / Gestures_2TapMiddleClick.reg
Created October 28, 2015 16:11
Lenovo Y50-70 - Registry hack to add middle-click as a 2 finger tap gesture
Windows Registry Editor Version 5.00
; current user
[HKEY_CURRENT_USER\SOFTWARE\Alps\Apoint\Gesture]
"2TapSupport"=dword:00000003
"2TapShow"=dword:00000009
"Enable2Tap"=dword:00000001
"2TapFunc"=dword:0000000e
"2TapSetting"=dword:000000ff
"2TapSettingEx"=""
@dpower-lv
dpower-lv / irccloud.js
Last active October 27, 2015 12:41 — forked from dherman/irccloud.js
some useful commands for doing batch IRC admin in IRCCloud via the developer console
// print all the active PM conversations in moz IRC
console.log(JSON.stringify(Array.prototype.slice.call($("#buffers .connection:has(.buffer[href*='irc.gtanet.com']) ul.conversations > li.conversation .label")).map(span => span.firstChild.wholeText)))
// print all archived PM conversations in moz IRC
console.log(JSON.stringify(Array.prototype.slice.call($("#buffers .connection:has(.buffer[href*='irc.gtanet.com']) ul.openArchives > li.conversation .label")).map(span => span.firstChild.wholeText)))
// delete all conversations from a `spambots` array
(function(textarea) {
spambots.forEach((nick, i) => setTimeout(() => {
textarea.focus();