Show full output of command :hi
in scratch window:
:Redir hi
Show full output of command :!ls -al
in scratch window:
document.documentElement.innerHTML = ''; | |
for (const obj of [document, window]) { | |
for (const event of Object.values(getEventListeners(obj))) { | |
for (const {type, listener, useCapture} of event) { | |
obj.removeEventListener(type, listener, useCapture) | |
} | |
} | |
} |
#!/usr/bin/env ruby | |
# gem install active_support | |
require 'active_support/inflector' | |
require 'active_support/core_ext/string' | |
# gem install webrick (only ruby3) | |
require 'webrick' | |
# gem install mechanize |
From c76461960d05b3d64185d1a67096461ce6854009 Mon Sep 17 00:00:00 2001 | |
From: Craig Cabrey <[email protected]> | |
Date: Fri, 8 Jul 2016 13:07:26 -0400 | |
Subject: [PATCH] Don't restrict movement gestures to touchscreens | |
--- | |
gtk/gtkscrolledwindow.c | 8 ++++---- | |
1 file changed, 4 insertions(+), 4 deletions(-) | |
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c |
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.
This isn't practical for larger texts, like when I want to copy the whole contents of a file.
If I had been editing large-file.txt
locally, I could easily copy its contents by using the pbcopy
command:
-- main.scpt | |
-- Cocoa-AppleScript Applet | |
-- | |
-- This app can close and open applications when an other application, | |
-- the trigger, is launced or terminated. This can be useful when two | |
-- applications interfere with eachother or when one is dependend on the | |
-- other (e.g. with setting an VPN connection). | |
-- | |
-- | |
-- Roemer Vlasveld ([email protected]) |