commands I have issued
Throttling Flickr Uploads
I’m part way through uploading a substantial backlog of photos (11,000+) to Flickr.
I had started out trying to go through them and decide which were worth uploading and which weren’t, but that approach was taking far too much time. I needed some help. So I decided that I’d upload all of them and open them up to my family to help with the sorting - asking them to tag the photos with the people in them and also use tags like "TODELETE" to mark those that are just noise and should be thrown out.
I could have opened the net wider, but there are photos of my kids and other people’s kids in there so just family it is.
I’m using phpFlickr to batch upload photos to Flickr and my script uploads as fast as the bandwidth will allow, though admittedly single-threaded. This meant that I couldn’t use it at work, at least not with a clear conscience, so have been uploading from home only. Those 8+ hours a day in the office have been bugging me though, so I was looking for a way to have photos uploading without having a detrimental impact on our connection.
A little googling found an article on bandwidth throttling in OSX that showed the basics of using ipfw to limit transfer rates. A bit of tweaking and I ended up with
sudo ipfw pipe 1 config bw 128KByte/s
sudo ipfw add 1 pipe 1 dst-ip 68.142.214.24
This limits the upload traffic to api.flickr.com to 128KB/s and means I’m not going to cause anyone a problem.
Sweet.
“Wait, wait, no, not now”… and “as you were”
ps -ax | grep getFromUris | grep -v grep | awk ‘{ print $1 }’ | xargs kill -STOP
ps -ax | grep getFromUris | grep -v grep | awk ‘{ print $1 }’ | xargs kill -CONT
Show me what I can do
ls -l | grep “^[^d]..x” | awk ‘{ print $8 }’ | sort
Technorati Tags: command-line, bash
Average is Junior High…
for BLOG in $( curl http://talisians.com/opml.xml 2>/dev/null | sed -n -e “s/.*xmlUrl=\”http:\/\/\(.*\)\”\/>/\1/p” ) ; do echo $BLOG; curl http://www.criticsrant.com/bb/readinglevel/readinglevelrating.aspx?url=$BLOG 2>/dev/null | sed -n -e “s/<img id=\”imgBadge\” src=\”\/bb\/readinglevel\/img\/.*.jpg\” alt=\”\(.*\)\” border=\”0\” \/>/\1/p”; done
achieve world peace
svn st | grep “^C” | awk ‘{ print $2 }’ | xargs svn resolved
Technorati Tags: command-line, subversion, svn
get rid of things I know nothing about
svn st –ignore-externals | grep “^?” | awk ‘{ print $2 }’ | xargs rm -rf
Technorati Tags: bash, command-line, svn, subversion
Search
Right Now (ish)
- /me has gone home, feeling all coldy. must be man-flu 2 days ago
- #mashlib08 paul bevan from nlw telling us about cool stuff they're trying to do 6 days ago
- @andypowe11 I can haz duster slippers? http://tinyurl.com/5v6ds8 for teh kittens, k thx bye in reply to andypowe11 6 days ago
- More updates...
Categories
- .Net Technical
- Blog on Blog
- commands I have issued
- Enterprise Architecture
- event
- Fiction Book Review
- Food
- Interaction Design
- Internet Social Impact
- Internet Technical
- IP Law
- Library Tech
- Music
- New Toy
- Non-Fiction Book Review
- Other Technical
- Personal
- Random Thought
- Resourcing
- Security And Privacy
- Semantic Web
- Software Business
- Software Engineering
- Talis Technical
- Uncategorized
- Working at Talis
- [grid::blogpaper]
- [grid::fatherhood]
Archive
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- December 2007
- November 2007
- October 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- September 2006
- August 2006
- June 2006
- February 2006
- January 2006
- December 2005
- November 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
- December 2003
- November 2003
- August 2003
- July 2003
- June 2003
- May 2003
- March 2003
- January 2003
- May 2002
- March 2002
- August 2001
- May 2001
- April 2001
- January 2001
- December 2000
- November 2000
- December 1999
- November 1999
- July 1999