This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| aardvark.legs by Anatoli Papirovski - http://fecklessmind.com/ | |
| Licensed under the MIT license. http://www.opensource.org/licenses/mit-license.php | |
| URL: http://aardvark.fecklessmind.com/aal.css.txt | |
| */ | |
| /* | |
| Reset first. Modified version of Eric Meyer and Paul Chaplin reset | |
| from http://meyerweb.com/eric/tools/css/reset/ | |
| */ |
Notes on using Pandoc
$ pandoc quickpost.txt -f markdown -t html --no-wrap -o quickpost.html --template=template.html
Correct way to sync a local dir to remote
$ ls www
index.html
$ rsync -avz -e ssh www/ pradeep@pradeepgowda.com:~/www
- Use
aticonfigto generate an xorg.conf file. - Add
fglrxtoMODULESlist in/etc/rc.conf. - add
nomodesetto kernel line in/boot/grub/menu.lstie.,kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/1aa731c0-f626-4d01-a551-8eed3c2a35f3 ro nomodeset
To get it working with xorg-server >=1.8 you need patched xorg-server. you may get it from [catalyst] repo, more here: http://wiki.archlinux.org/index.php/ATI_Catalyst#Catalyst.27s_repositories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Simple module for getting amount of memory used by a specified user's | |
| processes on a UNIX system. | |
| It uses UNIX ps utility to get the memory usage for a specified username and | |
| pipe it to awk for summing up per application memory usage and return the total. | |
| Python's Popen() from subprocess module is used for spawning ps and awk. | |
| source: http://stackoverflow.com/questions/276052/how-to-get-current-cpu-and-ram-usage-in-python | |
| """ | |
| import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # echoes shell command that can be pasted to set date to UTC. | |
| echo date -s `date -u +"%Y.%m.%d-%H:%M:%S"` |
If this is your first install, automatically load on login with:
cp /usr/local/Cellar/redis/2.0.0/io.redis.redis-server.plist ~/Library/LaunchAgents
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
If this is an upgrade and you already have the io.redis.redis-server.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/io.redis.redis-server.plist
cp /usr/local/Cellar/redis/2.0.0/io.redis.redis-server.plist ~/Library/LaunchAgents
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist