It reads your torrents. Spit out magnet URIs.
$ ./magneto.rb magneto.rb.torrentResults in:
| Copyright (C) 2011 by Colin MacKenzie IV | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in |
| $:.unshift File.expand_path(File.dirname(__FILE__)) | |
| require "viz" | |
| run Sinatra::Application |
It reads your torrents. Spit out magnet URIs.
$ ./magneto.rb magneto.rb.torrentResults in:
| guard 'shell' do | |
| watch(/relation_tree_spec\.rb/) { `clear && ruby relation_tree_spec.rb` } | |
| end |
| #!/bin/bash | |
| # Usage: curl gist-raw-path | sudo sh | |
| mkdir -p /opt/bin | |
| curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose | |
| chmod +x /opt/bin/docker-compose |
| # coding: utf-8 | |
| require 'sinatra' | |
| require 'sinatra/streaming' | |
| set server: 'thin', connections: [] | |
| th = Thread.new{ | |
| while true | |
| puts "currently connection: #{settings.connections.size}" | |
| settings.connections.each{ |e| | |
| e << "yes\n" |
| # Generate a self-signed Certificate and a Private Key | |
| openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout pkey.pem -out cert.crt |
| # 1) Create your private key (any password will do, we remove it below) | |
| $ cd ~/.ssh | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |
If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:
In the evenings read the [Domain-Driven Design Quickly Minibook]{http://www.infoq.com/minibooks/domain-driven-design-quickly}. During the day watch following great videos (in this order):