Fixed Gear Calculator

This is a little project I did in an afternoon. I wasn’t really happy with the way any of the other ones worked. They were all too complex to fill out, or gave bad out, or were just programmed poorly, etc, etc.

So, like so many things, I couln’t find what I wanted, so I made my own. Just fill it out the fields and hit Calculate.

Note: This is is like uber version 1. I’ve got some more features planned for it soon :)

Demo

GeekTool Scripts

UPDATE 12/18/09: New link added
UPDATE 12/19/09: v0.7 Release. Includes Network monitoring, bugfixes.

This are an ever growing compilation of scripts and code snippets that I have written or collected in a format that’s easy to understand and use. If you need any help feel free to email me at nic@nicinabox.com.

I encourage you to checkout some of the Desktop screenshots on Flickr (some are very nice!) for ideas.If you have a script or something clever you’d like to add to this collection, please contact me.

Current Version: 0.7 (12/19/09)

  HUD-latest.zip (48.6 KiB, 2,175 hits)

Includes:

  • Network info
  • Unread Gmail
  • Uptime
  • Calendar (with current day denoted)
  • Weather
  • System Stats
  • Network monitoring

Network Info

ifconfig en1 | grep "inet " | awk '{print $2}'
161.45.27.132

Unread Gmail

chkgmail
4 Unread

Uptime

uptime | awk '{print "Uptime : " $3 " " $4 " " $5 }' | sed -e 's/.$//g'
Uptime : 1 day, 17:54

Calendar

cal | awk -v cday=`date "+%d"` '{ fill=(int(cday)>9?"":" "); \
a=$0; sub(" "fill int(cday)" ","["fill int(cday)"]",a); print a }'
     March 2009
Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

Weather

weather -cm 37130
55F | 81F
Fair
weather 37130
80F

System Stats

top -orsize -FR -l1 | grep % | grep -v Load | grep -v COMMAND | cut -c 7-19,64-69
firefox-bi     281M
kernel_tas     160M
iTunes         113M
WindowServ      63M
Finder          61M
Quicksilve      56M
mds             47M
Last.fm         42M
ForkLift        37M
TextMate        31M
Font Book       27M
YouControl      21M
GrowlHelpe      19M
coreservic      18M
GeekTool        16M
Spotlight       14M
mysqld          12M
ATSServer       12M
Dock            12M

Recent music Plays

curl -s http://localhost/tunes.php
4:58 Sigur Rós : Untitled #6 Reversed
4:56 Talkdemonic : Indian Angel
4:46 Caspian : Moksha
4:42 The Album Leaf : Another Day
4:35 A Silver Mt. Zion : For Wanda
4:30 Mogwai : I Know You Are but What Am I
4:17 Mono & World's End Girlfriend : Palmless Prayer / Mass Murder Refrain (#2)
3:55 Godspeed You! Black Emperor : Motherfucker=Redeemer (Part One)
3:52 Rachel's : The Last Light
3:49 Set Fire to Flames : Small Steps Against Inertia/Echo Of A Dead

Web 2.0 Color Palette

This is a Web 2.0 color palette that I’ve compiled in hopes of making having quick access to great colors. Feel free to use for any of your needs

>> Demo

Recent Last.fm Plays

This script uses the Last.fm API to get your 10 most recent played tracks. It dynamically displays and links to last.fm

Demo

Password Generator

Introduction – the problem

Once every while, you encounter a website, which has interesting stuff available to you as a registered user only. No big deal, you just create an account and there you go. However, over time, the many, many user accounts with their passwords become hard to remember. You’ll just forget the cleverly crafted variation eventually, to find you struggeling again with yet another “forgot password” service variation.

A common solution is to have just one password for all of those sites, which are considered of low to medium risk if broken into. The problem with this is, that a rogue site owner might go out and impersonate as you, once they find out about other sites you may hang out with the same account. A little “social engineering”, and you can be in big trouble.

The solution

Now there is nothing wrong with a single, strong password, as long as it is not used literally. Enter the concept of a Master Password that generates a strong password, unique for every web site where it is used.

How it works

The password generator takes your master password and combines it with the domain name using the SHA1 algorithm created by the NSA. The, for added security certain letters are converted to uppercase

Credits

Inspiration for this project here

Demo

Try it