-
Put the dockerfile that you want to use in a directory next to your vagrantfile.
-
In the vagrantfile put the following:
config.vm.provision "docker" do |d|
d.build_image "/vagrant", args: "-t my-name/my-new-image"
Vagrant::Config.run do |config| | |
config.vm. box = "precise64" | |
config.vm.box_url = "http://hashicorp-files.vagrantup.com/precise64.box" | |
config.vm.share_folder "v-root", "/anydir", "." | |
config.vm.forward_port 80, 8080 | |
config.vm.provision "shell", path: "provision.sh" | |
#or chef config.vm.provision "chef_solo", run_list: ["candoris_chef"] | |
end |
#! /bin/sh - | |
# | |
# Install OpenVPN connections for all available | |
# regions to NetworkManager | |
# | |
# Requirements: | |
# should be run as root | |
# python and openvpn (will be installed if not present) | |
# | |
# Usage: |
-- PostgreSQL 9.2 beta (for the new JSON datatype) | |
-- You can actually use an earlier version and a TEXT type too | |
-- PL/V8 http://code.google.com/p/plv8js/wiki/PLV8 | |
-- Inspired by | |
-- http://people.planetpostgresql.org/andrew/index.php?/archives/249-Using-PLV8-to-index-JSON.html | |
-- http://ssql-pgaustin.herokuapp.com/#1 | |
-- JSON Types need to be mapped into corresponding PG types | |
-- |
#!/bin/bash | |
# Dependencies | |
install build-essential libcurl4-openssl-dev libxml2-dev libfuse-dev | |
# Compile s3fs from source | |
wget https://s3fs.googlecode.com/files/s3fs-1.74.tar.gz | |
tar -zxvf s3fs-1.74.tar.gz | |
cd s3fs-1.74 | |
./configure |
#!/bin/bash | |
#### | |
## NOTE: Change /dev/sda1 to the name of the device partition you | |
## deleted the file on. | |
# Also "x" needs to be big enough to hold the file contents. | |
### | |
grep --binary-files=text --context=x 'stringfromyourfile' \ /dev/sda1 > someFile.txt |
# Makefile for porting MIUI | |
# | |
local-zip-file := stockrom.zip | |
local-out-zip-file := MIUI_YOURDEVICE.zip | |
local-previous-target-dir := | |
local-density := |
==================
curl -O -L "https://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE10-Win8.1&parts=5&filename=VMBuild_20131127/VirtualBox/IE10_Win8/Mac/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"
#include <sys/socket.h> | |
#include <sys/types.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <arpa/inet.h> |
pyvenv-3.4 --without-pip venv | |
source venv/bin/activate | |
cd venv | |
curl -LO https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | |
python3.4 get-pip.py |