Started new and improved diary file. Now in markdown format!
A good UNIX date string (used for my TextMate diary now
macro):
date +"# %A 0%Y-%m-%d at %r"
Generating a md5 hash in Python
>>> import hashlib
>>> import random
>>> hashlib.sha1(str(random.random())).hexdigest()
RegEx: "search for lines that do NOT start with a dollar sign":
^(?!\$).+
Just do pip install python-memcached
and you should be good.
As for installing memcached itself, it depends on the platform you are on.
- Windows - http://pureform.wordpress.com/2008/01/10/installing-memcache-on-windows-for-php/
- OS X -
brew install memcached
- Debian/Ubuntu -
sudo apt-get install memcached
- On OS X/Linux, just run
memcached
in the command line.
Get the Memory of a machine....
Solaris
dmesg | grep mem
prtdiag | grep Memory
prtconf -v | grep Memory
AIX
bootinfo -r
lsattr -E1 sys0 -a realmem
getconf REAL_MEMORY
HPUX
dmesg | grep Physical
/opt/ignite/bin/print_manifest | grep Memory
machinfo | grep Memory
Linux
dmesg | grep Memory
grep -i memtotal /proc/meminfo
free
OpenVMS
show mem /page
FreeBSD
dmesg | grep memory
grep memory /var/run/dmesg.boot
sysctl -a | grep mem