add COPYING
This commit is contained in:
parent
6e04a34fe8
commit
8b58de5a42
13
COPYING
Normal file
13
COPYING
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
Version 2, December 2004
|
||||||
|
|
||||||
|
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||||
|
|
||||||
|
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.
|
29
README
29
README
@ -1,13 +1,36 @@
|
|||||||
pwc
|
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] [<lenght>]
|
Usage: pwc [-h | --help] [-s | --special] [-p | --print] [<lenght>]
|
||||||
|
|
||||||
-s, --special use punctuation characters in password.
|
-s, --special use punctuation characters in password.
|
||||||
-p, --print print password to STDOUT instead of copy to clipboard.
|
-p, --print print password to STDOUT instead of copy to clipboard.
|
||||||
-h, --help print this help message and exit.
|
-h, --help print this help message and exit.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$ pwc -s 32
|
||||||
|
6
pwc.py
6
pwc.py
@ -1,5 +1,11 @@
|
|||||||
#!/usr/bin/env python3
|
#!/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 sys
|
||||||
import getopt
|
import getopt
|
||||||
import subprocess
|
import subprocess
|
||||||
|
Loading…
Reference in New Issue
Block a user