zedr.com

Hack your mind out of its sandbox

tidy as an html5 beautifier:

$ tidy -as-xhtml --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --doctype "<!DOCTYPE HTML>" --break-before-br yes --sort-attributes alpha --vertical-space yes

From Stobor@Stackoverflow

KiTTY, an enhanced fork of PuTTY

If you’re stuck on Windows and need a good SSH client, try KiTTY.

It’s an enhanced fork of the well known PuTTY, sporting several niceties, such as:

  • Can be forced “always visibile”
  • Fullscreen
  • Clickable links (useful in irssi)
  • Background images and transparency (yay!)
Integrating Wordpress in your Web site [it]

Return a Python list as a nested dict:

>>> def dnest(L): return {L[0]: L[1]} if len(L) is 2 else {L[0]: dnest(L[1:])}
...
>>> A = ['foo', 'bar', 'baz']
>>> dnest(A)
{'foo': {'bar': 'baz'}}

pwgen rivisited in a Python oneliner:

import random, string; ''.join([random.choice([l for l in (string.letters+string.digits) if l not in 'Iil0oO1']) for i in range(8)])

Installing Plone 4.0 via buildout on Centos 5
Using bpython with Plone 4