Severity: Notice
Message: Memcache::connect(): Server localhost (tcp 11211, udp 0) failed with: Connection refused (111)
Filename: libraries/Cache.php
Line Number: 83
Severity: Warning
Message: Memcache::connect(): Can't connect to localhost:11211, Connection refused (111)
Filename: libraries/Cache.php
Line Number: 83
commandlinefu.com is the place to record those command-line gems that you return to again and again.
Delete that bloated snippets file you've been using and share your personal repository with the world. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/
You can sign-in using OpenID credentials, or register a traditional username and password.
First-time OpenID users will be automatically assigned a username which can be changed after signing in.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for:
extract data in multiline blocks of data with perl pattern matching loop
- excel date compatible with a separate hour field
- added a fixed 1 for easier request counter aggregation
- split URL in directory, filename, fileext, query
- used with tomcat valve with response bytes replaced by elapsed time
with a semicolon text file map, apply multiple replace to a single file
from http://stackoverflow.com/questions/1030787/multiline-search-replace-with-perl
added greedy trick in wildcard match (.*?) from
http://www.troubleshooters.com/codecorn/littperl/perlreg.htm#Greedy
shell loop to scan netstat output avoiding loolback aliases (local/remote swap for local connections)
range context (-A -B) search, with exclusion of vcs directories
look at /boot/grub/menu.lst for somethig like:
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
## defoptions=vga=795
# defoptions=vga=873
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(verbose mode) vga=775 debug
# altoptions=(console mode) vga=ask
# altoptions=(graphic mode) quiet splash
# altoptions=(recovery mode) single
vga=(decimal value) is framebuffer mode