Enjoy this advertisement from simpler days, about Microsoft Windows 1.0 — featuring Steve Ballmer
16457 items (10785 unread) in 27 feeds
ComputerTechnology
(5306 unread)
RantsandRamblings
(4204 unread)
cpulimit is a tool that can be used to limit cpu usage (throttle cpu usage) for a single process (by its PID). cpulimit is useful to ensure that a single process would not hogs the cpu cycles, which can be use by other processes. cpulimit is different from ‘nice’ as it limits the real cpu usage for a process, while ‘nice’ controls scheduling priorities for a particular process.
How to use cpulimit?
Basic usage:
cpulimit -p [pid] -l [ cpu percentage] cpulimit -p 12345 -l 25
Running cpulimit on background:
cpulimit -p 12345 -l 25 -z -b
Note: The cpu percentage is the same one as reported by the ‘top’ command.
cpulimit can be installed from Ubuntu and Debian 6.0 (Squeeze) repository through apt-get. The official website of cpulimit is [limitcpu.sf.net]
grake is a command-line tool for scanning web pages for embedded Youtube video link. As a scanning tool, grake is meant to complement other tool that would accept Youtube URL as its parameter, notably cclive.
Usage Example:
# general command line example grake [YOUTUBE URL]
# typical / normal use grake http://youtube.com/
#output as json (for programmatic consumption) grake --json http://youtube.com/
#tell cclive to download youtube urls from grake output grake http://youtube.com/ | cclive
This of course require the latest release of cclive in order for the download example to work.