>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
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
class Singleton | |
@@instance : Nil | Singleton | |
@@instance = nil | |
def self.new | |
@@instance ||= Singleton.allocate.tap(&.initialize) | |
@@instance.as(Singleton) | |
end | |
end |
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
brew tap homebrew/versions | |
brew install v8-315 | |
gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
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
module Kernel | |
def require_relative_with_tco file | |
absolute_path = File.absolute_path file, __dir__ | |
realpath = File.realpath "#{absolute_path.chomp '.rb'}.rb" | |
if $LOADED_FEATURES.include? realpath | |
false | |
else | |
RubyVM::InstructionSequence.compile_file( | |
realpath, |
- This script lets you set up and use a temporary DigitalOcean droplet to download torrent files.
- Once downloaded, they can be streamed down to your local machine.
- This uses
transmission-cli
for the torrent client, andnginx
to serve files.
- This assumes that you have a DigitalOcean account and tugboat set up, as well as
seedbox-setup.sh
present in the current directory.