Gl.ib.ly

(glibly); Just another techie blog.

Clearing long lived Flash cookies on Mac OS X

Posted by Tariq • Tuesday, March 16. 2010 • Category: Tidbits
Flash apps have cookies and they don't disappear when you clear your browser cookies. In the terminal type the following:
ls ~/Library/Preferences/Macromedia/Flash\ Player/#SharedObjects/*/


Surprised? You'll probably see a long list of sites you haven't visited anytime recently. To remove these creepy cookies do a:
rm -r ~/Library/Preferences/Macromedia/Flash\ Player/#SharedObjects/*/


The paranoid among you might want to create a script with a line like the following in there:
find ~/Library/Preferences/Macromedia/Flash\ Player/#SharedObjects/*/ -type d -mtime +7 -exec rm -r {} \;


This can be added to your daily cron task and will delete any cookie directories older than 7 days.
Defined tags for this entry: , , ,

ULTRA secure USB key

Posted by Tariq • Tuesday, March 16. 2010 • Category: Tidbits


What a find! Guess this saves you from a rubber hosing attack; unless, the enemies are incredibly stupid.

Post is stolen from Schneier.
Defined tags for this entry: , , , ,

Spooky facebook and friend suggestions

Posted by Tariq • Monday, March 15. 2010 • Category: Tidbits
Rant warning.

Now this is very spooky. A while back, about a year ago, I was asked to look into a fraud case on behalf of someone I know. How surprised was I to see one of the players in my FaceBook suggestion box.

I would, never, ever, dream of letting a service like Facebook have access to my mail account to enumerate possible friends. Are you nuts? Would you give me your email address and password? No you wouldn't. You wouldn't do it because I might invade your privacy. I might do bad things like publish embarrassing emails, send emails to your boss, and generally make your life a living nightmare for a short while. Yet, some people let Facebook into their email accounts willy-nilly!!!

I hear you, my email account my business. Well, no. An email I send you is half my business. You are the intended recipient. I understand that you can forward it on, print it, any number of things I might not like. But at least I can hold you responsible. So if you appear in friends list with no clear relationship vector I am coming for you. The rest of you cop-on.
Defined tags for this entry: , , , , ,

Grooveshark and Flash memory consumption

Posted by Tariq • Sunday, March 14. 2010 • Category: Rants
I am not sure what to say in this post without saying too much. Let me start with WTF is the point of flash? If you know a good reason please tell me because I can't think of a single reason why I would ever use Flash over another solution. Let's take the example that instigated this post. Grooveshark, a somewhat nice service. Do a search, get an inferior quality track, play it, save it on a play list for when you want to listen to inferior quality music later. Great. Now surely searching for music and playing it can't be that difficult, right? If true then why the frack, pardon my Caprican, does it use 142MB of memory and lock up my processor to accomplish this task?

Grooveshark and flash eating up my memory while locking up my processor

I'll stop now. Grrr. Sorry, there's more. Sometimes you hear things like "crappy flash = crappy flash developer" in which case there must be some sort of satanic level conspiracy going on. If ... *deep breath * ... OAO.
Defined tags for this entry: , , , , ,

Installing SNMPD (with remote access) on Debian 5/Lenny

Posted by Tariq • Wednesday, March 10. 2010 • Category: Tidbits
Today we're installing snmpd so that we can query our debian server from another remote server that will use snmp in alert scripts and pretty graphing software.

Snmpd installation is a little obtuse so here is how to do the installation on Debian Lenny.


  • Install snmpd with: sudo apt-get install snmpd

  • You should be using RCS/git/etc when editing system files at work. So use the appropriate techniques for checking in and out all config files. If you're a home user don't worry about this step; or, maybe you should. Muhahahaha! Eh, *cough*.

  • Open /etc/snmp/snmpd.conf and change to the following:
    # sec.name source community
    #com2sec paranoid default public
    #com2sec local localhost public
    com2sec local localhost mysecretcommunity
    com2sec readonly 192.168.XXX.XXX mysecretcommunity
    #com2sec readwrite default private


    Here mysecretcommunity is the uber secret name of your community. Change this to something other than public or mycommunity -- let common sense prevail. 192.168.XXX.XXX is the IP address of your remote server that will query snmpd.

  • Change /etc/default/snmpd so that it contains the following line:
    SNMPDOPTS=’-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid’ 

    Notice the lack of 127.0.0.1?

  • Save the file!

  • Restart snmpd with sudo /etc/init.d/snmpd restart.

  • Test snmpd locally:
    snmpwalk -Os -c mysecretcommunity -v 1 localhost system

  • Test snmpd remotely from 192.168.XXX.XXX:
    snmpwalk -Os -c mysecretcommunity -v 1 192.168.YYY.YYY system 


    Here 192.168.YYY.YYY is the IP address of the debian server hosting snmpd.

  • Verify test outputs look like:
    ...
    sysObjectID.0 = OID: netSnmpAgentOIDs.10
    sysUpTimeInstance = Timeticks: (1201) 0:00:12.01
    sysContact.0 = STRING: root
    sysName.0 = STRING: irsplsemos01
    sysLocation.0 = STRING: Unknown
    sysORLastChange.0 = Timeticks: (0) 0:00:00.00
    sysORID.1 = OID: snmpFrameworkMIBCompliance
    sysORID.2 = OID: snmpMPDCompliance
    sysORID.3 = OID: usmMIBCompliance
    sysORID.4 = OID: snmpMIB
    sysORID.5 = OID: tcpMIB
    sysORID.6 = OID: ip
    sysORID.7 = OID: udpMIB
    sysORID.8 = OID: vacmBasicGroup
    ...


  • Thats all folks!
    Defined tags for this entry: , , , , ,