Apparently Python only recognizes a doc string a litteral string placed after a function definition, meaning it won't accept an interpolated string, or even 'a'+'b', for whatever reason. For example:
>>> def doc(): ... '''Useful info. Note: %s''' % 'You'll never see this.' ... print doc.__doc__ >>> doc() None
To work around this you must explicitly set __doc__. Example:
>>> def doc(): ... doc.__doc__ = '''Useful info. Note: %s''' % 'Bacon is yummy!' ... print doc.__doc__ >>> doc() Useful info. Note: Bacon is yummy!
docstringpythonsemanticsstringssyntax
If you intend to use passwords for local database authentication, you'll need to make an adjustment to the pg_hba.conf file:
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD #local all all ident sameuser local all all password
authenticationidentlocalpasswordpostgresqlpsql
For example, to display the 20 largest files owned by joe:
find / -printf "%k\t%p\n" -user joe | sort -n | tail -20
commandsfilesfindpermissionsprintfsorttailusers
display the route from your server to any email address:
exim -bt email@domain.com
send an email using exim:
exim -v email@domain.com
show the number of emails in the queue:
exim -bpc
display the mail queue:
exim -bp
flush queue:
exim -qff &
view a particular mail in the queue:
exim -Mvh msgid (for headers) exim -Mvb msgid (for body)
commandseximmailmta
On a new windows install I'll always drop in these entries for startup configuration:
" general settings set sw=4 set ts=4 set et set nohls " lhs comments map ,# :s/^/#/<CR> map ,/ :s/^/\/\//<CR> map ,> :s/^/> /<CR> map ," :s/^/\"/<CR> map ,% :s/^/%/<CR> map ,! :s/^/!/<CR> map ,; :s/^/;/<CR> map ,- :s/^/--/<CR> map ,c :s/^\/\/\\|^--\\|^> \\|^[#"%!;]//<CR> " wrapping comments map ,* :s/^\(.*\)$/\/\* \1 \*\//<CR> map ,( :s/^\(.*\)$/\(\* \1 \*\)/<CR> map ,< :s/^\(.*\)$/<!-- \1 -->/<CR> map ,d :s/^#//<CR> " screen location & dimensions winpos 50 50 set lines=30 set columns=120 " squirrel away backup files set bdir=c:/backups set directory=c:/backups
Note: You'll need to create the backup folder before you can use it.
gvimvimvimrc