Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Latest commit

 

History

History
54 lines (31 loc) · 2.9 KB

README.textile

File metadata and controls

54 lines (31 loc) · 2.9 KB

Twitter Fileshare

A lightweight Ruby Sinatra app to seed files to Twitter.

Why Twitter Fileshare

Governments and private organizations continue to lock down legitimate file sharing through raids, law suits, and “consumer protection” laws & treaties, mainly targeting those who pirate movies, music, and software through BitTorrent and other underground distribution methods. But anyone that knows just a little bit about technology knows file sharing can be done through any medium. This began with Usenet groups, where the binary data was converted to text characters and reprocessed for download. This began one of the first methods of photo sharing. Facsimile machines follow a similar method of dissemination of binary data. And even ham radio used teletype to transmit photos across long distances by converting photos to ASCII before transmission.

Today, we have advanced systems built for sharing files: websites, FTP, BitTorrent, email, CD/DVDs, hard drives. We also have many systems today that mirror prior technology of Usenet newsgroups, paging devices, IRC chat rooms, and IM status messages, of which the largest modern equivalent today is Twitter.

If Twitter is today’s Usenet and Usenet was used for file sharing years ago, why can’t Twitter be utilized today for file sharing?
Seeding Files to Twitter

Project by Greg Leuch and Theo Watson. A Free Art & Technology project.

How to Install

Installation of Twitter Fileshare is straightforward by following the instructions below.

  • Create a new Twitter account. http://twitter.com/signup
  • Create a Twitter application. http://twitter.com/apps/new
    • Set Application Type to “Browser”.
    • Callback URL is http://yourdomain.com/admin/auth
    • Access Type is “Read & Write Access”
    • Check the box for using Twitter for login.
  • Update the settings.yml file’s Twitter oAuth token and secret with the one Twitter created for your new app.
    • Be sure to create a different launch code and replace that code in the cron job below!
  • Restart your app.
  • Sync your Twitter account to the application by going to the admin section (http://yourdomain.com/admin)
  • Create folder specified for files in your settings.yml and add files.
  • Setup a cron job to run every minute.
  • Go into the admin section and queue up the file you want sent via the Twitter account(s) you have synced.
  • Watch the Twitter fileshare magic happen!

To-do

  • Make downloadable installer
  • Make true Twitter fetching system

Notes

  • Twitter allows a max of 1,000 tweets per account per day. Don’t be alarmed if your account stops tweeting during certain parts of the day.
  • With DataMapper > 0.10.0, you may get a NoMethodError on ‘find_by_sql’. To fix, install the dm-ar-finders gem.