opc blog RSS

Archive

Jun
8th
Mon
permalink

A Bash script for generating configuration files for Cisco 7860 phones with Asterisk

#define variables

MACADDRESS=$1

DISPLAYNAME=$3

DISPLAYNAME1=$4

DISPLAYNAME2=$5

EXTENSION=$2

FILENAME=”SIP$MACADDRESS.cnf”

FILENAME2=”SEP$MACADDRESS.cnf.xml”

#output

echo “line1_name:"$2"” 1>$FILENAME

echo “line1_authname:"$2"” 1»$FILENAME

echo “line1_shortname:"$2"” 1»$FILENAME

echo “line1_password:"yourpasswordhere"” 1»$FILENAME

echo “line1_displayname:"$2 "” 1»$FILENAME

echo “phone_label:"$3 $4  "” 1»$FILENAME

echo “user_info : none” 1»$FILENAME

echo “remote_party_id : 1” 1»$FILENAME

echo “semi_attended_transfer : 0” 1»$FILENAME

echo “speed_line2 : ""” 1»$FILENAME

echo “speed_label2 : ""” 1»$FILENAME

echo “speed_line3 : ""” 1»$FILENAME

echo “speed_label3 : ""” 1»$FILENAME

echo “speed_line4 : ""” 1»$FILENAME

echo “speed_label4 : ""” 1»$FILENAME

echo “speed_line5 : ""” 1»$FILENAME

echo “speed_label5 : ""” 1»$FILENAME

echo “speed_line6 : ""” 1»$FILENAME

echo “speed_label6 : ""” 1»$FILENAME

echo “line2_name : ""” 1»$FILENAME

echo “line3_name : ""” 1»$FILENAME

echo “line4_name : ""” 1»$FILENAME

echo “line5_name : ""” 1»$FILENAME

echo “line6_name : ""” 1»$FILENAME

echo “line2_authname : ""” 1»$FILENAME

echo “line3_authname : ""” 1»$FILENAME

echo “line4_authname : ""” 1»$FILENAME

echo “line5_authname : ""” 1»$FILENAME

echo “line6_authname : ""” 1»$FILENAME

#output load file

echo “<device>” 1>$FILENAME2

echo “<loadInformation model=”IP Phone 7960”>P0S3-08-11-00</loadInformation>” 1»$FILENAME2

echo “</device>” 1»$FILENAME2

scp $FILENAME root@10.0.0.10:/tftpboot

scp $FILENAME2 root@10.0.0.10:/tftpboot

Apr
1st
Wed
permalink

this is the future of open source systems management

http://wiki.opscode.com/display/chef/Getting Started

with chef…you create a chef repository which stores all of the cookbooks you’ve created.

A cookbook is everything that would need to be done to provision and prepare a server from bare metal to applicaiton deployed with capistrano.

Feb
1st
Sun
permalink
Jan
18th
Sun
permalink

http://prawn.majesticseacreature.com/

Finally PDF generation that doesnt suck.

Jan
14th
Wed
permalink

A Rails thankyou

Steve…Thanks. your article is awesome.

When you need to use a SSL encrypted form on a non SSL page

http://siannopollo.blogspot.com/2007/08/rails-and-ssl-https.html

Jan
8th
Thu
permalink

Build your stack such that it can be deployed automatically. The greater the degree of automation the greater the long term benefit

http://github.com/crafterm/sprinkle/tree/master

permalink

Facinating look at the design process of the brightest internet geniuses out there http://www.37signals.com/svn/posts/1496-design-decisions-the-new-highrise-signup-chart#extended

Jan
7th
Wed
permalink

All software projects should have a CI server.

http://ci.rubyonrails.org/

Jan
6th
Tue
permalink

http://spattendesign.com/projects/synching-your-amazon-s3-asset-host-using-capistrano

this is so money…i can add a capistrano task to automatically sync my rails public directory to s3 to serve up static assets.

Dec
30th
Tue
permalink

GIT Tutorials AMAZING

These are the best git tutorials i’ve ever seen…and they’re free. http://www.gitcasts.com/episodes Git interactive adding is now blowing my mind.