Permalink
Browse files

scripts: document that all are LGPLv2

I'm using LGPL rather than GPL as I would like
to encourage incorporating parts of these
scripts in various projects, while also
benefitting from any improvements therein
  • Loading branch information...
pixelb committed Sep 26, 2012
1 parent 4b33709 commit f93a55beae3baf97af64f8c833e27cd6e04fb983
View
1 README
@@ -0,0 +1 @@
+All scripts are licensed under the LGPLv2
View
@@ -1,4 +1,7 @@
#!/bin/sh
+
+# License: LGPLv2
+
# _
#[ ]
#[_]
View
@@ -2,6 +2,7 @@
# takes a list of numbers (line seperated) and prints the total
+# License: LGPLv2
# Note the input to this will probably come from `cut`,
# so a couple of tips on cut:
# 1. columns from `ls -l` are delimited by a variable
View
@@ -2,6 +2,7 @@
# Convert ANSI (terminal) colours and attributes to HTML
+# Licence: LGPLv2
# Author:
# http://www.pixelbeat.org/docs/terminal_colours/
# Examples:
View
@@ -2,6 +2,7 @@
# Display available ANSI (terminal) colour combinations
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/docs/terminal_colours/
# Changes:
View
@@ -3,7 +3,7 @@
# Generate an RSS 2.0 feed directly from your existing web site
# Author - Pádraig Brady <P@draigBrady.com>
-# Licence - GPL V2
+# Licence - LGPLV2
# Releases -
# 1.0 - Jun 19 2006 - Initial release
# 1.1 - Jun 26 2006 - Exclude files with "Exclude from bashfeed"
View
@@ -3,6 +3,7 @@
# bc integer functions I've found useful
# while systems programming in the unix environment.
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -3,6 +3,8 @@
# Display a list of country codes and
# corresponding country name from locale database
+# License: LGPLv2
+
locale -a |
grep _ | #don't show nationalities
uniq -w5 | #merge available charmaps
@@ -3,6 +3,8 @@
# Open command prompt in a single selected directory
# or otherwise in current dir
+# License: LGPLv2
+
# Put this (executable) file in ~/.gnome2/nautilus-scripts/
# Then right click a directory or anywhere in current dir window
# to get the scripts->command_prompt_here menu option
View
@@ -3,6 +3,8 @@
# A wrapper around units
# as I can never remember how to call it.
+# License: LGPLv2
+
if [ $# -ne 2 ]; then
echo "Usage $0 from to" >&2
echo "for e.g. $0 '2 grams' drams" >&2
View
@@ -3,6 +3,8 @@
# Set modification date of the current (or specified) directory
# to the earliest file in that directory.
#
+# License: LGPLv2
+#
# I use this when I don't want to record when I (re)filed something,
# and would like the directories to be ordered by date of the contents.
# Digital camera pictures is usually what I use this for.
View
@@ -2,6 +2,8 @@
# Shows the date for "fri week" or "mon last" for e.g.
+# License: LGPLv2
+
Usage () {
echo "Usage: `basename $0` mon|tue|... [next]|week|last" >&2
exit 1
View
@@ -2,6 +2,7 @@
# search disk for a string and output commands to dump matching sections
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -2,6 +2,8 @@
# report text files with CRLF terminators (anywhere in the file)
+# License: LGPLv2
+
find \( -type d -a \( -name '.git' -o -name '.svn' -o -name 'CVS' \) \) -prune -o \
\( -type f -print0 \) |
xargs -r0 file |
View
@@ -2,6 +2,8 @@
# Download URLs from file (called queue) with history.
+# License: LGPLv2
+
# I schedule this to run every night.
# The file called queue must be in the same dir
# as this script and lines starting with # are ignored.
View
@@ -4,6 +4,7 @@
# while automatically recursing down directories if
# there is one obvious directory using the space.
+# License: LGPLv2
# Author: P@draigBrady.com
#Design decisions:
View
@@ -3,6 +3,8 @@
# Display ENAME corresponding to number
# or all ENAMEs if no number specified.
+# License: LGPLv2
+
[ $# -eq 1 ] && re="$1([^0-9]|$)"
echo "#include <errno.h>" |
cpp -dD -CC | #-CC available since GCC 3.3 (2003)
View
@@ -2,6 +2,7 @@
# list files last modified in a given month & year.
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Changes:
View
@@ -3,6 +3,7 @@
# find a string in the current directory and below
# while automatically ignoring repository metadata.
+# Licence: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -4,6 +4,7 @@
# Both access and modification times are maintained,
# or optionally those timestamps are set to a specific epoch.
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -10,6 +10,7 @@
# Update May 24 2012, Another similar tool called osh
# http://geophile.com/osh/
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -2,6 +2,7 @@
# Print the gcc cpu specific options tailored for the current CPU
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -2,6 +2,8 @@
# list the newest html files in the tree
+# License: LGPLv2
+
exclude_re='(\.git/|xvpics|priv/|tmp/|timeline\.html|modified\.html|head\.html|footer\.html|footer-home\.html|adds\.html|last\.html|header.html|menu.html|left-blank.html|.htaccess)' #don't show these paths
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
View
@@ -3,6 +3,8 @@
# Demonstrate reading passwords in a shell script
# while not echoing those passwords to the screen.
+# License: LGPLv2
+
# Note `read -s` in bash 3 at least does not echo
# the return/newline either? Therefore we need to
# `echo >&2` after each read to simulate that.
View
@@ -2,6 +2,7 @@
# Convert a number for human consumption
+# License: LGPLv2
# Author:
# P@draigBrady.com
# Changes:
View
@@ -2,6 +2,7 @@
# Color diff output, for human consumption
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -19,7 +19,7 @@
<div id="content">
<div class="contentText">
-Various (GPL) scripts that I've created (ordered by popularity).<br/>
+Various (LGPLv2) scripts that I've created (ordered by popularity).<br/>
These have only been tested on linux, but most should work on any UNIX.<br/>
For development history see <a href="http://github.com/pixelb/scripts">github.com/pixelb/scripts</a>.<br/>
<br>
View
@@ -4,6 +4,7 @@
# This is a very simple alternative to ipython
# whose default settings I don't like.
+# License: LGPLv2
# Notes:
# You can run it directly, or call it like:
# PYTHONSTARTUP=~/path/to/inpy python
View
@@ -2,6 +2,7 @@
# An enhanced and more portable ls -l
+# Licence: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -2,6 +2,7 @@
# Mount partitions within a disk image file
+# License: LGPLv2
# Author: P@adraigBrady.com
# V1.0 29 Jun 2005 Initial release
View
@@ -3,6 +3,8 @@
# change any uppercase letters in file and directory
# names in the current directory and below.
+# License: LGPLv2
+
# note filenames with \1 or \n will cause problems
# note this is still much slower than it could be,
View
@@ -2,6 +2,8 @@
# print date for a file as ls would
+# License: LGPLv2
+
if [ $# -eq 1 ]; then
ts=`date --reference=$1 +%s` || exit 1
else
View
@@ -2,6 +2,8 @@
# print octal mode for a file
+# License: LGPLv2
+
if [ $# -ne 1 ]; then
echo "Usage: `basename $0` path" >&2
exit 1
View
@@ -2,6 +2,8 @@
# Open a file with firefox
+# License: LGPLv2
+
# firefox 2 now supports this so this script it now redundant.
if echo "$1" | grep -Eq "^/"; then
View
@@ -3,6 +3,7 @@
# List the newest files in the specified paths and by default any subdirectories
# If no paths are specified, the current directory is listed.
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -7,8 +7,9 @@
# The shared RAM is problematic to calculate, and this script automatically
# selects the most accurate method available for your kernel.
-# Author: P@draigBrady.com
-# Source: http://www.pixelbeat.org/scripts/ps_mem.py
+# Licence: LGPLv2
+# Author: P@draigBrady.com
+# Source: http://www.pixelbeat.org/scripts/ps_mem.py
# V1.0 06 Jul 2005 Initial release
# V1.1 11 Aug 2006 root permission required for accuracy
View
@@ -2,6 +2,8 @@
# (re)quote input lines email using $QUOTE to appropriate level.
# It's intended use is for cleaning up mails or reformatting comments etc.
#
+# License: LGPLv2
+#
# Note fmt has the --prefix option that does the appropriate thing
# for C comments for e.g. so the main use of this script is for
# badly formatted email.
View
@@ -4,6 +4,8 @@
# can change this by passing parameters as you
# would to find.
#
+# License: LGPLv2
+#
# Note this doesn't change file (timestamps)
# which don't need to be updated.
View
@@ -2,6 +2,8 @@
# This script is a template for a self modifiying script
+# License: LGPLv2
+
# Change the following to whatever
# method updates your script, for e.g.
# svn update $0
View
@@ -3,6 +3,7 @@
# split data from stdin to multiple invocations of a command
# without creating temporary files
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -2,6 +2,7 @@
# Review repo changes in graphical viewer before checkin
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -2,6 +2,7 @@
# A command line Stopwatch
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -2,6 +2,7 @@
# simple script to give a summary of system information
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -3,6 +3,7 @@
# Show all network traffic except that for the current ssh connection
# This allows running tcpdump remotely over ssh.
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -1,6 +1,9 @@
#!/bin/sh
# print functions in C/C++ files that are not threadsafe
+
+# License: LGPLv2
+
# Example usage:
# find -name "*.c" -o -name "*.cpp" | xargs threadsafe
# If no files passed then the total list of functions
View
@@ -2,6 +2,7 @@
# Execute a command with a timeout
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
View
@@ -2,6 +2,7 @@
# Increase or decrease the apparent size of a file
+# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
Oops, something went wrong.

0 comments on commit f93a55b

Please sign in to comment.