After purchasing a bare metal server and receiving it's IP address and password, the first thing you need to do is connect to it using SSH.
| #!/bin/bash | |
| # Configuration | |
| DEVICE=/dev/ttyACM0 | |
| BAUD=9600 | |
| SEND="" | |
| FOLLOW=0 | |
| RECEIVE=0 | |
| HELP=0 |
| # Remove stopped images | |
| echo "Removing unused containers..." | |
| if [[ -z $(docker ps -a -q) ]] | |
| then | |
| echo "No unused containers found." | |
| else | |
| docker rm $(docker ps -a -q) | |
| fi | |
| # Remove dangling volumes |
| require 'rspec/autorun' | |
| module Memoizer | |
| def memoize(method_name) | |
| method = instance_method(method_name) | |
| define_method(method_name) do |*args| | |
| variables = instance_variables.each_with_object({}) do |name, hash| | |
| hash[name] = instance_variable_get(name) unless name == :@memoization | |
| end |
| # Example 1 | |
| module Logger | |
| extend self | |
| attr_accessor :output, :log_actions | |
| def log(&event) | |
| self.log_actions ||= [] | |
| self.log_actions << event | |
| end |
I'm a 23 year old interested in software development, computer science, IoT and photography. Most of all I love creating software that people love to use and which makes their lives easier. I'm also a regular speaker at Zag.rb.