Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am eri451 on github.
  • I am eri (https://keybase.io/eri) on keybase.
  • I have a public key ASDjvW9aNmy8E00WwNYcdcRw_RhRh6-hSTa7CxR6wHE-4wo

To claim this, I am signing this object:

@eri451
eri451 / _vimlink
Last active Oct 24, 2016
Vimlink - using the clientserver feature
View _vimlink
@eri451
eri451 / remote.sh
Created Nov 23, 2014
remote tmux init
View remote.sh
# 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;
View simple_logger.h
/********************************************************
* usage: *
* #include "log.h" *
* logger info(INFO); *
* logger err(ERROR); *
* logger debug(DEBUG); *
* *
* info << std::string msg + "\n"; *
* debug << std::string msg + "\n"; *
* err << std::string msg + "\n"; *
@eri451
eri451 / night.penta
Last active Dec 17, 2015
Pentadactyl eye-frindly Nightshift CSS integration CSS by vetinari
View night.penta
" night.penta
" A darkening style for all websides
" integrated to Pentadactyl
" copyright eri! <hans.orter@gmx.de>
" copyright vetinari <vetinari.userstyles@inode.at>
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 }
View gist:2558796
let title = subscriber.getTitle(feedhref);
if (!options.feedtitle){
if (title === undefined || title === ""){
commandline.input("Title: ", createFeed, { argCount: "+"});
}
else{
createFeed(title)
}
else{
commandline.input("Change title \'" + title + "\' ? [y,N]",
View .pentadactyl-slash-colors-slash-darkness.penta
" ==Vimperator_Color_Scheme==
" name: Darkness
" ==Darkness_Colorscheme_Settings==
"StatusLine settings
hi StatusLine color: #afafaf; background: #222222; font-size: 8px;
hi StatusLineNormal color: #afafaf; background: #222222; font-size: 8px;
hi StatusLineBroken color: #000000; background: #BA8823; font-size: 8px;
hi StatusLineSecure color: #000000; background: #64930C; font-size: 8px;
hi StatusLineExtended color: #000000; background: #0c6493; font-size: 8px;
View gist:1179037
changeGroup: function changeGroup(TargetGroupTitle){
let activeTab = window.gBrowser.selectedTab;
let targetGroupId = this.getIdByTitle(TargetGroupTitle);
if (targetGroupId != null){
TabView.moveTabTo(activeTab, targetGroupId);
TabView.hide();
}