Skip to content

Instantly share code, notes, and snippets.

@Fuzion24
Last active July 7, 2023 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Fuzion24/6dd7552a1c594911416f to your computer and use it in GitHub Desktop.
Save Fuzion24/6dd7552a1c594911416f to your computer and use it in GitHub Desktop.
A simple file server to serve up an APK
wget https://gist.githubusercontent.com/Fuzion24/6dd7552a1c594911416f/raw/server.rb
wget https://s3.amazonaws.com/uploads.hipchat.com/35420/441986/5xRGtuTBdBnuisN/twitter.apk
gem install sinatra --no-rdoc
ruby server.rb ./twitter.apk
require 'rubygems'
require 'sinatra'
get '/*' do
send_file(ARGV[0])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment