One-Liners

check your ldiretor clients

ipvsadm -L -n

To skip an error on a mysql slave

SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
I always forget that one.

Change the extension of every .html file in your CWD to .php

Rename replaces string X in a set of file names with string Y.
rename 's/.html$/.php/' *.html

Get the env for a running process

ps auxwwe

Rename everything in a dir

perl -e'@files=`ls`; foreach(@files){chomp($_); print `mv $_ $_.ready`;}'

Check for support server SSL/TLS versions

openssl s_client -connect localhost:443

Check for a specific protocol

openssl s_client -host localhost -port 443 -ssl2


Share and Enjoy:

  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Live
  • MySpace
  • Netvibes
  • Reddit
  • Slashdot
  • SphereIt
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter
  • Yahoo! Bookmarks

1 Response to One-Liners

Avatar

JOHN

July 17th, 2012 at 2:03 pm


Buy Viagra

Buy Quality Drugs Now!…

Comment Form

Recent Posts

  • freedom yourself: Apache Modules and Their Functions | Hack Admin... A transformational MMO that's n [...]
  • 3 Thirty 6 Publications: 3Thirty6 Publications... solid post my dad does this kind of work BUT last thing i [...]
  • best online casinos: on line casino... The online casino and gambling industry is one of the most rapid [...]
  • onebuckresume: TeenVogue? {Looking|Searching|Seeking} for fashion advice, celebrity buzz or beauty trends? [...]
  • CARLTON: B [...]