Last active
May 1, 2016 08:23
-
-
Save Logioniz/e3d9c2225d474c2d731f to your computer and use it in GitHub Desktop.
Environoment
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
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\u\[\033[01;32m\]@\[\033[01;31m\]\h\[\033[00m\]:\[\033[01;35m\]\w\[\033[01;31m\]$(__git_ps1 " (%s) ")\[\033[01;32m\]\$ \[\033[00m\]' | |
function svndiff () { svn diff $@ | colordiff; } | |
PATH=$PATH:/home/logioniz/Scripts |
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
\pset null [NULL] | |
\set show_slow_queries 'SELECT (total_time / 1000 / 60) as total_minutes, (total_time/calls) as average_time, query FROM pg_stat_statements ORDER BY 1 DESC LIMIT 100;' | |
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
port_random = yes | |
check_hash = yes | |
encoding_list = UTF-8;CP1251 | |
encryption = allow_incoming,enable_retry,prefer_plaintext | |
min_peers = 1 | |
max_peers = 1000 | |
upload_rate = 0 | |
download_rate = 0 | |
trackers.enable = yes | |
use_udp_trackers = yes | |
dht = auto | |
dht_port = 6881 | |
directory = ~/torrents/download | |
session = ~/torrents/session | |
schedule = watch_directory,5,5,load_start=/home/logioniz/torrents/download/*.torrent | |
schedule = watch_directory_1,5,5,"load_start=/home/logioniz/torrents/video/*.torrent, d.set_directory=/home/logioniz/Videos" | |
schedule = watch_directory_2,5,5,"load_start=/home/logioniz/torrents/music/*.torrent, d.set_directory=/home/logioniz/Music" | |
system.method.set_key=event.download.finished,notify_me,"execute=rtorrent-notify,$d.get_name=" |
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
notify-send "New email" "Received new email" -i xfce-newmail |
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/perl | |
# MoRepl plugin in Firefox | |
use Mojo::Base -strict; | |
use Mojo::IOLoop; | |
Mojo::IOLoop->client({port => 4242} => sub { | |
my ($loop, $err, $stream) = @_; | |
print($err) && return if $err; | |
$stream->write(<<"END"); | |
var numTabs = gBrowser.browsers.length; | |
for (i = 0; i < numTabs-1; i++) { | |
if (gBrowser.browsers[i].contentDocument.location.href.indexOf('https://mail.yandex.ru/') >= 0) { | |
gBrowser.tabContainer.selectedIndex = i; | |
break; | |
} | |
} | |
END | |
$stream->on(read => sub { | |
my ($stream, $bytes) = @_; | |
print $bytes; | |
Mojo::IOLoop->stop; | |
}); | |
}); | |
Mojo::IOLoop->start; |
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
notify-send "rTorrent complete:" "$1" -i /home/logioniz/Pictures/icons/rtorrent.png -h int:x:0 -h int:y:40 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment