Licence
Creative Commons License

This work by Stephane KATTOOR is licensed under a Creative Commons Attribution 3.0 Unported License.
Feeling like tipping ?
If you find this blog useful, you might consider sending a few bitcoins to support it : 1BTtsC3beGJ6ysd8DhrXjdo6jVw5WD9mvY
RSS
 
RSS Feed
Follow me !
Tech@Sakana on Facebook
Search this site

Newsletter

Get latest posts by email (No spam, only posts):

Enter your email address:

Delivered by FeedBurner

Categories
Monthly archives
February 2012
M T W T F S S
« Jan    
 12345
6789101112
13141516171819
20212223242526
272829  
Asterisk : Basic SOHO environment VoIP PABX configuration - September 4, 2010 by Stephane Kattoor

Asterisk is a free telephony software. I’m posting here sample commented configuration files for reference purposes, hoping they will help you get kickstarted if needed.

This config sets up :

  • SIP phones (for softphones or harware phones with SIP capabilities)
  • Voice mails
  • A few test phone numbers
  • Forwarding of calls to a SIP provider for outbound and incoming calls (from/to PSTN)

That should be plenty already for a SOHO environment !

Note to French readers : Si votre FAI est Free, cette configuration fonctionne pour passer / recevoir des appels via le SIP de Free (Freephonie).

read the entry »

Gentoo + OpenVPN : getting things started in the correct order - July 3, 2010 by Stephane Kattoor

I’m running an OpenVPN server, configured in bridging mode.

I had quite a bit of trouble getting OpenVPN to start after networking is up, but before the the bridge is setup so that the tap0 device, which is created by OpenVPN can be added to the bridge.

The solution is simpler : let the tap0 be automatically created and added to the bridge by Gentoo Linux, then start OpenVPN with a config file instructing to use the already created tap0 device.

This post shows the configuration snippets to get things started in the right order on Gentoo.
read the entry »

Bash / zsh : Using the history expansion - March 28, 2010 by Stephane Kattoor

One of the features of bash I’ve too long overlooked is its history expansion. In this post I’ll show a few examples to get a grip at it.
read the entry »

Perl : Counting occurences of IP addresses in Apache logs - March 2, 2010 by Stephane Kattoor

This Perl one-liner is intended to print the 10 most frequent client IP addresses in an Apache log file. It can easily be recycled to count anything, though.
read the entry »

AIX : Use sar to check cpu usage - January 30, 2010 by Stephane Kattoor

If you’re looking for CPU usage statistics and system performance on IBM AIX, sar might just be the tool your looking for. It’ll display information for 5 minutes intervals from midnight to current time. The output looks like this :
read the entry »

Perl+Twitter : Getting @mentions from command line - January 24, 2010 by Stephane Kattoor

This code snippet demonstrates how easy it is to collect your twitter @mentions in Perl, coupled with curl for simplicity.
read the entry »

Linux / Unix : Disk usage and identifying biggest files - January 17, 2010 by Stephane Kattoor

When working as a systems administrator, you’ll always end up having to solve a file system full error in a hurry. Here are a few commands and hints to help you get out of it quickly on a UNIX like system.
read the entry »

Monitoring batches in IT environment : efficiently using emails - January 9, 2010 by Stephane Kattoor

Sometimes automatically running scripts in production environments are simply monitored by emails. Those scripts may run on schedule or be triggered by events and they send an email (for example to the technical support level 1) upon completion of the job. The content of the email will then give information about the outcome of the execution of the script.

This posts lists a few ideas that you might find useful to implement when in such an environment.

read the entry »

Firefox (Linux) : “Middle-click on page loads URL” annoyance - January 3, 2010 by Stephane Kattoor

Firefox will load whatever URL is in the copy-paste buffer in the page if you middle click somewhere on a page. My mouse’s wheel also serves as the middle button, and I found it really annoying that when occasionally middle-clicking while scrolling the page, Firefox would try to load another page …

You can control this behaviour with this about:config property middlemouse.contentLoadURL. Set to true, the middle-click on the page will load the URL (if it is one) in the page, set to false it won’t.

Thanks Ayman !

Perl : Using the Finance::Quote module to get your stock prices - December 30, 2009 by Stephane Kattoor

Finance::Quote is a Perl module which can be used to obtain stock information from various internet sources. I thought I’d rather share this code snippet as an example showing how easy it is to use, before I turn it into a bloatware with an SQL backend to compute average price per share and what not :-)

So here is a simple snippet demonstrating how to get the price of a stock :
read the entry »

« old Postsnew Posts »ogtzuq
Who am I ?
Ads