Author Archives: pilip

how to view contents of ssl certs….

….from the command line: openssl x509 -noout -text -in filename.crt To view the contents of the private key: openssl rsa -noout -text -in filename.key

Posted in Uncategorized | Tagged | Leave a comment

I haz the galaxy S

I’ve had this phone for over a month now, and it’s kicking ass. Highlights for me: 1Ghz cpu, 16gb storage, 720p video recording capable and it runs android. I’ve had a brief experience with android in the past, it was … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

expect in your shell script

“come on, you need 2 scripts(shell and expect) to get the following done?” first post: second post: not necessarily, i searched around and found a solution. excerpts from: http://tinyurl.com/hnul8 ================ #!/bin/sh # \ exec expect -f “$0″ ${1+”$@”} set password … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

expect in your shell script

“come on, you need 2 scripts(shell and expect) to get the following done?” first post: second post: not necessarily, i searched around and found a solution. excerpts from: http://tinyurl like this.com/hnul8 ================ #!/bin/sh # \ exec expect -f “$0″ ${1+”$@”} … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

I’m ‘expect’ing something lol

Supposed you just ran a script that would change your password on all the servers you’re admin’ng and you don’t have full confidence that changes have been implemented throughout. Or you may just want to check if all these servers … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

great ‘expect’ations (no pun intended)

CHANGING PASSWORD ACROSS MULTIPLE SERVERS scenario:supposed you have a boat-load of *nix servers being administered like say 2+ and these servers don’t use single sign-on authentication whereas your access credentials different between systems. in analogy, it’s like having the same … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

xanga!

I found my old site, it’s pretty old and contains mostly tech stuff and rants about life of the early 20′s me.

Posted in Uncategorized | Tagged | Leave a comment

hey mon it’s nmon again

someone in my team just shared this link  about nmon, i recall having the chance to use this tool a couple of years ago. I can’t really recall which system it was used on. It’s a pretty nifty tool to … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

editing multiple files

to remove a specific line that contained a specific string e.g. | /usr/bin/odeiavir -r from multiple files in multiple folders e.g. /var/qmail/mailnames/hostname.com/user1/.qmail /var/qmail/mailnames/hostname.net/user2/.qmail /var/qmail/mailnames/hostname.org/user3/.qmail Run this: #find /var/qmail/mailnames -type f -name .qmail |xargs perl -pi -e ‘s/\| \/usr\/bin\/odeiavir .+//g’ What … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

nagios plugin: memory checks

Short of making my own, I googled for one and found this site: http://www.unixdaemon.net/nagios_plugins.html#check_linux_free_memory The site contains a plugin that contains a nagios plugin that checks and displays basically the free(percentage and size in MB) amount of memory on your … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment