Skip to content

Instantly share code, notes, and snippets.

@eri451
eri451 / remote.sh
Created November 23, 2014 16:26
remote tmux init
# Remote
# in case the remote has no session called my-session
RemoteCommand=$(cat << _EOT
"
tmux new -d -s my-session -n e-mail \"mutt\";
tmux new-window -d -n irc \"weechat-curses\";
tmux new-window -d;
tmux new-window -d;
tmux new-window -d;
@teffalump
teffalump / README.md
Last active November 5, 2025 12:05
OpenWRT adblock implementation

Others have recently developed packages for this same functionality, and done it better than anything I could do. Use the packages instead of this script:

Description

In its basic usage, this script will modify the router such that blocked addresses are null routed and unreachable. Since the address blocklist is full of advertising, malware, and tracking servers, this setup is generally a good thing. In addition, the router will update the blocklist weekly. However, the blocking is leaky, so do not expect everything to be blocked.

@eri451
eri451 / night.penta
Last active December 17, 2015 08:49
Pentadactyl eye-frindly Nightshift CSS integration CSS by vetinari
" night.penta
" A darkening style for all websides
" integrated to Pentadactyl
" copyright eri! <[email protected]>
" copyright vetinari <[email protected]>
javascript gBrowser.mCurrentTab.gray = false
javascript let nightshift ="body,html { min-height: 100%!important; } html, body { background-color:#111!important } body>*:not(:empty){ background-color:#222!important } body>*>*:not(:empty){ background-color:#222!important } body>*>*>*:not(:empty){ background-color:#282828!important } body>*>*>*>*:not(:empty){ background-color:#282828!important } body>*>*>*>*>*:not(:empty){ background-color:#383838!important } body>*>*>*>*>* *{ background-color:#383838!important } body table[border=\"0\"] td{ background-color:#111!important } body table table[border=\"0\"] td{ background-color:#333!important } body table table table[border=\"0\"] td{ background-color:#222!important } body table table table table[border=\"0\"] td{ background-color:#444!important } body *:empty{ background-color: #252525!important }