- wget -qO- https://get.docker.com/ | sh
- sudo docker run ubuntu:14.04
- sudo docker images
| #! /bin/sh | |
| # ================================================================== | |
| # ______ __ _____ | |
| # /_ __/___ ____ ___ _________ _/ /_ /__ / | |
| # / / / __ \/ __ `__ \/ ___/ __ `/ __/ / / | |
| # / / / /_/ / / / / / / /__/ /_/ / /_ / / | |
| #/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/ | |
| # Multi-instance Apache Tomcat installation with a focus | |
| # on best-practices as defined by Apache, SpringSource, and MuleSoft | 
| #!/usr/bin/env rackup | |
| #\ -E deployment | |
| use Rack::ContentLength | |
| app = Rack::Directory.new Dir.pwd | |
| run app | 
| import psycopg2 as pg | |
| from io import BytesIO | |
| from collections import defaultdict | |
| from contextlib import contextmanager | |
| from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT, ISOLATION_LEVEL_READ_COMMITTED | |
| READ_COMMIT = ISOLATION_LEVEL_READ_COMMITTED | |
| AUTO_COMMIT = ISOLATION_LEVEL_AUTOCOMMIT | 
Crystal 0.9.1 with Kemal
require "kemal"
ws "/" do |socket|
  socket.on_message do |message|
 end| extern crate sysfs_gpio; | |
| use sysfs_gpio::{Direction,Pin}; | |
| use std::time::Duration; | |
| use std::thread::sleep; | |
| fn main() { | |
| let data_pin = Pin::new(18); // SER #14 | |
| let latch_pin = Pin::new(23); // RCLK #12 | |
| let clock_pin = Pin::new(24); // SRCLK #11 | 
| #!/usr/bin/env ruby | |
| # Extracted from traceroute gem + checking the presence of views as well | |
| require_relative './config/environment.rb' | |
| class Traceroute | |
| def initialize(app) | |
| @app = app | |
| end | 
| [Unit] | |
| Description=Job that runs the python SimpleHTTPServer daemon | |
| Documentation=man:SimpleHTTPServer(1) | |
| [Service] | |
| Type=simple | |
| WorkingDirectory=/tmp/letsencrypt | |
| ExecStart=/usr/bin/python -m SimpleHTTPServer 80 & | |
| ExecStop=/bin/kill `/bin/ps aux | /bin/grep SimpleHTTPServer | /bin/grep -v grep | /usr/bin/awk '{ print $2 }'` |