GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tridge/junkcode

BranchesTags
Open more actions menu

Latest commit

 

History

652 Commits
652 Commits

Folders and files

NameName
Last commit message
Last commit date
ADSB
ADSB
 
 
AI
AI
 
 
C++
C++
 
 
DMM
DMM
 
 
Envir
Envir
 
 
Hamster
Hamster
 
 
JS
JS
 
 
SIYI_tools
SIYI_tools
 
 
SPI_reimbursement
SPI_reimbursement
 
 
SSL
SSL
 
 
SensorTest
SensorTest
 
 
alloc_mmap
alloc_mmap
 
 
ccache
ccache
 
 
cvs-log
cvs-log
 
 
cvs_history
cvs_history
 
 
dbench
dbench
 
 
depmaker
depmaker
 
 
discord
discord
 
 
dlock
dlock
 
 
ethereal-stp
ethereal-stp
 
 
fakecd
fakecd
 
 
fileops
fileops
 
 
fnmatch
fnmatch
 
 
forkgdb
forkgdb
 
 
functor
functor
 
 
genstruct
genstruct
 
 
gimbal
gimbal
 
 
hashmatch
hashmatch
 
 
idtree
idtree
 
 
igmp
igmp
 
 
iolmaster
iolmaster
 
 
iproxy
iproxy
 
 
javascript
javascript
 
 
keepalive
keepalive
 
 
ldap-scripts
ldap-scripts
 
 
load_math
load_math
 
 
log_analysis
log_analysis
 
 
lsakey
lsakey
 
 
mavlink_example
mavlink_example
 
 
md4-collision
md4-collision
 
 
messaging
messaging
 
 
mkdir_preload
mkdir_preload
 
 
netjoin
netjoin
 
 
nfs_hack
nfs_hack
 
 
ntrip_mavlink
ntrip_mavlink
 
 
nttime
nttime
 
 
opencv
opencv
 
 
options
options
 
 
patches
patches
 
 
pch
pch
 
 
preload_usb
preload_usb
 
 
pthreads
pthreads
 
 
pulse_audio
pulse_audio
 
 
python
python
 
 
radeontool
radeontool
 
 
repdir
repdir
 
 
rline
rline
 
 
ronnie
ronnie
 
 
rpcecho-win32
rpcecho-win32
 
 
rproxy
rproxy
 
 
rsync_backup
rsync_backup
 
 
screen
screen
 
 
screencap
screencap
 
 
segv_handler
segv_handler
 
 
shlib
shlib
 
 
socklib
socklib
 
 
softroot
softroot
 
 
spamsum
spamsum
 
 
speech
speech
 
 
syslog
syslog
 
 
talloc
talloc
 
 
tdd
tdd
 
 
tproxy
tproxy
 
 
trd
trd
 
 
tserver
tserver
 
 
tsig-gss
tsig-gss
 
 
tsums
tsums
 
 
ubench
ubench
 
 
usbfan
usbfan
 
 
ux_demo
ux_demo
 
 
vpn
vpn
 
 
web
web
 
 
win32
win32
 
 
.bzrignore
.bzrignore
 
 
.gitmodules
.gitmodules
 
 
RawMeterReader.c
RawMeterReader.c
 
 
Time.c
Time.c
 
 
Xrintk.c
Xrintk.c
 
 
a.c
a.c
 
 
aa.c
aa.c
 
 
abs.c
abs.c
 
 
addstr.c
addstr.c
 
 
aio_open.c
aio_open.c
 
 
aio_open2.c
aio_open2.c
 
 
aio_uid.c
aio_uid.c
 
 
aiocache.c
aiocache.c
 
 
aix_getmac.c
aix_getmac.c
 
 
align.c
align.c
 
 
alignsmb.c
alignsmb.c
 
 
alignspeed.c
alignspeed.c
 
 

Repository files navigation

#!/usr/bin/perl -w

use Data::Dumper;

my %ltype;

sub process_file($) {
	my $fname = shift;

	open(HANDLE, $fname) || die "Can't open $fname";
	my $data = "";
	read(HANDLE, $data, 4096);
	$data =~ tr/A-Za-z0-9/ /cs;
	
	if ($data =~ /GNU General Public/ ||
	    $data =~ /GNU Public License/) {
		if ($data =~ /Everyone is permitted to copy and distribute verbatim copies of this license document but changing it is not allowed/) {
			$ltype{"COPYING"}++;
		} elsif ($data =~ /License version 3/) {
			$ltype{"GPLV3"}++;
		} elsif ($data =~ /any later version/ ||
		    $data =~ /v2 or later/ ||
		    $data =~ /version 2 or later/) {
			$ltype{"GPLV2+"}++;
		} elsif ($data =~ /version 2/i) {
			$ltype{"GPLV2"}++;
			printf("%s\n", $fname);
		} else {
			$ltype{"GPLvX"}++;			
		}
	} elsif ($data =~ /copyright/i ||
		 $data =~ /license/i) {
		$ltype{"OTHER"}++;
	} else {
		$ltype{"NONE"}++;
	}
	close(HANDLE);
}

sub traverse($) {
	my $dname = shift;
	my $d;
	if (-f $dname) {
		process_file($dname);
		return;
	}
	opendir(DIR, $dname) || die "Can't open directory $dname";
	my @names = readdir(DIR);
	foreach my $f (@names) {
		next if ($f eq ".") || ($f eq "..");
		my $fname = $dname . "/" . $f;
		if (-d $fname) {
			traverse($fname);
		} elsif (-f _) {
			process_file($fname);
		}
	}
	closedir(DIR);
}


for (my $i=0;$i<=$#ARGV;$i++) {
	traverse($ARGV[$i]);
}

foreach my $l (keys %ltype) {
	printf("%-6s %u\n", $l, $ltype{$l});
}

About

No description, website, or topics provided.
License
Activity

Stars

37 stars

Watchers

3 watching

Forks

7 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.