Tweeting From The Shell The Easy Way

There are many reasons you might want to tweet from the shell. Mine is that I want to be able to send one-liners in to evernote directly from terminal. I looked it up and found that since Twitter has updated to using Oauth for their API this has become much more diffucult. But there is … [Read more…]

Bash Script to Generate Passwords

Hey just a quick tip.  I created a small script for generating passwords using http://makeagoodpassword.com/. The syntax is: getpass Gets a good password from makeagoodpassword.com getpass simple Gets a simple password from makeagoodpassword.com Here is the code: #/bin/bash if [ “$1” == “simple” ]; then wget -q -O – http://www.makeagoodpassword.com/password/simple/ else wget -q -O – … [Read more…]

The Social Graph (Fun and Profit) Part 1: Facebook Token

I’ve been experimenting with Facebook API. First step in using it is to get a token. This requires some user interaction. I started with code from Mining The Social Web. You can download the login script here: https://github.com/ptwobrussell/Mining-the-Social-Web/blob/master/python_code/facebook__login.py I made one modification. I’m using Python for Cygwin so the webbrowser class doesn’t really work. Instead … [Read more…]

Javascript Fun

I was thinking of not posting this because it looks and works a lot like those stupid “see who views your FB profile” worms, but if you know javascript you can tell that it’s not doing anything malicious, just fun 😉 Paste this in to the address bar: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; … [Read more…]