OSX commands
flush dns dscacheutil -flushcache
simple one liner password generator. thanks to http://sysadminsjourney.com perl -le ‘print map { (a..z,A..Z,0..9)[rand 62] } 0..pop’ 8
search and replace a path with a variable we want to change the following text /usr/local/dsview/webapp/output/torpb01a to $dsview/torpb01a use.. :%s/\/usr\/local\/dsview\/webapp\/output\//$dsview\//
These are commands I find useful.. get a list of all installed updates rpm -qa –qf ‘%{INSTALLTIME} %-40{NAME} %{INSTALLTIME:date}\n’ | sort -n get all CVE’s from all packages for pkg …
./configure –with-apxs2=/usr/sbin/apxs –with-config-file-path=/etc/php –with-gd –with-zlib –enable-sockets –with-curl –with-xmlrpc –with-openssl –enable-mbstring