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
package main | |
import ( | |
"github.com/guelfey/go.dbus" | |
"log" | |
"bufio" | |
"os" | |
) | |
func main() { |
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
lsof | grep '(deleted)' |
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/env escript | |
-mode(compile). | |
-include_lib("kernel/include/file.hrl"). | |
main(["readcpio", Path]) -> | |
dump_cpio(Path); | |
main(["show", Path]) -> |
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/env escript | |
-mode(compile). | |
-include_lib("kernel/include/file.hrl"). | |
main(["readcpio", Path]) -> | |
dump_cpio(Path); | |
main(["show", Path]) -> |
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
$ pcs resource create OpenSIPS ocf:heartbeat:VirtualDomain config=/etc/libvirt/qemu/router.xml hypervisor=qemu:///system op monitor interval=10s |
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 |
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
/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
/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
# http://www.linux4beginners.info/node/increase-max-connections-mysql-without-restart | |
select @@max_connections; | |
set global max_connections = 200; | |
select @@max_connections; |