Skip to content

Commit

Permalink
scripts: document that all are LGPLv2
Browse files Browse the repository at this point in the history
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 f93a55b
Show file tree
Hide file tree
Showing 51 changed files with 76 additions and 5 deletions.
1 change: 1 addition & 0 deletions README
@@ -0,0 +1 @@
All scripts are licensed under the LGPLv2
3 changes: 3 additions & 0 deletions scripts/7seg
@@ -1,4 +1,7 @@
#!/bin/sh

# License: LGPLv2

# _
#[ ]
#[_]
Expand Down
1 change: 1 addition & 0 deletions scripts/add
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/ansi2html.sh
Expand Up @@ -2,6 +2,7 @@

# Convert ANSI (terminal) colours and attributes to HTML

# Licence: LGPLv2
# Author:
# http://www.pixelbeat.org/docs/terminal_colours/
# Examples:
Expand Down
1 change: 1 addition & 0 deletions scripts/ansi_colours.sh
Expand Up @@ -2,6 +2,7 @@

# Display available ANSI (terminal) colour combinations

# License: LGPLv2
# Author:
# http://www.pixelbeat.org/docs/terminal_colours/
# Changes:
Expand Down
2 changes: 1 addition & 1 deletion scripts/bashfeed
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions scripts/bc
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions scripts/ccodes
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions scripts/command_prompt_here
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions scripts/conv
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions scripts/datedir
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions scripts/day
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/disk_grep
Expand Up @@ -2,6 +2,7 @@

# search disk for a string and output commands to dump matching sections

# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
Expand Down
2 changes: 2 additions & 0 deletions scripts/dosfiles
Expand Up @@ -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 |
Expand Down
2 changes: 2 additions & 0 deletions scripts/download
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions scripts/dutop
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions scripts/errno
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions scripts/find_mm_yyyy
Expand Up @@ -2,6 +2,7 @@

# list files last modified in a given month & year.

# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Changes:
Expand Down
1 change: 1 addition & 0 deletions scripts/findrepo
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions scripts/fix
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions scripts/funcpy
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions scripts/gcccpuopt
Expand Up @@ -2,6 +2,7 @@

# Print the gcc cpu specific options tailored for the current CPU

# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
Expand Down
2 changes: 2 additions & 0 deletions scripts/gen_timeline
Expand Up @@ -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">
Expand Down
2 changes: 2 additions & 0 deletions scripts/getpw
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions scripts/human.py
Expand Up @@ -2,6 +2,7 @@

# Convert a number for human consumption

# License: LGPLv2
# Author:
# P@draigBrady.com
# Changes:
Expand Down
1 change: 1 addition & 0 deletions scripts/idiff
Expand Up @@ -2,6 +2,7 @@

# Color diff output, for human consumption

# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
Expand Down
2 changes: 1 addition & 1 deletion scripts/index.html
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions scripts/inpy
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/l
Expand Up @@ -2,6 +2,7 @@

# An enhanced and more portable ls -l

# Licence: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
Expand Down
1 change: 1 addition & 0 deletions scripts/lomount.sh
Expand Up @@ -2,6 +2,7 @@

# Mount partitions within a disk image file

# License: LGPLv2
# Author: P@adraigBrady.com

# V1.0 29 Jun 2005 Initial release
Expand Down
2 changes: 2 additions & 0 deletions scripts/lowercase
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions scripts/lsdate
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions scripts/lsmode
Expand Up @@ -2,6 +2,8 @@

# print octal mode for a file

# License: LGPLv2

if [ $# -ne 1 ]; then
echo "Usage: `basename $0` path" >&2
exit 1
Expand Down
2 changes: 2 additions & 0 deletions scripts/moz
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/newest
Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions scripts/ps_mem.py
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions scripts/quote
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions scripts/rmws
Expand Up @@ -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.

Expand Down
2 changes: 2 additions & 0 deletions scripts/self_modify.sh
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/split_to
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions scripts/svndiff
Expand Up @@ -2,6 +2,7 @@

# Review repo changes in graphical viewer before checkin

# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
Expand Down
1 change: 1 addition & 0 deletions scripts/sw
Expand Up @@ -2,6 +2,7 @@

# A command line Stopwatch

# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
Expand Down
1 change: 1 addition & 0 deletions scripts/sysinfo
Expand Up @@ -2,6 +2,7 @@

# simple script to give a summary of system information

# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
Expand Down
1 change: 1 addition & 0 deletions scripts/tcpdump_not_me
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions scripts/threadsafe
@@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/timeout
Expand Up @@ -2,6 +2,7 @@

# Execute a command with a timeout

# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
Expand Down
1 change: 1 addition & 0 deletions scripts/truncate
Expand Up @@ -2,6 +2,7 @@

# Increase or decrease the apparent size of a file

# License: LGPLv2
# Author:
# http://www.pixelbeat.org/
# Notes:
Expand Down

0 comments on commit f93a55b

Please sign in to comment.