Create folder
mkdir tmp-folder
cd tmp-folder
Create file Dockerfile
FROM node:9.5.0-slim
LABEL manteiner="[email protected]"
@base = "gqljb25kaXRpb26iT1KmZ3JvdXBzkoKpY29uZGl0aW9uom9yp2ZpbHRlcnORg6Njb2yqYmlydGhfZGF0ZaNvcGWlbW9udGijdmFsoTKCqWNvbmRpdGlvbqJvcqdmaWx0ZXJzkYOjY29srXNoYXJlX2NhcGl0YWyjb3BlsGdyZWF0ZXJvcmVxdWFsdG-jdmFspjUwMC4wMA" | |
def example_error | |
MessagePack.unpack( Base64.decode64( @base ) ) | |
end | |
def example_success | |
MessagePack.unpack( Base64.urlsafe_decode64( @base ) ) | |
end |
#!/bin/sh | |
# wait-for-mssql.sh | |
set -e | |
# host="$1" | |
shift | |
cmd="$@" | |
List() | |
var list = Immutable.List([1,2,3]) | |
// [1, 2, 3] | |
List.isList() | |
Immutable.List.isList(list) | |
// true | |
List.of() | |
var list = Immutable.List.of(1,2,3); |
Create folder
mkdir tmp-folder
cd tmp-folder
Create file Dockerfile
FROM node:9.5.0-slim
LABEL manteiner="[email protected]"
# Docker | |
sudo apt-get remove docker docker-engine docker.io | |
sudo apt-get update | |
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 \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update && sudo apt-get install docker-ce && sudo usermod -aG docker $(whoami) | |
sudo addgroup --system docker |
## INSTALL zsh | |
sudo apt-get install -y zsh | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
chsh -s `which zsh` | |
## INSTALL oh-my-zsh | |
sh -c “$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)” | |
# Talvez seja necessário. | |
echo 'PROMPT='\''%{$fg[white]%}%n@%m:%~ %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[white]%}$ % %{$reset_color%}'\''' >> ~/.zshrc |
# Pacotes essenciais | |
sudo apt-get update && sudo apt-get install -y curl vim apt-transport-https git | |
sudo apt-get update && sudo apt-get install -y build-essential automake autoconf \ | |
openssl libreadline6 zlib1g libxml2-dev ncurses-dev libgmp-dev libcurl4-openssl-dev \ | |
bison libssl-dev libyaml-dev libreadline6-dev \ | |
zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev \ | |
gawk g++ gcc make libc6-dev patch \ | |
libsqlite3-dev sqlite3 libtool pkg-config libpq-dev | |
# dnsmasq |