Tag Archives: linux

farewell letter, the geeky way

#!/usr/bin/perl #note the -1 option lawl #@awesome_team_of_duane=`ls -1 /i1pb`; @awesome_team_of_duane=`ls -1 /home`; foreach (@awesome_team_of_duane) { print "Hi $_ \n"; print "It's been a pleasure working with you. I would like to take this time \n"; print "to thank you and … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

bzflag!

I used to play this game with colleagues back in the day, Hit me up if you wanna play a couple of rounds.  

Posted in Uncategorized | Tagged | Leave a comment

plesk tricks

supposed you needed to modify the dns information across all your existing domains. let’s say you want to add a nameserver that’ll be used by all your domains, you can do this: for i in `cat /tmp/domains`;do ./dns -a $i … Continue reading

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

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

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

http proxy for icecast

Let’s say you have virtual hosting configured on your server and you want your icecast server to be accessible from http://starvingpenguin.com:4200 to this: http://stream.starvingpenguin.com Add this to your httpd configuration: <VirtualHost *:80> ServerAdmin admin@starvingpenguin.com ServerName stream.starvingpenguin.com SetEnv downgrade-1.0 1 SetEnv force-response-1.0 1 ProxyRequests Off ProxyPass / http://stream.starvingpenguin.com:4200/ ProxyPassReverse / http://stream.starvingpenguin.com:4200/ <Location /> … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

icecast startup script

#!/bin/bash # # Startup script for icecast # # chkconfig: 2345 86 25 # description: Icecast Streaming Server # # processname: icecast # config: /etc/icecast.xml # pidfile: /usr/share/icecast/icecost.pid . /etc/rc.d/init.d/functions RETVAL=0 PIDFILE=/usr/share/icecast/icecost.pid CONF=/etc/icecast.xml ICECAST=/usr/bin/icecast OPTS=”-b -c $CONF” start() { echo … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

playing with playlists.no pun intended.

suppose you have a playlist that you always use to stream audio content, but at times it gets boring to always listen to the same sequence of songs. what if you wanted your stream to play a commercial after every … Continue reading

Posted in Uncategorized | Tagged , , | 1 Comment

sync data between clustered servers

HOW TO SYNC DATA BETWEEN CLUSTERED WEB SERVERS Supposed you had a cluster of web servers being load balanced, data between these servers have to be identical to each other. One way of doing that is whenever new content is … Continue reading

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