Skip to content

Instantly share code, notes, and snippets.

View danboid's full-sized avatar

Dan MacDonald danboid

  • The Unicorn Foundation
  • England
View GitHub Profile
#!/bin/bash
# j2x - a simple JACK 2 playback device switcher by Dan MacDonald 2014. Licensed under the GNU GPL v3
# Check user has kdialog installed
if ! command -v kdialog >/dev/null; then
echo You must install kdialog to use j2x. Debian and Ubuntu users should install kde-baseapps-bin
exit 1
fi
# Check user has jack_control installed
[root@huginn ~]# perl -d ./dfchecker.pl -f med15-86
Loading DB routines from perl5db.pl version 1.28
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
main::(./dfchecker.pl:12): my $FULLLEVEL = 90;
DB<1> use Data::Dumper
OK /
OK /boot
OK /home/medlog
FAIL /homes
#!/usr/bin/perl -w
use strict;
use Getopt::Std;
use Socket;
use Fcntl;
use Fcntl ':mode';
# Global variables for error checking against
sub readOnly
{
my ($rvRef,$rsRef,$rdRef,$host,$param,$aref) = @_;
my ($fail) = 0;
foreach (0 .. $#$aref)
{
if ($opts{'D'} == 1 ){
print $aref->[$_], "\n";
#!/usr/bin/perl -w
use strict;
use Getopt::Std;
use Socket;
use Fcntl;
use Fcntl ':mode';
use Data::Dumper;
[ 778.070]
X.Org X Server 1.11.3
Release Date: 2011-12-16
[ 778.071] X Protocol Version 11, Revision 0
[ 778.071] Build Operating System: Linux 2.6.38-1209-omap4 armv7l Ubuntu
[ 778.071] Current Operating System: Linux pandamiga 3.4.0-1485-omap4 #2-Ubuntu SMP PREEMPT Thu Jul 12 15:59:41 UTC 2012 armv7l
[ 778.071] Kernel command line: ro elevator=noop vram=40M mem=456M@0x80000000 mem=512M@0xA0000000 root=LABEL=pandadisk fixrtc quiet splash
[ 778.072] Build Date: 12 July 2012 09:30:13AM
[ 778.072] xorg-server 2:1.11.4-0ubuntu10.5+ti1.0 (For technical support please see http://www.ubuntu.com/support)
[ 778.072] Current version of pixman: 0.24.4
[ 16.280]
X.Org X Server 1.11.3
Release Date: 2011-12-16
[ 16.281] X Protocol Version 11, Revision 0
[ 16.281] Build Operating System: Linux 2.6.38-1209-omap4 armv7l Ubuntu
[ 16.281] Current Operating System: Linux pandamiga 3.4.0-1485-omap4 #2-Ubuntu SMP PREEMPT Thu Jul 12 15:59:41 UTC 2012 armv7l
[ 16.281] Kernel command line: ro elevator=noop vram=40M mem=456M@0x80000000 mem=512M@0xA0000000 root=LABEL=pandadisk fixrtc quiet splash
[ 16.281] Build Date: 12 July 2012 09:30:13AM
[ 16.281] xorg-server 2:1.11.4-0ubuntu10.5+ti1.0 (For technical support please see http://www.ubuntu.com/support)
[ 16.282] Current version of pixman: 0.24.4
[ 17.336]
X.Org X Server 1.11.3
Release Date: 2011-12-16
[ 17.336] X Protocol Version 11, Revision 0
[ 17.337] Build Operating System: Linux 2.6.38-1209-omap4 armv7l Ubuntu
[ 17.337] Current Operating System: Linux pandamiga 3.4.0-1485-omap4 #2-Ubuntu SMP PREEMPT Thu Jul 12 15:59:41 UTC 2012 armv7l
[ 17.337] Kernel command line: ro elevator=noop vram=40M mem=456M@0x80000000 mem=512M@0xA0000000 root=LABEL=pandadisk fixrtc quiet splash
[ 17.337] Build Date: 12 July 2012 09:30:13AM
[ 17.337] xorg-server 2:1.11.4-0ubuntu10.5+ti1.0 (For technical support please see http://www.ubuntu.com/support)
[ 17.337] Current version of pixman: 0.24.4
[ 17.302]
X.Org X Server 1.11.3
Release Date: 2011-12-16
[ 17.302] X Protocol Version 11, Revision 0
[ 17.302] Build Operating System: Linux 2.6.38-1209-omap4 armv7l Ubuntu
[ 17.302] Current Operating System: Linux pandamiga 3.4.0-1485-omap4 #2-Ubuntu SMP PREEMPT Thu Jul 12 15:59:41 UTC 2012 armv7l
[ 17.303] Kernel command line: ro elevator=noop vram=40M mem=456M@0x80000000 mem=512M@0xA0000000 root=LABEL=pandadisk fixrtc quiet splash
[ 17.303] Build Date: 12 July 2012 09:30:13AM
[ 17.303] xorg-server 2:1.11.4-0ubuntu10.5+ti1.0 (For technical support please see http://www.ubuntu.com/support)
[ 17.303] Current version of pixman: 0.24.4