Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tips:threelinestip [2008/12/09 17:23] a + Local/remote webserver |
tips:threelinestip [2009/03/29 21:58] a |
||
---|---|---|---|
Line 95: | Line 95: | ||
tail -f filename |grep --line-buffered | tail -f filename |grep --line-buffered | ||
+ | |||
===== Local/ | ===== Local/ | ||
Line 104: | Line 105: | ||
"; | "; | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== resolving IP Addresse (nmap) ===== | ||
+ | |||
+ | <code bash|> | ||
+ | nmap -sL $1 2>/ | ||
+ | perl -ne 'print unless /^Host [\d.]+ /' | | ||
+ | grep 'not scanned' | ||
+ | cut -d ' ' -f 2,3 | | ||
+ | sed -e ' | ||
+ | </ | ||
+ | |||
+ | output: | ||
+ | < | ||
+ | 198.133.219.10 resolves to fed.cisco.com | ||
+ | 198.133.219.11 resolves to asp-web-sj-1.cisco.com | ||
+ | 198.133.219.12 resolves to asp-web-sj-2.cisco.com | ||
+ | 198.133.219.13 resolves to fedtst.cisco.com | ||
+ | 198.133.219.14 resolves to www.netimpactstudy.com | ||
+ | 198.133.219.15 resolves to deployx-sj.cisco.com | ||
+ | 198.133.219.16 resolves to contact-sj1.cisco.com | ||
+ | 198.133.219.17 resolves to scc-sj-1.cisco.com | ||
+ | 198.133.219.18 resolves to scc-sj-2.cisco.com | ||
+ | 198.133.219.19 resolves to scc-sj-3.cisco.com | ||
+ | 198.133.219.20 resolves to jmckerna-test.cisco.com | ||
+ | 198.133.219.21 resolves to events.cisco.com | ||
+ | 198.133.219.22 resolves to bam-prod-1.cisco.com | ||
+ | 198.133.219.23 resolves to redirect.cisco.com | ||
+ | 198.133.219.25 resolves to www.cisco.com | ||
+ | 198.133.219.26 resolves to partners.cisco.com | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Linux Get Hardware Serial Number From Command Line ===== | ||
+ | | ||
+ | |||
+ | ===== Convert pdf to jpg ===== | ||
+ | |||
+ | for file in `ls *.pdf`; do convert -verbose -colorspace RGB -resize 800 -interlace none \ | ||
+ | -density 300 -quality 80 $file `echo $file | sed ' | ||
+ | |||
+ | |||
+ | |||
+ | |||