Skip to content

Instantly share code, notes, and snippets.

View max-did-it's full-sized avatar
💭
💎

Maxim Bezlegkiy max-did-it

💭
💎
View GitHub Profile
@dweldon
dweldon / install-docker.sh
Last active April 8, 2022 11:18
Install docker CE on Linux Mint 18.3
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
# https://docs.docker.com/compose/install/
@anekos
anekos / html-builder.rb
Created April 21, 2010 06:02
Ruby DSL - HTML生成
#!/usr/bin/ruby
#[=c= ruby -rubygems % ]
class HTMLBuilder
def initialize (tag_name = 'html', indent = 0, &block)
@indent = indent
@tag_name = tag_name
@attrs = {}
@contents = []
self.instance_eval(&block)