Skip to content

Instantly share code, notes, and snippets.

View shvytejimas's full-sized avatar

Linas Kazlauskas shvytejimas

View GitHub Profile
@shvytejimas
shvytejimas / ext-all-notheme-min
Created April 1, 2014 21:52
MODx manager resourcelist combobox width hackfix
in /manager/assets/ext3/resources/css/ext-all-notheme-min.css just at the bottom, append
.x-combo-list, .x-combo-list-item, .x-combo-list-inner { width:440px !important; }
@shvytejimas
shvytejimas / index.pl
Last active August 29, 2015 14:00
Vnstat-web interface
#!/usr/bin/perl
use AnyEvent::HTTPD;
my $httpd = AnyEvent::HTTPD->new (port => 9090);
my $hostname = qx(hostname);
sub gather {
my $summary = qx(vnstat -i eth0);
my $monthly = qx(/usr/bin/vnstat -m);
my $daily = qx(/usr/bin/vnstat -d);