From 8b58de5a42830274507115294321be5426efb3aa Mon Sep 17 00:00:00 2001 From: gd Date: Thu, 20 May 2021 20:44:29 +0300 Subject: [PATCH] add COPYING --- COPYING | 13 +++++++++++++ README | 29 ++++++++++++++++++++++++++--- pwc.py | 6 ++++++ 3 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 COPYING diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..5c93f45 --- /dev/null +++ b/COPYING @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README b/README index 9283cae..5c069e7 100644 --- a/README +++ b/README @@ -1,13 +1,36 @@ pwc +=== -Password Copy +Password Copy. -Generate password and copy it to clipboard via xclip. Generated password will not printed in termainal. +Generate password and copy it to clipboard via xclip. Generated password will not printed in termainal. Default password lenght is 12 characters. -Default password lenght is 12 characters. +Installation +============ + +Just download pwc.py and place it into $PATH. ~/.local/bin/pwc is good choice. Don't forget give execution rights to file: + +$ chmod +x pwc.py + +pwc requires xclip package. Install xclip for your operating system. + +Arch Linux: + +$ sudo pacman -S xclip + +Ubuntu/Debian: + +$ sudo apt install xclip + +Usage +===== Usage: pwc [-h | --help] [-s | --special] [-p | --print] [] -s, --special use punctuation characters in password. -p, --print print password to STDOUT instead of copy to clipboard. -h, --help print this help message and exit. + +Example: + +$ pwc -s 32 diff --git a/pwc.py b/pwc.py index 2d5ffde..45200cf 100755 --- a/pwc.py +++ b/pwc.py @@ -1,5 +1,11 @@ #!/usr/bin/env python3 +# This program is free software. It comes without any warranty, to +# the extent permitted by applicable law. You can redistribute it +# and/or modify it under the terms of the Do What The Fuck You Want +# To Public License, Version 2, as published by Sam Hocevar. See +# http://www.wtfpl.net/ for more details. + import sys import getopt import subprocess