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/sh | |
MYDIR="$(dirname "$(readlink -f "$0")")" | |
OUTFILE="$HOME/kd-stations.txt" | |
if [ -e "$OUTFILE.new" ]; then | |
echo "$OUTFILE.new already exists" >&2 | |
exit 1 | |
fi | |
"$MYDIR/kdinfo" > "$OUTFILE.new" |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
sub WINDOWS() { $^O eq "MSWin32" } | |
use Inline C => "DATA", | |
CCFLAGS => "-W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-comment", | |
BUILD_NOISY => 1, | |
WINDOWS ? |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use 5.012.0; | |
my $dir; | |
my $file; | |
my %x; | |
while (<>) { | |
chomp; |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
sub WINDOWS() { $^O eq "MSWin32" } | |
use Inline C => "DATA", | |
CCFLAGS => "-W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-comment", | |
BUILD_NOISY => 1, | |
WINDOWS ? |
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
scanning /usr/share/dvb/dvb-c/de-Muenchen | |
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' | |
initial transponder 113000000 6900000 0 3 | |
initial transponder 121000000 6900000 0 3 | |
initial transponder 346000000 6900000 0 3 | |
initial transponder 354000000 6900000 0 3 | |
initial transponder 362000000 6900000 0 3 | |
initial transponder 370000000 6900000 0 3 | |
initial transponder 378000000 6900000 0 3 | |
initial transponder 386000000 6900000 0 3 |
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
scanning de-Muenchen | |
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' | |
initial transponder 113000000 6900000 0 3 | |
initial transponder 121000000 6900000 0 3 | |
initial transponder 346000000 6900000 0 3 | |
initial transponder 354000000 6900000 0 3 | |
initial transponder 362000000 6900000 0 3 | |
initial transponder 370000000 6900000 0 3 | |
initial transponder 378000000 6900000 0 3 | |
initial transponder 386000000 6900000 0 3 |
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
/* As the memmem() fuction is ripped off the GNU C Libary: | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2, or (at your option) | |
* any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
/* As the memmem() fuction is ripped off the GNU C Libary: | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2, or (at your option) | |
* any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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/sh | |
# managed by Class['common::sleeperservice'] | |
# | |
# sleep some time before running cron jobs | |
sleep <%= delay %>m |
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/sh | |
# send smartd mail plus serial and smartctl -a. | |
# usage: -m root -M exec /path/to/this/script | |
# test with: -m root -M exec /path/to/this/script -M test and smartctl -q onecheck afterwards. | |
tempfile=$(mktemp) | |
# message is passed via stdin | |
cat > $tempfile |
OlderNewer