You are viewing [info]uncle_ziba's journal

uncle_ziba [entries|archive|friends|userinfo]
uncle_ziba

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Links
[Links:| RSS feed for this journal Adisons Disease Support Group of Northwest ]

FM Satellites (warning: high geekness content) [Sep. 5th, 2005|11:40 pm]
In the last month I learned about LEOs, Keplerian elements, doppler shift, and other interesting satellite related details. This resulted in a very exciting skill of being able to make contacts via amateur radio satellites. I've finished construction of a cheap 2m/70cm antenna, using bronze welding rods and a piece of wood acquired for about $8 total at a home improvement store. The antenna worked beautifully during several contacts through the AO-51 satellite. The most interesting one was with YY5FRB Leno (sp?) from Venezuela. It was very nice to hear him being concerned about the fate New Orleans after Katrina and sending best wishes.  A 7 mln square mile satellite footprint included the city of New Orleans, and may be somebody heard Leno and that gave them new hope to carry on.  Last night I also made a QSO with WI2W through the SO-50 which has very low power (250-mW) UHF transmitter. The satellite was loud and clear, although sometimes my 5W signal was being ran over by higher powered stations.  Now that the FM mode has been "conquered", the next step for me is to try the digital mode and login to the International Space Station satellite BBS.  Wouldn't that be exciting? The good old BBS - they are still alive and kicking on the Low Earth Orbit!  73! AA3YV
Link4 comments|Leave a comment

Checking out wwvb. [Feb. 11th, 2005|05:27 pm]
It seems that my little h/w bug came out of hibernation. Here is how to audio record and then disect a 60 kHz wwvb signal: http://polaris.umuc.edu/~vgokoyev/wwvb.html
LinkLeave a comment

A gigapixel image. [Nov. 14th, 2004|06:30 pm]
Pushing limits of hi-res imaging.

These people are looking out for something intersting at Black's Beach in San Diego. ;-)

People Watching
Link1 comment|Leave a comment

perlpodder script [Oct. 18th, 2004|01:19 am]
Here is another quick and dirty perl script to download podcasts.  It checks for new Podcast enclosures in the RSS feeds and downloads them (using wget) in the background.  This was inspired by bashpodder , but has some minor improvements/error checks, and it backgrounds the wget process so multiple downloads happen at the same time.  Use at your own risk :-).  Coming up in next release: LWP Parallel robot instead of wget, more intelligent caching, and much more.
Link1 comment|Leave a comment

QoS script for Linksys WRT54G [Sep. 22nd, 2004|07:42 pm]


#!/bin/ash
#
# adapted from http://lartc.org/howto/
# adapted by jzaw 04 Aug 2004
# adapted by uncle_ziba from jzaw on Sept 22,2004
# works on Alchemy pre 5.3 with fwbuilder generated policy/nat
# ADSL/Verizon 128k advertised uplink

 
 IPT=/usr/sbin/iptables 
 IP=/usr/sbin/ip 
 TC=/usr/sbin/tc 

# Specify interface device, Queue length, and MTU size 
# ((qlen * mtu) / rate) / 1024 = time 
#DEV=vlan1		# vers 2.x WRT54g h/w
#DEV=eth1		# vers 1.0 1.1 WRT54g h/w
 DEV=ppp0		# dialled via pppoe to my ADSL provider
 OUT_QLEN=30 
#MTU=1500		# need to sort out ... currently jzaws MTU is 1460 

# Set to ~80% of tested maximum bandwidth - jzaw has 256kbit/s trial and error settled on 224k for UPLINK
 UPLINK=112
 P2PC=96 # upload ceiling For p2p stuff

# specify class rates - We grant each class at LEAST its "fair share" of 
# bandwidth. this way no class will ever be starved by another class. 
# these are the minimum guarranteed rates devoted to each class 
# the sum of these should be no more than $UPLINK
 UPLINK_1_R=64  # ssh and other interactive traffic
 UPLINK_2_R=32  # Interactive / control pkts ftp 21 carracho 6700  ssh 22 outbound httpd 80 - allows fast browsing of my server
 UPLINK_3_R=8  # Everything else not other wise specified 
 UPLINK_4_R=8  # P2P bulk data ftp 20 carracho 6701 

# Each class is also permitted to consume all of the available bandwidth 
# if no other classes are in use. 
# these are the max rates permitted for each class 
# set lower rates if you want to cap a particular class
 UPLINK_1_C=${UPLINK} 
 UPLINK_2_C=${UPLINK} 
 UPLINK_3_C=${UPLINK} 
 UPLINK_4_C=${P2PC}

