Tag Archives | Linux

Software.MP – GEODist

Overview GEODist is a console based multi-platform(MP) distance calculator. Using the haversine formula it will calculate the great-circle distances between two points on a sphere from their longitudes and latitudes. Please feel free to drop us a line with any comments or suggestions. Thanks Features: Quick calculation coded in ASM. Calculate using the haversine formula. Option to […]

Continue Reading 0

SparkleShare + Dashboard

SparkleShare: # Run all of the following commands as the root su # Fetch the Dazzle script curl https://raw.github.com/hbons/Dazzle/master/dazzle.sh \ –output /usr/bin/dazzle && chmod +x /usr/bin/dazzle # Run the initial setup dazzle setup # Link SparkleShare clients using their link codes (found # on the client in the SparkleShare folder) dazzle link # Create a […]

Continue Reading 0

Driftnet x64 Fix

apt-get source driftnet START COPY BELOW LINE ———https://bugzilla.redhat.com/attachment.cgi?id=134667——— — driftnet-0.1.6/image.c 2002-07-09 20:26:41.000000000 +0100 +++ driftnet-0.1.6.new/image.c 2006-08-22 21:14:38.000000000 +0100 @@ -15,29 +15,20 @@ static const char rcsid[] = “$Id: image. /* memstr: * Locate needle, of length n_len, in haystack, of length h_len, returning NULL. – * Uses the Boyer-Moore search algorithm. Cf. – * http://www-igm.univ-mlv.fr/~lecroq/string/node14.html […]

Continue Reading 0

Huawei Set Modem Mode 3G/GPRS

To set the operating mode of Huawei 3G sticks, use these AT commands (at your own risk). Apparently the setting is saved and used in the future as well. Any : AT^SYSCFG=2,0,3FFFFFFF,2,4 2G only : AT^SYSCFG=13,1,3FFFFFFF,2,4 3G only : AT^SYSCFG=14,2,3FFFFFFF,2,4 2G preferred : AT^SYSCFG=2,1,3FFFFFFF,2,4 3G preferred : AT^SYSCFG=2,2,3FFFFFFF,2,4 To set the band used, you could […]

Continue Reading 0

Perl – Send Email via Secure Mail Server

#!/usr/bin/perl -w # Modules Needed: # apt-get install libssl-dev # perl -MCPAN -e shell # install Net::SSLeay # install IO::Socket::SSL # install Authen::SASL # install Net::SMTP::SSL use Net::SMTP::SSL; sub send_mail { my $to = $_[0]; my $subject = $_[1]; my $body = $_[2]; open(MYINPUTFILE, “<$ARGV[$0]“); # open for input my(@lines) = ; # read file […]

Continue Reading 0

Broadvoice – Fastest proxy switcher for asterisk.

#!/bin/bash curhip=(`cat /etc/hosts | grep sip.broadvoice.com | awk ‘{ print $1 }’`) echo “Current IP: $curhip” chkip=”(`ping -c 2 sip.broadvoice.com`)” curiplow=(`echo $chkip | grep PING | grep -Eo ‘\b[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\b’ | uniq`) curlow=(`echo $chkip | grep -o ‘time\s[0-9]\+[^ms]‘ | awk ‘{ print $2 }’`) function getnewlow { echo “Testing: $1″ chkip=”(`ping -c 2 $1`)” curip=(`echo $chkip […]

Continue Reading 0

Change the speed and duplex settings of an Ethernet card

# apt-get install ethtool net-tools # ethtool eth0 or # mii-tool eth0 add a pre-up line to /etc/network/interfaces. Something like this: iface eth0 inet static pre-up /usr/sbin/ethtool -s eth0 speed 1000 duplex full autoneg off address … OR Debian init script: # sudo vi /etc/init.d/100Mbs #!/bin/sh ETHTOOL=”/usr/sbin/ethtool” DEV=”eth0″ SPEED=”100 duplex full” case “$1″ in start) […]

Continue Reading 0

Powered by recycled bites and bytes.