by admin | Jun 12, 2011 | Networking, OSX
Remove the “Last login” message from the Terminal touch .hushlogin Enable/Disable Firewall defaults write /Library/Preferences/com.apple.alf globalstate -int 1 0 = off 1 = on for specific services 2 = on for essential services launchctl load -w...
by admin | Jun 1, 2011 | iPhone
1. Create a ‘dummy’ file called photoShutter.caf. 2. In the iPhone file sytem, navigate to /System/Library/Audio/UISounds 3. Replace the photoShutter.caf file with the ‘dummy’ file you created Now the camera shutter will not make a...
by admin | Apr 22, 2011 | Bash, Networking, Streaming
#!/bin/bash mpixW=250 mpixH=300 if [ “x`which identify`” != x ] ; then echo `which identify` found! echo Tossing images less than $mpixW pixels. while true ; do read img imgType=$( expr `identify -format ‘%e’ “$img”` ) if [...
by admin | Apr 16, 2011 | Debian
apt-get iinstall apt-file apt-file update apt-file search FILENAME
by admin | Apr 16, 2011 | Debian, Networking
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...
by admin | Apr 6, 2011 | Bash
echo “Please wait while I sort your files by date.” for a in *.jpeg; do date -r $a +%y%m%d >/dev/null && { dof=$(date -r $a +%y%m%d) if [ ! -d $dof ]; then mkdir $dof fi mv $a $dof/ }...
by admin | Mar 21, 2011 | Huawei
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...
by admin | Mar 18, 2011 | Debian, Development, Perl
#!/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 =...
by admin | Mar 15, 2011 | Debian, Hardware, Linux, USB
Site: http://www.gniibe.org/ac-power-by-usb/ac-power-control.html Source: http://www.gniibe.org/software/ apt-get install libusb-dev gcc -o hub-ctrl hub-ctrl.c -lusb lsusb Usage: hub-ctrl [{-h HUBNUM | -b BUSNUM -d DEVNUM}] \ [-P PORT] [{-p [VALUE]|-l [VALUE]}]...
by admin | Jan 27, 2011 | Asterisk, Linux, VoIP
#!/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...