kindersicherung.py [<age>Continue reading “Linux Kindersicherung via JusProgDNS”|off] ARGS age Ganze Zahl, das Alter des Kindes off Deaktivierung der Kindersicherung
Category: Scripting
LaTeX Dependencies
This tool is written to resolve dependencies within a LaTex-file with multiple \include and \input statements. The result is a single file. All dependencies are integrated recursively, so the result may need some further cleaning, yet provides some good working ground to adapt to publication constraints.
SIGNATURE
texmerge.py <main.tex>
Enumerate file names
Sometimes it is necessary to explicitly enumerate file names on the command line e.g. when pattern matching and globs may be too complicated.
The tool below provides an easy way to enumerate tree-like structures with embedded enumerations like
- vid_2017_1.mpg
- vid_2017_2.mpg
- vid_2018_1.mpg
- vid_2018_2.mpg
or similar.
SIGNATURE:
enum.py pattern [separator]
pattern: a composite forms like img20[16-18]_[1-3].jpg separator: item separator "wsp", "tab", "`echo`" (default: whitespace) EXAMPLE: qenum.py Dir[2016-2018]/myfile_[1-3].txt
mplay 1.1
A command line music playlist & player written in python (depends on mplayer).
Features
- quick search through filenames (‘mplay tschaikovski’)
- positive & negative patterns (‘mplay classic -v mozart bach’)
- and/or conjunctions (for pos/neg list separately)
- random playlists
- web-radio stations in a config-file with custom naming (‘mplay -r b4’)
- white noise generator
- custom sorting by modification, access, date, reverse, not accessed for a long time (‘mplay -datime’)
What’s new
- Python 3 support
- small fix for long playlists
- fixed help text
Download:
Current Version 1.1
Signature
Continue reading “mplay 1.1”vim – fast indent switching
In vim, if code conventions clash, you may need a quick way to switch the indent width. Here is how you can map your function keys to an indent of 3 or 4 spaces.
Simply add a few lines to your .vimrc file:
"basic settings "replace tabs with spaces set expandtab set shiftwidth=4 set tabstop=4 set softtabstop=0 "map F3 to 3/4 spaces when in normal nnoremap <F3> :set expandtab tabstop=3 shiftwidth=3 softtabstop=0<CR> nnoremap <F4> :set expandtab tabstop=4 shiftwidth=4 softtabstop=0<CR>
Extract Notes from Sony PRS
Command line tool (python, GPL3) to extract xml notes as text from a Sony PRS eBook Reader.
USAGE:
- USB connect your device
- navigate to the directory of ‘.note’ files
- python extractNotes.py
- collect your text files