Setup:
git clone git@github.com:nabeken/vagrant-aws.git
cd vagrant-aws
git checkout spot-3
gem build vagrant-aws.gemspec
vagrant install plugin vagrant-aws-0.5.0.gem
Vagrantfile:
# ipak function: install and load multiple R packages. | |
# check to see if packages are installed. Install them if they are not, then load them into the R session. | |
ipak <- function(pkg){ | |
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] | |
if (length(new.pkg)) | |
install.packages(new.pkg, dependencies = TRUE) | |
sapply(pkg, require, character.only = TRUE) | |
} |
import sys | |
import itertools | |
for test in itertools.product([False,True], repeat=2): | |
bob_flip = test[0] | |
alice_flip = test[1] | |
if bob_flip == False: | |
bob_guess = True | |
else: | |
bob_guess = False |
BEGIN { | |
FS = "=" | |
ipan = "" | |
at = "" | |
lt = "" | |
hn = "" | |
lu = "" | |
le = "" | |
mac = "" | |
ci = "" |
BEGIN { | |
cn = "" | |
} | |
function trim(field) { | |
gsub(/\r/, "", field) | |
gsub(/^[ \t]+/, "", field) | |
return field; | |
} |
#Parses the output of CDP neighbor information from a VMWare ESXi host. | |
# | |
#------------------------- | |
#hostname vmnic1 | |
#CdpVersion : 2 | |
#Timeout : 0 | |
#Ttl : 152 | |
#Samples : 9854 | |
#DevId : aaa-bbbb-cccc-dd | |
#Address : 10.10.1.1 |
BEGIN { | |
device_id = "" | |
entry_address = "" | |
ip_address = "" | |
platform = "" | |
capabilities = "" | |
interface = "" | |
port_id = "" | |
holdtime = "" | |
version = "" |
Setup:
git clone git@github.com:nabeken/vagrant-aws.git
cd vagrant-aws
git checkout spot-3
gem build vagrant-aws.gemspec
vagrant install plugin vagrant-aws-0.5.0.gem
Vagrantfile:
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
This produces warning events F0207, F0479, F0283. These errors clear once each port has been fully initialized by an appropriate driver - ESXi or Debian Squeeze installer images are an easy way to take care of this. Shame the docs make no mention of this and point only to failed uplinks and un-acknowledged hardware.
mkdir -p /media/cdrom \ | |
&& mount /dev/sr0 /media/cdrom \ | |
&& tar -C /tmp -xzvf /media/cdrom/*.gz \ | |
&& /tmp/vmware-tools-distrib/vmware-install.pl -d \ | |
&& rm -rf /tmp/vmware-tools-distrib |