.kpt
" suffix (this is
not coded in the script), you can use the VIM
Autocmd's (see below), to allow you to edit encrypted files directly,
with password caching so as to save the file with the same password again.
The script in many ways is similar to what "aespipe
" did,
though the wrapper (for the "aespipe" program) did not do a complete job,
nor was it as future proof, or versatile at "keepout".
.enc
" suffix (not
hard coded into this script), you can use the VIM
Autocmd's (see below), to allow you to edit encrypted files, and making
use of password caching to remember the password for saving it again.
Note: This program predates "openssl v1.1.1" which now provides, and
recommends, the use of a "-pbkdf2" option. That was the original reason
this script was created, effectively obsoleting it. It has basically been
superseded by the simpler "keepout" wrapper
around the newer 'OpenSSL enc' command.
vim
auto-commands" I use to let me directly
edit files encoded or encrypted in various ways (Gzip, GPG, OpenSSL, and my
encrypt and keepout
scripts), based on the filename suffix.
My own scripts make use of the kernel password caching to remember the
password that was used when a file was decrypted for editing, and re-using
the same password to re-encrypt the file again. That way I do not need to
repeatedly type it in when saving the file multiple times while editing.
Something that has caused me a number of mishaps due to 'finger memory'
mistakes, and the resulting loss of the data. The cache is automatically
erased after 30 minutes, or at the end of the editing session.
|
|
|
|
|
|
|
timeout
',
but that is not always available on non-linux machines, and that is where
this program fills the gap.
mv_reseq
", it can then be
used to re-sequence all the numbers, so as to remove any gaps, or spread
out the numbers so as to add gaps to the sequence. This can be useful to
insert and re-arrange the numbered order of the files.
I use both forms of the script quite regularly when dealing with numbered
files.
cp_perl
" or
"ln_perl
", then it will copy or symbolically link files to
the new filename rather than move or rename them.
Built in perl expressions have been included to rename files to: all
lowercase, all uppercase, capitalise words, remove punctuation, replace
spaces with underscores, and visa-versa, and many more common file
renaming.
These can accessed by linking the script to appropriate "mv_*" names (see
internal documentation). For example if the script is linked/copied to
the command name "mv_lcase
", than that command will rename
the given filenames to lowercase.
This script was originally based on a common perl renaming script, the core
of which was originally created by Larry Wall, the creator of perl. Many
variants exist including "mmv" on many linux machines, and under Debian
Linux, "rename".
multi_seq -f "%02d/%02d/%d" 31 12 2010,2011
In some ways this is also like bash brace expandsion, but the '-f' reverses
the order of the increments. That the bash equivelent of the previous,
will increment 'year' before 'day' and 'month', resulting in, the bad
ordering of: 1/1/2010, 1/1/2011, 1/2/2010,...
printf '%s\n' {1..31}/{1..12}/{2010,2011}
sort
" command.
bc
"
co-process. Basically bullet proofing the "bc
" regardless of
input.
For more information see my own notes on "Co-Processing, and the
section on "Co-Processing with both stdout and stderr...".
|
|
List the monitors simply: | xmonitor list |
Clone display to all monitors: | xmonitor clone |
Swap to next active monitor: | xmonitor swap |
Enable secondary monitor only: | xmonitor second |
Left to right order: | xmonitor right |
Left to right order (skip first): | xmonitor -skip right |