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
chrome.webRequest.onBeforeRequest.addListener( | |
function(requestDetails){ | |
console.log('Loading: ' + requestDetails.url); | |
return { cancel: true }; | |
}, | |
{urls: ['*://www.youtube.com/embed/*']}, | |
['blocking'] | |
); |
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 | |
set -e | |
PID_FILE="/tmp/toggle_keyboard_layout.pid" | |
while [ -f $PID_FILE ];do | |
exit 0; | |
done; |
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
session.screen0.toolbar.button.rootmenu.label: rootmenu | |
session.screen0.toolbar.button.rootmenu.commands: RootMenu | |
session.screen0.toolbar.tools: button.rootmenu, workspacename, iconbar, systemtray, clock |
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 | |
set -e | |
git co -- . | |
wget http://st.suckless.org/patches/st-scrollback-20170329-149c0d3.diff | |
wget http://st.suckless.org/patches/st-scrollback-mouse-20170427-5a10aca.diff | |
patch < st-scrollback-20170329-149c0d3.diff |
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
module.exports = function (robot) { | |
robot.hear(/test topic/, function (msg) { | |
msg.topic('test topic'); | |
}); | |
}; |
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
# Set the prefix to ^A. | |
unbind C-b | |
set -g prefix C-a | |
bind a send-prefix | |
bind-key C-a last-window | |
bind-key Tab select-pane -D | |
bind-key k select-pane -U | |
bind-key j select-pane -D | |
bind-key h select-pane -L |
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 | |
# Remount nfs storage | |
ls /storage > /dev/null | |
if [ "$?" -ne "0" ]; then | |
echo "Error listing /storage" 1>&2 | |
umount /storage | |
mount /storage |
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
var comments = document.querySelector('#comments'); | |
function findParentComment(elem) { | |
while (elem && elem.parentNode) { | |
if (elem.classList.contains('comment')) { | |
return elem; | |
} | |
elem = elem.parentNode; | |
} | |
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 | |
SINK_IDS=$(pactl list sinks short | awk '/RUNNING|IDLE|SUSPENDED/ {print $2}') | |
for id in $SINK_IDS;do | |
case $1 in | |
"mute") | |
pactl set-sink-mute $id toggle | |
;; | |
"down") |
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
inoremap { {}<Left> | |
inoremap ( ()<Left> | |
inoremap [ []<Left> | |
augroup myMacros | |
" iab locatoin location | |
" iab locatoins locations | |
" iab Locatoins Locations | |
" iab Locatoin Location | |
" iab locaiton location |