# remove old qdiscs 
 $TC qdisc del dev $DEV root 2> /dev/null > /dev/null 
 $TC qdisc del dev $DEV ingress 2> /dev/null > /dev/null 

# reset iptables rules 
 $IPT -t mangle -D POSTROUTING -o $DEV -j QOS_OUT 
 $IPT -t mangle -F QOS_OUT 
 $IPT -t mangle -X QOS_OUT 
 $IPT -t mangle -F PREROUTING

# mark packets coming from br0
# you may have to comment these out if your br0 packets already marked
 $IPT -t mangle -A PREROUTING -i br0 -j RETURN -m mark ! --mark 0x0
 $IPT -t mangle -A PREROUTING -i br0 -j MARK --set-mark 0x100

# set outgoing queue length 
 $IP link set dev $DEV qlen ${OUT_QLEN} 

# Create HTB root qdisc with an htb default of 40 
 $TC qdisc add dev $DEV root handle 1: htb default 40 

# create main rate limit class 
 $TC class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}kbit 

# create leaf rate limit classes 
 $TC class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK_1_R}kbit ceil ${UPLINK_1_C}kbit prio 0 
 $TC class add dev $DEV parent 1:1 classid 1:20 htb rate ${UPLINK_2_R}kbit ceil ${UPLINK_2_C}kbit prio 1 
 $TC class add dev $DEV parent 1:1 classid 1:30 htb rate ${UPLINK_3_R}kbit ceil ${UPLINK_3_C}kbit prio 2 
 $TC class add dev $DEV parent 1:1 classid 1:40 htb rate ${UPLINK_4_R}kbit ceil ${UPLINK_4_C}kbit prio 3 

# attach qdisc to leaf classes - here we at SFQ to each priority class. SFQ 
# insures that within each class connections will be treated (almost) fairly. 
 $TC qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10 
 $TC qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10 
 $TC qdisc add dev $DEV parent 1:30 handle 30: sfq perturb 10 
 $TC qdisc add dev $DEV parent 1:40 handle 40: sfq perturb 10 

# add QOS_OUT chain to the mangle table in $IPT - this sets up the table 
# we use to filter and mark packets. 
 $IPT -t mangle -N QOS_OUT 
 $IPT -t mangle -I POSTROUTING -o $DEV -j QOS_OUT 

############################ 
# outgoing ack rule -- for ack packets smaller than 64 bytes
# it must be added using tc filter instead of iptables for now because the 
# length module appears to be broken and/or missing from the wrt54g iptables
# jzaw set ack pkts with top priority ... downloads MUST continue at full speed otherwise set 1:20
 
  $TC filter add dev $DEV parent 1:0 protocol ip prio 1 u32 \
   match ip protocol 6 0xff \
   match u8 0x05 0x0f at 0 \
   match u16 0x0000 0xffc0 at 2 \
   match u8 0x10 0xff at 33 \
   flowid 1:10
#
############################

# SEE LAYER-7 FILTER NEAR EOF

# outgoing VOIP rules - special
# $IPT -t mangle -A QOS_OUT -p tcp --sport 5060:5064 -j CLASSIFY --set-class 1:10 
# $IPT -t mangle -A QOS_OUT -p tcp --dport 5060:5064 -j CLASSIFY --set-class 1:10 
# $IPT -t mangle -A QOS_OUT -p udp --sport 5060:5064 -j CLASSIFY --set-class 1:10 
# $IPT -t mangle -A QOS_OUT -p udp --dport 5060:5064 -j CLASSIFY --set-class 1:10 
  
# defaults for outgoing interactive ports rules 
#
 
# outgoing ftp control rule
 $IPT -t mangle -A QOS_OUT -p tcp --sport 21 -j CLASSIFY --set-class 1:20 
 $IPT -t mangle -A QOS_OUT -p tcp --dport 21 -j CLASSIFY --set-class 1:20
 
# outgoing irc chat rule
 $IPT -t mangle -A QOS_OUT -p tcp --sport 6667 -j CLASSIFY --set-class 1:20 
 $IPT -t mangle -A QOS_OUT -p tcp --dport 6667 -j CLASSIFY --set-class 1:20
 
# outgoing webserver rules and allows my fast browsing
 $IPT -t mangle -A QOS_OUT -p tcp --sport 80 -j CLASSIFY --set-class 1:20 
 $IPT -t mangle -A QOS_OUT -p tcp --dport 80 -j CLASSIFY --set-class 1:20 
 $IPT -t mangle -A QOS_OUT -p tcp --sport 443 -j CLASSIFY --set-class 1:20 
 $IPT -t mangle -A QOS_OUT -p tcp --dport 443 -j CLASSIFY --set-class 1:20 
 $IPT -t mangle -A QOS_OUT -p tcp --sport 8080:8081 -j CLASSIFY --set-class 1:20 
 $IPT -t mangle -A QOS_OUT -p tcp --dport 8080:8081 -j CLASSIFY --set-class 1:20 

