This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Based on https://gist.github.com/scoates/5935435 | |
for u in $*; do | |
echo $u | |
curl -sL http://twitter.com/$u > /tmp/tw.html | |
cat /tmp/tw.html | grep '<title' | perl -pe 's/.*?>//;s/ \(.*//' | |
cat /tmp/tw.html | grep ProfileAvatar-image | head -n1 | perl -p -e's/.*?http/http/;s/".*//' | |
cat /tmp/tw.html | grep ProfileHeaderCard-bio -a2 | tail -n1 | perl -pe 's/.*?>(.*)<\/p>/\1/;s/<.*?>//g' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# hook into inotify to watch a file, and generate | |
# diffs for changes in real-time | |
# | |
# requires inotify-tools (apt-get install inotify-tools) | |
# | |
# @author Filipe Dobreira <filipe.dobreira@ez.no> | |
usage() { | |
echo "Usage:" | |
echo " in-diff <file>|help" |