Skip to content

Instantly share code, notes, and snippets.

💭
monkeyin' around

Erik Hollensbe erikh

Block or report user

Report or block erikh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View aestar.go
// Package aestar implements an encrypted tar file that can be extracted by any
// tar program. The filenames and contents are obfuscated; an encrypted index
// is formed to map the obfuscated names to real names.
//
// aestar does not implement all tar features at this time, but as it matures
// it will extend to support most common options.
package aestar
import (
"archive/tar"
View box-base.rb
from "centos:7.3.1611"
ROOT = "/hack/saratk/nic"
env GOROOT: "/usr/local/bin/go",
GOPATH: "/go",
PATH: "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/go/bin:/go/bin"
run "yum install -y gcc gcc-c++ wget autoconf automake libtool curl make g++ unzip pkg-config"
View dev.rb
from "ubuntu"
myuser = "erikh"
homedir = "/home/#{myuser}"
packages = %w[
man
ack-grep
zsh
tmux
build-essential
View README.md

Box: A Next-Generation Builder for Docker Images Build Status

Box is a builder for docker that gives you the power of mruby, a limited, embeddable ruby. It allows for notions of conditionals, loops, and data structures for use within your builder plan. If you've written a Dockerfile before, writing a box build plan is easy.

  • Unique general features:
    • mruby syntax
    • filtering of keywords to secure builds
View README.md

mruby Library for Go Build Status

go-mruby provides mruby bindings for Go. This allows Go applications to run a lightweight embedded Ruby VM. Using the mruby library, Go applications can call Ruby code, and Ruby code can call Go code (that is properly exposed)!

At the time of writing, this is the most comprehensive mruby library for Go by far. It is also the only mruby library for Go that enables exposing Go functions to Ruby as well as being able to generically convert complex

View lm.go
package main
import (
"fmt"
"io/ioutil"
"os"
"golang.org/x/sys/unix"
)
View util.go
package builder
import (
"archive/tar"
"bufio"
"context"
"crypto/sha512"
"encoding/hex"
"encoding/json"
"errors"
View executor.go
package executor
import "io"
// Hook is a hook used in commit calls
type Hook func(b *Builder, id string) (string, error)
// Executor execs
type Executor interface {
User() string
View dev.rb
from "ubuntu"
myuser = "erikh"
homedir = "/home/#{myuser}"
packages = %w[
man
ack-grep
zsh
tmux
build-essential
View build.rb
from "golang"
packages = %w[
build-essential
g++
git
wget
curl
ruby
bison
You can’t perform that action at this time.