tidy up some file permissions and removed unused files (#5563)

* tidy up some file permissions and removed unused files

* Delete makemini.pl
This commit is contained in:
Neil Lathwood 2017-01-24 18:44:16 +00:00 committed by Tony Murray
parent 439726c1b0
commit 3c0a2109e5
39 changed files with 0 additions and 134 deletions

0
config.php.default Executable file → Normal file
View File

View File

@ -1,7 +0,0 @@
#!/bin/bash
mkdir -p dev/librenms && cd $_
curl -O http://wkennedy.co/uploads/librenms/Vagrantfile
curl -O http://wkennedy.co/uploads/librenms/bootstrap.sh
chmod +x bootstrap.sh
vagrant up

0
html/images/os/dd-wrt.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -1,95 +0,0 @@
#!/usr/bin/perl
my $doPlugin = 0;
my $x = shift(@ARGV);
if ($x !~ /^-p/) { unshift(@ARGV, $x); }
else { $doPlugin=1; }
my $injs = shift(@ARGV);
my $outjs = shift(@ARGV);
if ($injs eq '' or $outjs eq '') {
print "Please use this script like this: makemini.pl [-p] in.js out.js\n";
exit(0);
}
open(INJS, $injs);
open(OUTJS, ">$outjs");
my $output = '';
while (<INJS>) {
my $line = $_;
if ($line =~ /^\/\//) {
# Remove lines that aren't important: //\
$line = "" if ($line !~ /^\/\/\\/);
$line = "\n//\\ THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL!\n\n" if ($line =~ /\/\/\\mini/);
} else {
chop $line;
$line =~ s/, /,/g unless ($line =~ /'\], '/); # ,{sp} -> ,
$line =~ s/; /;/g; # ;{sp} -> ;
$line =~ s/ = /=/g; # {sp}={sp} -> =
$line =~ s/ == /==/g; # {sp}=={sp} -> ==
$line =~ s/ < /</g; # {sp}<{sp} -> <
$line =~ s/ > />/g; # {sp}>{sp} -> >
$line =~ s/ & /&/g; # {sp}&{sp} -> &
$line =~ s/ \| /\|/g; # {sp}|{sp} -> |
$line =~ s/ <= /<=/g; # {sp}<={sp} -> <=
$line =~ s/ >= />=/g; # {sp}>={sp} -> >=
$line =~ s/ \+ /\+/g; # {sp}+{sp} -> +
$line =~ s/ - /-/g; # {sp}-{sp} -> -
$line =~ s/ \/ /\//g;
$line =~ s/ \|\| /\|\|/g; # {sp}||{sp} -> ||
$line =~ s/ && /&&/g; # {sp}&&{sp} -> &&
$line =~ s/ \? /\?/g; # {sp?{sp} -> ?
$line =~ s/ \: /\:/g; # {sp}:{sp} -> :
$line =~ s/ != /!=/g; # {sp}!={sp} -> !=
$line =~ s/ += /+=/g; # {sp}+={sp} -> +=
$line =~ s/ -= /-=/g; # {sp}-={sp} -> -=
$line =~ s/ \*= /\*=/g; # {sp}*={sp} -> *=
$line =~ s/ \|= /\|=/g; # {sp}|={sp} -> |=
$line =~ s/ \^= /\^=/g; # {sp}^={sp} -> ^=
$line =~ s/= /=/g; # ={sp} -> =
$line =~ s/ =/=/g; # {sp}= -> =
$line =~ s/\+ /\+/g;
$line =~ s/ \+/\+/g;
$line =~ s/- /-/g;
$line =~ s/ -/-/g;
$line =~ s/\/\/(.*)$//g if ($line !~ /\/\/-->(.*)$/ && $line !~ /http:\/\/(.*)$/); # remove trailing comments unless its part of a javascript insert or web address
$line = '' if $line =~ /^[\n|\/\/]/; # skip blank lines or any line starting with //
$line =~ s/^\s+//g;
$line =~ s/\s+$//g;
$line =~ s/(.+)\s+(.+)/$1 $2/g;
$line =~ s/\{ (\w)/\{$1/g;
$line =~ s/\) (\w)/\)$1/g;
$line =~ s/\) var/\)var/g;
$line =~ s/[ ]+\(/\(/g;
$line =~ s/\) \{/\)\{/g;
$line =~ s/\} else/\}else/g;
$line =~ s/else \{/else\{/g;
if ($line =~ /^\}$/) {
if ($output =~ /;$/) {
$output .= "}";
} else {
$output = substr($output,0,length($output)-1) . "}";
}
$line = '';
}
}
$output .= $line if ($line ne '');
$output .= "\n" unless ($line =~ /;\n*$/ or $line =~ /{\n*$/);
}
$output =~ s/\n+/\n/g;
$output .= "}\n" if ($doPlugin && $output !~ /\}\s+$/);
# replace multiple ;var xx to ,xx if the line contains var
@lines = split(/^/,$output);
foreach $line (@lines) {
$line =~ s/;var /,/g if ($line =~ /^\s*var / && $line !~ /(turn|ment|Capture\(\)|Div'\)|1000\));var /);
print OUTJS $line;
}

0
mibs/HH3C-ENTITY-EXT-MIB Executable file → Normal file
View File

0
mibs/HH3C-LswDEVM-MIB Executable file → Normal file
View File

0
mibs/HH3C-OID-MIB Executable file → Normal file
View File

0
mibs/HH3C-PRODUCT-ID-MIB Executable file → Normal file
View File

0
mibs/HH3C-TRANSCEIVER-INFO-MIB Executable file → Normal file
View File

0
mibs/adtran/ADTRAN-AOS-MEF-MIB Executable file → Normal file
View File

0
mibs/adtran/ADTRAN-AOS-NETWORK-SYNC-MIB Executable file → Normal file
View File

0
mibs/adtran/ADTRAN-AOS-OVER-TEMP-PROTECTION-MIB Executable file → Normal file
View File

View File

View File

0
mibs/adtran/ADTRAN-MEF-PER-EVC-PERF-HISTORY-MIB Executable file → Normal file
View File

0
mibs/adtran/ADTRAN-MEF-PER-UNI-PERF-HISTORY-MIB Executable file → Normal file
View File

0
mibs/ceraos/MWRM-NETWORK-MIB Executable file → Normal file
View File

0
mibs/ceraos/MWRM-PM-MIB Executable file → Normal file
View File

0
mibs/ceraos/MWRM-RADIO-MIB Executable file → Normal file
View File

0
mibs/ceraos/MWRM-UNIT-MIB Executable file → Normal file
View File

0
mibs/eaton/EATON-EPDU-MIB Executable file → Normal file
View File

0
mibs/eaton/EATON-OIDS Executable file → Normal file
View File

0
mibs/fujitsu/FJDARY-E150 Executable file → Normal file
View File

0
mibs/junos/mib-jnx-dot3oam-capability.txt Executable file → Normal file
View File

0
mibs/junos/mib-jnx-fabric.txt Executable file → Normal file
View File

0
mibs/junos/mib-jnx-if-capability.txt Executable file → Normal file
View File

0
mibs/junos/mib-jnx-ip-capability.txt Executable file → Normal file
View File

0
mibs/junos/mib-jnx-ipmcast-capability.txt Executable file → Normal file
View File

0
mibs/junos/mib-jnx-mobile-gateway-sgw-sm.txt Executable file → Normal file
View File

0
mibs/junos/mib-jnx-snmpv2-capability.txt Executable file → Normal file
View File

0
mibs/junos/mib-jnx-soam-pm.txt Executable file → Normal file
View File

0
mibs/junos/mib-jnx-srd.txt Executable file → Normal file
View File

0
mibs/junos/mib-jnx-tlb.txt Executable file → Normal file
View File

0
mibs/junos/mib-jnx-vmon.txt Executable file → Normal file
View File

0
mibs/junos/mib-rfc3813-capability.txt Executable file → Normal file
View File

0
mibs/lenovo/IOMEGANAS-MIB Executable file → Normal file
View File

View File

@ -1,7 +0,0 @@
#!/bin/bash
./discovery.php -h even &
./discovery.php -h odd &
./generate-map.sh
./check-errors.php
./versioncheck.php --cron

View File

@ -1,14 +0,0 @@
#!/bin/bash
./process-syslog.php
#sleep 10
#./process-syslog.php &
#sleep 10
#./process-syslog.php &
#sleep 10
#./process-syslog.php &
#sleep 10
#./process-syslog.php &
#sleep 10
#./process-syslog.php &

View File

@ -1,11 +0,0 @@
#!/bin/bash
#./discovery.php -h forced >> /var/log/observer.log &
./poller.php -h all >> /var/log/observer.log &
#./poller.php -h odd >> /var/log/observer.log &
#./poller.php -h even >> /var/log/observer.log &
#./alerts.php
./poll-billing.php