# cheap outgoing ping rule 
# we want ICMP unreachables to get out FAST, especially if MTU is < 1500
 $IPT -t mangle -A QOS_OUT -p icmp -j CLASSIFY --set-class 1:10 

# outgoing DNS rule 
 $IPT -t mangle -A QOS_OUT -p udp --dport domain -j CLASSIFY --set-class 1:20 

# outgoing ssh connection rule 
# I really like responsive terminal windows!
 $IPT -t mangle -A QOS_OUT -p tcp --sport ssh -j CLASSIFY --set-class 1:10 
 $IPT -t mangle -A QOS_OUT -p tcp --dport ssh -j CLASSIFY --set-class 1:10 

# outgoing irc dcc connection rule this can give up all is b/w if necessary
 $IPT -t mangle -A QOS_OUT -p tcp --sport 10010:10020 -j CLASSIFY --set-class 1:40 
 $IPT -t mangle -A QOS_OUT -p tcp --dport 10010:10020 -j CLASSIFY --set-class 1:40 
 $IPT -t mangle -A QOS_OUT -p tcp --sport 10110:10120 -j CLASSIFY --set-class 1:40 
 $IPT -t mangle -A QOS_OUT -p tcp --dport 10110:10120 -j CLASSIFY --set-class 1:40 

# outgoing ftp data rule - low prio
 $IPT -t mangle -A QOS_OUT -p tcp --sport 20 -j CLASSIFY --set-class 1:40 
 $IPT -t mangle -A QOS_OUT -p tcp --dport 20 -j CLASSIFY --set-class 1:40
 
# outgoing iChat/AIM rules -- these are close to last b/c they use relatively costly layer 7 matching ---- HI PRIORITY
# these only kick in once the protocol is recognised - takes a moment or two and usually only at the beginign of a stream
# $IPT -t mangle -A QOS_OUT -m layer7 --l7dir /etc/l7-protocols/protocols --l7proto aim -j CLASSIFY --set-class 1:10 

# outgoing bittorrent connection rule this can give up all is b/w if necessary
#$IPT -t mangle -A QOS_OUT -p tcp --sport 6881:6999 -j CLASSIFY --set-class 1:40 
#$IPT -t mangle -A QOS_OUT -p tcp --dport 6881:6999 -j CLASSIFY --set-class 1:40 

# outgoing P2P rules -- these are close to last b/c they use relatively costly layer 7 matching 
# these only kick in once the protocol is recognised - takes a moment or two and usually only at the beginign of a stream
 $IPT -t mangle -A QOS_OUT -m layer7 --l7dir /etc/l7-protocols/protocols --l7proto bittorrent -j CLASSIFY --set-class 1:40 
 
# outgoing default rule - unmarked packets get schleped into second to lowest prio 
 $IPT -t mangle -A QOS_OUT -m mark --mark 0 -j CLASSIFY --set-class 1:30 

# All done, exit ok 
 exit 0 






Link2 comments|Leave a comment

Netflix RSS feed [Aug. 17th, 2004|04:55 pm]
Adopted Stupid Simples script to get my Netflix Queue in Rss Feed.  Had to changed regexp slightly in the perl parser to get a clean xml file

[update]: Netflix listened to the community
Link1 comment|Leave a comment

(no subject) [Aug. 15th, 2004|09:22 pm]
[Current Mood |indescribable]

Dubya the Fabulous : Dubya the Geographer : Dubya the Grammarian : Dubya the Historian
LinkLeave a comment

Stats [Aug. 9th, 2004|10:36 pm]
Wow, I may be too old for this (see Age Distribution).  When *I* was 18 we didn't have LiveJournals (and we walked to school up hill both ways).
Link1 comment|Leave a comment

Inducing is bad? [Aug. 9th, 2004|03:26 pm]
[Current Mood |rushedrushed]
[Current Music |Steely Dan - Reelin' in the Years]

Will Bittorrent be the best and the last known P2P protocol, if this bill passes?
LinkLeave a comment

Sharpreader [Aug. 8th, 2004|12:12 am]
[Current Mood |weirdweird]
[Current Music |Van Halen - Dave Davies - You Really Got Me]

I can't believe I was wasting so much time by checking my favorite blogs using a browser bookmark (or worse, by typing in the URL in the browser) only to find that there are no new posts. Today after reading this entry I started using Sharpreader to get RSS news feeds -- it's awesome, man!
LinkLeave a comment

navigation
[ viewing | most recent entries ]
[ go | earlier ]