Tips
Download files from a Bash Shell
Shell Tips
July 9, 2011 | COMMENTS

Looking at downloading a file from a bash script but not sure where to start? Let me show you how to use wget, curl or download files with a shell script using Bash Redirections.

Continue Reading
Linux sysctl configuration and tuning script
Shell Tips
September 13, 2010 | COMMENTS

Frequently when I setup a new server (or a bunch of them) I use a small shell script that will go thru all the basic linux sysctl config. I decied to share it. I always change it a bit according to my needs and the application/services that will run on the server. Though having a script to automate some of this manual tuning is quite useful. Use it at your OWN risk. There is no silver bullet, make sure to understand each parameters and that they fit your needs/usage/network/OS.

Continue Reading
Performing Math Calculation in Bash
Shell Tips
June 14, 2010 | COMMENTS

I use math in bash scripts a lot, from simple crontab reports to Nagios monitoring plugins... Here is few small examples on how to do some maths in Bash with integers or float.

Continue Reading
Graphing Java JMX Object values with Ganglia and Python using JPype
Case Study Tips Programming
May 31, 2010 | COMMENTS

With Ganglia, graphing a large number of servers has never been so easy... Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids. Ganglia let you create any kind of module in C/C++ or Python. You can also use the command line tool Gmetric and then the scripting language of your choice. The problem with Gmetrics is that you can’t keep your data organized by group and it’s getting harder to poll values in an efficient way. Few months ago I needed to monitor some JMX values returned by a Java daemon.

Continue Reading
Flash - How to fix the "Security sandbox violation: BitmapData.draw"
Tips Programming
August 30, 2009 | COMMENTS

The "Security sandbox violation" message is a common problem for any Flash developer who try to do a Snapshot of an RTMP Stream. There was a couple of workaround but they stopped working since Flash Player 9.0.115 as it was considered as a possible bug. So, now how to do a proper snapshot of an RTMP stream ? The answer is simple but you’ll need to have the control on the streaming server, whatever it is FMS or Red5.

Continue Reading