Remove Icon in MoinMoin before links

1. remove element in common.css and msie.css.
  • One way is to comment out / delete the respective lines in the css sheets. If you don't want the earth-icon remove
    a.www:before {content: url(../img/moin-www.png); margin: 0 0.2em;}
  • from common.css and the corresponding similar line from msie.css.
You can see the css when you hover over the icon and right-click, choosing "inspect element". You may need to do this for each of the themes (e.g. modernized, modern, etc).

http://moinmo.in/MoinMoinQuestions/Themes#Avoid_Link-Icons_on_linked_images

Date in Bash Script

To get a nice formatted date in a bash script, use:

    $(date +%F)

There is also 
 
    DATE=`date +%Y-%m-%d`

get year-month-day hour:minute:second from date
    
    DATE=`date +%Y-%m-%d:%H:%M:%S`
 
http://stackoverflow.com/questions/1401482/yyyy-mm-dd-format-date-in-shell-script


Mirror a Website with WGET

wget -mkEpnp http://example.org

wget --recursive --no-parent --level 3 --execute robots=off -nH  example.com

===================================================

wget --mirror --convert-links --adjust-extension --page-requisites 
--no-parent http://example.org
 
Explanation of the various flags:
  • --mirror – Makes (among other things) the download recursive.
  • --convert-links – convert all the links (also to stuff like CSS stylesheets) to relative, so it will be suitable for offline viewing.
  • --adjust-extension – Adds suitable extensions to filenames (html or css) depending on their content-type.
  • --page-requisites – Download things like CSS style-sheets and images required to properly display the page offline.
  • --no-parent – When recursing do not ascend to the parent directory. It useful for restricting the download to only a portion of the site.
Alternatively, the command above may be shortened:

wget -mkEpnp http://example.org

Note: that the last p is part of np (--no-parent) and hence you see p twice in the flags.

source: http://www.guyrutenberg.com/2014/05/02/make-offline-mirror-of-a-site-using-wget/

also note the -w flag:

wget -mk -w 1 http://www.example.com
  • -mk    will do mirroring
  • -w 1   wait 1 second in between downloads 

Nohup and Screen

One can use nohup to run files that won't exit when the shell closes; also check out screen!
 
 $ nohup ./somescript.sh &
 $ screen -A -m -d -S somename ./somescript.sh &
 
also see: http://en.wikipedia.org/wiki/Nohup, Advanced Bash Scripting Guide 

Capture and Read STDOUT and STDERR

$> command 2>&1 | tee -a some_file

Vim Hints/Tips

Line Numbering
  (Enable)
  :set number
  :set nu
  (Disable)
  :set nonumber
  :set nonu
  :set !nu
  source: http://vim.wikia.com/wiki/Display_line_numbers

PerlBestPractices 
  (.vimrc)

Shiftwidth
Autoindent

Solarized (coloring)

FileFormat
 :set ff=unix    [unix|dos|mac]
     dos     <CR> <NL>
     unix    <NL>
     mac     <CR>

Enabling Options
http://vim.wikia.com/wiki/Managing_set_options

Miscellaneous

test file format using vim (:set ff?)

solarized and coloring terminals

svn and SVN_EDITOR

Apple/Macs use .bash_profile, not .bashrc (so add link)