Skip to content

Commit

Permalink
use "SPDX-License-Identifier" header in many files
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrargyrum committed Feb 9, 2022
1 parent 8e090f3 commit ffd81f2
Show file tree
Hide file tree
Showing 62 changed files with 62 additions and 62 deletions.
2 changes: 1 addition & 1 deletion all-clipboard/all-clipboard.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

from argparse import ArgumentParser
import sys
Expand Down
2 changes: 1 addition & 1 deletion boxuni/boxuni
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

from argparse import ArgumentParser
import fileinput
Expand Down
2 changes: 1 addition & 1 deletion cheapthrottle/cheapthrottle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What the Fuck You Want to Public License v2 [http://wtfpl.net]
# SPDX-License-Identifier: WTFPL

# typical usage: cheapthrottle PID

Expand Down
2 changes: 1 addition & 1 deletion coordapp/coordapp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

from PyQt5.QtCore import pyqtSignal as Signal, pyqtSlot as Slot, QPoint, QBasicTimer, Qt
from PyQt5.QtGui import QCursor, QKeySequence
Expand Down
2 changes: 1 addition & 1 deletion crc/crc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

from binascii import crc32, crc_hqx
import sys
Expand Down
2 changes: 1 addition & 1 deletion csv2json/csv2json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: WTFPLv2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

from argparse import ArgumentParser
from collections import OrderedDict
Expand Down
2 changes: 1 addition & 1 deletion csv2table/csv2table.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: WTFPLv2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

from argparse import ArgumentParser
from collections import OrderedDict
Expand Down
2 changes: 1 addition & 1 deletion ffmcut/ffmcut
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL
# cut a video INPUT using ffmpeg between 2 timestamps and output in OUTPUT
# supports HOUR:MINUTE:SECOND notation

Expand Down
2 changes: 1 addition & 1 deletion flatten-json/flatten-json.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: WTFPLv2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

import argparse
import json
Expand Down
2 changes: 1 addition & 1 deletion fonts2png/fonts2png
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# license: WTFPLv2/public domain
# SPDX-License-Identifier: WTFPL
# 2012-05-12

text='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
Expand Down
2 changes: 1 addition & 1 deletion git/git-adapt-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

usage() {
cat <<-EOF
Expand Down
2 changes: 1 addition & 1 deletion git/git-amend-author
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

if [ $# -ne 2 ]
then
Expand Down
2 changes: 1 addition & 1 deletion git/git-blamed-diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

tmpa=
tmpb=
Expand Down
2 changes: 1 addition & 1 deletion git/git-cherry-pick-on-path
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

usage () {
cat << EOF
Expand Down
2 changes: 1 addition & 1 deletion git/git-combine-remotes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

if [ $# -lt 2 ]
then
Expand Down
2 changes: 1 addition & 1 deletion git/git-commit-with-mtime
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

usage () {
cat << EOF
Expand Down
2 changes: 1 addition & 1 deletion git/git-copy-files-from
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

usage () {
cat << EOF
Expand Down
2 changes: 1 addition & 1 deletion git/git-recpbranch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: WTFPLv2 (http://www.wtfpl.net/)
# SPDX-License-Identifier: WTFPL

# if you have
# master --- A --- featureA
Expand Down
2 changes: 1 addition & 1 deletion group-files-by-mtime/group-files-by-mtime
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: WTFPLv2
# SPDX-License-Identifier: WTFPL
# requires GNU find(1) for "-printf"

usage () {
Expand Down
2 changes: 1 addition & 1 deletion headset-bluez/headset-bluez
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL
# Enable a bluetooth headset and out or in/out mode.

find_bluez () {
Expand Down
2 changes: 1 addition & 1 deletion hexgen/hexgen
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

import binascii
import os
Expand Down
2 changes: 1 addition & 1 deletion hibp/hibp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: WTFPLv2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL
# no warranty

from __future__ import print_function # probably works in Python 2
Expand Down
2 changes: 1 addition & 1 deletion httpshare/httpshare
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: WTFPLv2
# SPDX-License-Identifier: WTFPL

"""
Shares a directory on HTTP like "python3 -m http.server" but is capable of
Expand Down
2 changes: 1 addition & 1 deletion image2xterm/image2xterm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# base: 2010-01-12
# license: WTFPLv2
# SPDX-License-Identifier: WTFPL

import PIL.Image as Image
import PIL.ImageColor as PILColor
Expand Down
2 changes: 1 addition & 1 deletion json2sqlite/json2sqlite
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: WTFPLv2 [http://wtfpl.net]
# SPDX-License-Identifier: WTFPL

import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion json2table/json2table
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

"""
Usage:
Expand Down
2 changes: 1 addition & 1 deletion keepassxprint/keepassxprint
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: do What The Fuck you want Public License v2 [http://wtfpl.net]
# SPDX-License-Identifier: WTFPL
# Tool to parse a KeepassX password database and print its content
# Warning: doesn't parse KeepassX2/KeepassXC format (.kdbx)

Expand Down
2 changes: 1 addition & 1 deletion lch-color-chooser/lch-color-chooser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL
# inspired by https://css.land/lch/

from math import ceil
Expand Down
2 changes: 1 addition & 1 deletion log-snippet/log-snippet.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

usage () {
cat <<- EOF
Expand Down
2 changes: 1 addition & 1 deletion log-ts-diff/log-ts-diff.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What the Fuck You Want to Public License v2 [http://wtfpl.net]
# SPDX-License-Identifier: WTFPL
# parse log and replace timestamps with diff to previous timestamp

import datetime
Expand Down
2 changes: 1 addition & 1 deletion log-ts-diff/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

import pathlib
import subprocess
Expand Down
2 changes: 1 addition & 1 deletion morse/morse
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

from __future__ import print_function
from __future__ import unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion moversleep/moversleep
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

from argparse import ArgumentParser
import logging
Expand Down
2 changes: 1 addition & 1 deletion mv-with-thumb/mv-with-thumb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

import argparse
import os
Expand Down
2 changes: 1 addition & 1 deletion mv-with-thumb/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env pytest
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

import os
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion pass-ls-entries/pass-ls-entries
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL
# list pass(1) entries in find(1) format, not tree(1) format
# example:
#
Expand Down
2 changes: 1 addition & 1 deletion pdf-watermark/pdf-watermark
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

usage () {
cat <<- EOF
Expand Down
2 changes: 1 addition & 1 deletion pvrun/pvrun
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

if [ $# -eq 0 ]
then
Expand Down
2 changes: 1 addition & 1 deletion qgifview/qgifview
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What the Fuck You Want to Public License v2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL
# basic GIF viewer using Qt libs
# usage: qgifview FILE.GIF

Expand Down
2 changes: 1 addition & 1 deletion qr-shot/qrshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# It can encode text to a QR code image and save to a file.

# took 4 evenings in 2010/12
# license: WTFPL (basically public domain, http://sam.zoy.org/wtfpl/)
# SPDX-License-Identifier: WTFPL
# decoding is possible if 'zbar' module is installed, and 'qrencode' for encoding

from PyQt5.QtCore import pyqtSignal as Signal, pyqtSlot as Slot, Qt, QRect, QSize, QUrl
Expand Down
2 changes: 1 addition & 1 deletion qr2unicode/qr2unicode
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: WTFPLv2 [https://www.wtfpl.net]
# SPDX-License-Identifier: WTFPL
# encoding: utf-8
# 2009-09-19
# 2012-01-27
Expand Down
2 changes: 1 addition & 1 deletion qruler/qruler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# 2013-01-26
# license: WTFPL [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL
# A Qt app that just displays a ruler to measure pixel lengths

from PyQt5.QtCore import Qt, QSize, QRect, pyqtSlot as Slot
Expand Down
2 changes: 1 addition & 1 deletion qunpak/qunpak
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# qunpak: extract Quake .pak files
# license: Do What the Fuck You Want to Public License v2 [http://wtfpl.net]
# SPDX-License-Identifier: WTFPL
# date: 2014-06-18

import sys
Expand Down
2 changes: 1 addition & 1 deletion radiodump/radiodump
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What the Fuck You Want to Public License v2 [http://wtfpl.net]
# SPDX-License-Identifier: WTFPL

# typical usage: curl https://example.com/some/web/radio | radiodump

Expand Down
2 changes: 1 addition & 1 deletion random-line/random-line
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# based on Fisher-Yates shuffle
# license: WTFPL
# SPDX-License-Identifier: WTFPL

import fileinput
import random
Expand Down
2 changes: 1 addition & 1 deletion realign-text-table/realign-text-table
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What the Fuck You Want to Public License v2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

# - takes a malformed ASCII-drawn table as stdin or file, for example:
# +-----+-----+
Expand Down
2 changes: 1 addition & 1 deletion realign-text-table/tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What the Fuck You Want to Public License v2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

from pathlib import Path
import subprocess
Expand Down
2 changes: 1 addition & 1 deletion set-cachedir/set-cachedir
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

if [ $# -eq 0 ]
then
Expand Down
2 changes: 1 addition & 1 deletion show-args/show-args
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL
# usage: show-args ARGUMENTS...
# just show args, one per line
# example:
Expand Down
2 changes: 1 addition & 1 deletion sort-with-numbers/sort-with-numbers
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

# sort stdin like sort(1) but consider digit characters as numbers to sort them.
# e.g. sort(1) could output this:
Expand Down
2 changes: 1 addition & 1 deletion sqlite-insert-fill/sqlite-insert-row.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: WTFPLv2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

# yes this program contains a lot of injected strings in SQL requests
# but identifiers aren't parametrizable, plus they are quoted in a strict way
Expand Down
2 changes: 1 addition & 1 deletion sqlite-insert-fill/sqlite-prompt-empty.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: WTFPLv2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

import argparse
import sqlite3
Expand Down
2 changes: 1 addition & 1 deletion stickimage/stickimage
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: WTFPL [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL
# a Qt app that displays an image always-on-top like a sticky note

from argparse import ArgumentParser
Expand Down
2 changes: 1 addition & 1 deletion tailsleep/tailsleep
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL

import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion trim-trailing-whitespace/trim-trailing-whitespace
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sed -f
# license: Do What The Fuck You Want To Public License version 2 [http://www.wtfpl.net/]
# SPDX-License-Identifier: WTFPL
#
# remove trailing whitespace on each line
#
Expand Down
2 changes: 1 addition & 1 deletion univisible/univisible
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# univisible: make Unicode compositions visible
# license: Do What the Fuck You Want to Public License v2 [http://wtfpl.net]
# SPDX-License-Identifier: WTFPL
# date: 2013/07/03

import argparse
Expand Down
Loading

0 comments on commit ffd81f2

Please sign in to comment.