Skip to content

Instantly share code, notes, and snippets.

@tzumby
tzumby / Dockerfile
Last active August 29, 2015 14:06
Ruby Dockerfile
# Select Ubuntu as the base image
FROM ubuntu
MAINTAINER Razvan Draghici <tzumby@gmail.com>
# Update Apt
RUN apt-get -y update
RUN apt-get -y install curl git-core python-software-properties
# install essentials
apiVersion: v1
kind: Service
metadata:
name: wordpress-mariadb
spec:
ports:
- port: 3306
selector:
app: mariadb
clusterIP: None
apiVersion: v1
kind: Service
metadata:
name: wordpress-site
spec:
ports:
- port: 80
selector:
app: wordpress
type: NodePort
# Dockerfile - Ubuntu Xenial
# https://github.com/openresty/docker-openresty
FROM ubuntu:xenial
MAINTAINER Evan Wies <evan@neomantra.net>
# Docker Build Arguments
ARG RESTY_VERSION="1.11.2.3"
ARG RESTY_LUAROCKS_VERSION="2.3.0"

Keybase proof

I hereby claim:

  • I am tzumby on github.
  • I am tzumby (https://keybase.io/tzumby) on keybase.
  • I have a public key ASAWhnClplyDLU8tP_jH2vw4SAit7Pbo74zC9LR9cOhUoAo

To claim this, I am signing this object:

{{ $cfg := .Cfg }}
{{ $IsIPV6Enabled := .IsIPV6Enabled }}
{{ $healthzURI := .HealthzURI }}
{{ $backends := .Backends }}
{{ $proxyHeaders := .ProxySetHeaders }}
daemon off;
worker_processes {{ $cfg.WorkerProcesses }};
pid /run/nginx.pid;
{{ if ne .MaxOpenFiles 0 }}
defp deps do
[
{:ethereumex, "~> 0.3.2"},
{:abi, "~> 0.1.8"}
]
end
config :ethereumex,
url: "https://mainnet.infura.io/API_KEY"
"0x15d3be8fee89e4"
|> String.slice(2..-1)
|> Base.decode16!(case: :lower)
|> :binary.decode_unsigned
# 6143789922945508
{:ok, address } =
"0x456196dfa8eb4534669a01c5933c3bba2ba0d018"
|> String.slice(2..-1)
|> Base.decode16(case: :mixed)
data = ABI.encode("balanceOf(address)", [address])
|> Base.encode16(case: :lower)
# 70a08231000000000000000000000000456196dfa8eb4534669a01c5933c3bba2ba0d018