Skip to content

Instantly share code, notes, and snippets.

@stevepereira
stevepereira / datomic.conf
Last active August 29, 2015 14:19
Datomic config
#! /bin/sh
### BEGIN INIT INFO
# Provides: datomic
# Short-Description: Start datomic transactor
### END INIT INFO
#
# Copyright (c) Vital Reactor LLC
#
# description: starts up datomic transactor in fixed location
env PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:$PATH
@stevepereira
stevepereira / resources.md
Last active January 18, 2020 16:20
Talk resources
#!/usr/bin/env bash
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "+------------------------------+"
echo "| Running xnlogic Install |"
echo "+------------------------------+"
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
echo "Please contact us for Linux install instructions! This script is not compatible with Linux"
exit 1
elif [[ "$OSTYPE" == "msys" ]]; then
@stevepereira
stevepereira / gist:a9b380ec8e9532e21aa2
Created February 4, 2015 05:18
Build and run Fig from Dockerfile
#!/bin/bash
set -e
DIR="$(dirname "$0")"/..
docker build -t fig $DIR
exec docker run -i -t -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`:/workdir -w /workdir fig $@
@stevepereira
stevepereira / gist:e1c8aa98e9139139cdb0
Last active August 29, 2015 14:13
xnlogic install
# Run in an Admin Powershell session
# Run `Set-ExecutionPolicy –ExecutionPolicy RemoteSigned –Scope Process` and accept the default 'Y'
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
choco install ruby rubygems cmder vagrant virtualbox
gem install xnlogic
@stevepereira
stevepereira / gist:fcee72c18b2bd5656c1e
Last active August 29, 2015 14:13
iex ((new-object net.webclient).DownloadString('https://j.mp/win-xn'))
# j.mp/xninstall
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
choco install ruby -Version 2.1.5
choco install cmder
choco install vagrant
choco install virtualbox
#create data directory to contain any data we want persisted
sudo mkdir /var/lib/boot2docker/data && sudo chown docker:staff /var/lib/boot2docker/data
#pull busybox and set it up as a data volume container
docker run -v /var/lib/boot2docker/data:/data --name data-share busybox true
#pull svendowideit/samba and run it with the data-share container
#docker run --rm -v $(which docker):/docker -v /var/run/docker.sock:/docker.sock svendowideit/samba data-share
#make sure the samba share runs next time boot2docker starts
@stevepereira
stevepereira / Vagrantfile
Last active August 29, 2015 14:06 — forked from gijs/Vagrantfile
So far both rsync and nfs both suck - tail -f in docker container doesn't hear the modify but the file does update (used with vagrant rsync-auto in combination with rsync)
# -*- mode: ruby -*-
# # vi: set ft=ruby :
require 'fileutils'
CLOUD_CONFIG_PATH = File.join(File.dirname(__FILE__), "user-data")
CONFIG = File.join(File.dirname(__FILE__), "config.rb")
# Defaults for config options defined in CONFIG
$num_instances = 1
# using VirtualBox version $VBOX_VERSION
FROM boot2docker/boot2docker
RUN apt-get install -y p7zip-full
RUN mkdir -p /vboxguest && \
cd /vboxguest && \
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso && \
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \
sh VBoxLinuxAdditions.run --noexec --target . && \