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
import csv | |
Data = [] | |
Reader = csv.reader(open('data.txt', 'rb'), delimiter=' ',quoting=csv.QUOTE_NONE) | |
for row in Reader: | |
Data += [(row[0], row[2], int(float(row[0])), float(row[2]))] | |
i = 0 | |
while i < len(Data) - 1: |
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 LJ HTML5 | |
// @namespace lj-youtube-html5 | |
// @include https://*.livejournal.com/* | |
// @include http://*.livejournal.com/* | |
// @version 1.1 | |
// @grant none | |
// ==/UserScript== | |
function replace(frame, regexp){ |
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
dkms add -m mediaproxy-ng -v 2.3.6-1.el6 | |
dkms build -m mediaproxy-ng -v 2.3.6-1.el6 | |
dkms install -m mediaproxy-ng -v 2.3.6-1.el6 |
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
virsh vol-clone --pool default router-2014-04-18.img router-2014-04-18-clone.img |
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
erlang-wx: | |
erlang-debugger | |
erlang-dialyzer | |
erlang-et | |
erlang-observer | |
erlang-reltool | |
erlang-gs: | |
erlang-appmon | |
erlang-debugger |
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
# http://www.linux4beginners.info/node/increase-max-connections-mysql-without-restart | |
select @@max_connections; | |
set global max_connections = 200; | |
select @@max_connections; |
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
/usr/bin/sipp <opensipshost> -i <srcip> -p 15060 -sf /tmp/scenario.xml -m 1 -trace_logs -trace_msg -rtp_echo -s <sipid> -ap <sippasswd> -set 1 <opensipshost> -set 2 123456789 -set 3 calltest-$RANDOM-$RANDOM-$RANDOM -d 10000 | |
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
/etc/init.d/mysqld stop | |
mysqld_safe --skip-grant-tables & | |
mysql -u root | |
mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; | |
mysql> FLUSH PRIVILEGES; | |
^D | |
killall mysqld | |
/etc/init.d/mysqld start |
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
xset -dpms & | |
xset s noblank & | |
xset s off & |
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 Rutracker.org Magnet URLs | |
// @namespace rutrackerorg-magnet-urls | |
// @description Transforms torrent hash into a magnet url | |
// @include https://rutracker.org/* | |
// @include https://rutracker.cr/* | |
// @include https://rutracker.net/* | |
// @include https://rutracker.nl/* | |
// @include http://rutrackerripnext.onion/* | |
// @version 9 |