Skip to content

Instantly share code, notes, and snippets.

# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
echo I am provisioning...
date > /etc/vagrant_provisioned_at
echo installing git...
sudo apt-get update
sudo apt-get install -y git-core
echo installing java...
@m3dwards
m3dwards / machine-diskutil.sh
Created April 21, 2016 16:28 — forked from cristobal/machine-diskutil.sh
Machine Diskutil to mount/unmont external volumes inside docker machines running on Virtualbox
#!/usr/bin/env sh
# @see http://stackoverflow.com/questions/30040708/how-to-mount-local-volumes-in-docker-machine
# @see https://github.com/boot2docker/boot2docker/blob/master/doc/FAQ.md
################################################################################
# Dependency Section #
# #
################################################################################
check_deps() {
## Make sure commands are available
#!/bin/bash
# Tune fsync perf for docker mac per
# https://github.com/docker/for-mac/issues/668
# NB: You must be on Docker 1.12.2-rc1-beta27 or greater
cd ~/Library/Containers/com.docker.docker/Data/database/
f="com.docker.driver.amd64-linux/disk/full-sync-on-flush"
git reset --hard
cat $f
@m3dwards
m3dwards / bitcoind-start.sh
Last active September 6, 2023 13:02 — forked from jeffrade/bitcoind-start.sh
bitcoind systemd service and start script.
#!/bin/bash
# Just a simple wrapper to start bitcoind.
#
# If using systemd, simply create a file (e.g. /etc/systemd/system/bitcoind.service)
# from example file below and add this script in ExecStart.
# https://raw.521000.best-/bitcoin/bitcoin/76deb30550b2492f9c8d9f0302da32025166e0c5/contrib/init/bitcoind.service
#
# Then run following to always start:
# systemctl enable bitcoind
@m3dwards
m3dwards / guix-sigs-mac-docker.md
Last active April 17, 2024 18:04 — forked from hebasto/guix-sigs.md
The `bitcoin-core/guix.sigs` Repository Workflow on Mac with docker