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
const path = require('path'); | |
const exec = require('child_process').exec; | |
function run(command) { | |
return new Promise((resolve, reject) => { | |
exec(command, function (error, stdout, stderr) { | |
if (error) { | |
reject(error); | |
} else { | |
resolve(stdout); |
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
class Range { | |
constructor(from, to, step = 1) { | |
this.value = from; | |
this.to = to; | |
this.step = step; | |
} | |
next() { | |
if (this.value > this.to) { | |
return { value: undefined, done: true }; |
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
% cat ~/.config/xfce4/terminal/accels.scm | |
(gtk_accel_path "<Actions>/terminal-window/new-tab" "<Super>t") | |
(gtk_accel_path "<Actions>/terminal-window/close-tab" "<Super>w") | |
(gtk_accel_path "<Actions>/terminal-window/copy" "<Super>c") | |
(gtk_accel_path "<Actions>/terminal-window/paste" "<Super>v") | |
(gtk_accel_path "<Actions>/terminal-window/search" "<Super>f") | |
(gtk_accel_path "<Actions>/terminal-window/prev-tab" "<Super>Left") | |
(gtk_accel_path "<Actions>/terminal-window/next-tab" "<Super>Right") | |
(gtk_accel_path "<Actions>/terminal-window/move-tab-left" "<Super><Shift>Left") | |
(gtk_accel_path "<Actions>/terminal-window/move-tab-right" "<Super><Shift>Right") |
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
// ==UserScript== | |
// @name Hide Twitter Trending | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://twitter.com/* | |
// @match https://*.twitter.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com | |
// @grant GM_addStyle |
OlderNewer