dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f87209aeb966c78c18f6a31355ab6a6876ff9639
parent ead8f9fbd21205b5f272547d190e415c2652382f
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Sat, 10 Jun 2017 19:06:36 +0300

Fix trailing newline in xpwgen

Diffstat:
Mdotfiles.org | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/dotfiles.org b/dotfiles.org @@ -241,6 +241,24 @@ You might find mirrors in the following addresses: #+end_src *** bin + +**** xpwgen + +#+begin_src sh :tangle ~/bin/xpwgen :tangle-mode '#o700' + #!/bin/bash + + function make_stripped_password(){ + python3 -c """ + import sys + print(sys.stdin.read().strip(), end='') + """ <<EOF + $( pwgen -B1 16 ) + EOF + } + + make_password | pee 'xsel' 'xsel -b' +#+end_src + **** qrfeh #+begin_src sh :tangle ~/bin/qrfeh :tangle-mode '#o700'