Sources:
- https://howchoo.com/g/ote0ywmzywj/how-to-enable-ssh-on-raspbian-jessie-without-a-screen
- https://howchoo.com/g/ndy1zte2yjn/how-to-set-up-wifi-on-your-raspberry-pi-without-ethernet
cd /Volumes/boot
touch ssh
require 'nokogiri' | |
require 'net/http' | |
require 'uri' | |
url = 'http://oioioi.ru/mp3/skinhead/moonstomp.html' | |
regex = /\Ahttp:\/\/www\.skinhead\.ru\/mp3\/(.*\.mp3)\z/i | |
folder = File.dirname(__FILE__)+'/oioioi/' | |
Dir.mkdir(folder) unless Dir.exists?(folder) | |
def open(url) |