Search This Blog

Sunday, June 11, 2017

Typical unison usage

unison profile -batch: no question
unison profile -auto: accept default

Typical aria2c usage

aria2c -c -x 16 -s 16 [url]

-c: continue
-x: max number of connections to one server
-s: max number of download connections

Saturday, March 11, 2017

Generate random noise image using ImageMagick Convert

Generate 1024x1024 random noise jpg:

convert -size 1024x1024 xc: +noise Random random.jpg


* xc: X Constant Image

References

Sh!t boy


Sh!t boy~

This character is used for animated icon on desktop in Windows.

Wednesday, March 8, 2017

Password management in *nix system

pwgen

password generator

Usage example:
  • Single 16-length password generation
    $ pwgen -1 16
manage encrypted password databases

pass

standard *nix password manager
https://www.passwordstore.org/

Init password store

Init or re-init password store using gpg-id.
$ pass init gpg-id
pass uses the last subkey of the gpg-id (1).
  • gpg-id is a registered gpg id (uid) which can be found using:
    $ gpg --list-keys

Init git repo for password store

$ pass git init  
Initialized empty Git repository in /Home/user/.password-store/.git/

Chrome/Firefox plugin

https://github.com/dannyvankooten/browserpass

References

1. "https://lists.zx2c4.com/pipermail/password-store/2014-September/001131.html"

Sunday, March 5, 2017

gpg (GnuPG or GNU Privacy Guard)

List keys

$ gpg --list-keys

Add a key

$ gpg --gen-key

Examples

gpg -e -r user hello.txt

xxd -p hello.txt.gpg > hello.txt.gpg.bin

xxd -r -p hello.txt.gpg.bin > decode.txt.gpg

gpg -d decode.txt.gpg

References

1. "Python GPG example"
2. "Creating a new GPG key with subkeys"

Blog Archive