desc 'Run integration tests'
task :integration do
Kitchen.logger = Kitchen.default_file_logger
Kitchen::Config.new.instances.get_all(/ubuntu/).tap do |instances|
instances.each {|instance| instance.test(:always) }
end
end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# NOTE: I pieced this together from my shell history. I haven't fully tested it... | |
LAN_ADDR='10.0.1.1' | |
LAN_CIDR='10.0.0.0/16' | |
LAN_GTWY='10.0.0.1' | |
DEV_BRDG='lan0' | |
DEV_PHYS='eno1' | |
# Setup a DHCP reservation on your router for the client machine with address 10.0.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo locale-gen en_US en_US.UTF-8 | |
dpkg-reconfigure locales |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[brandocorp:~/git/brandocorp] % mix phoenix.new phoenix_blog | |
* creating phoenix_blog/config/config.exs | |
* creating phoenix_blog/config/dev.exs | |
* creating phoenix_blog/config/prod.exs | |
* creating phoenix_blog/config/prod.secret.exs | |
* creating phoenix_blog/config/test.exs | |
* creating phoenix_blog/lib/phoenix_blog.ex | |
* creating phoenix_blog/lib/phoenix_blog/endpoint.ex | |
* creating phoenix_blog/test/views/error_view_test.exs | |
* creating phoenix_blog/test/support/conn_case.ex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install caskroom/cask/brew-cask | |
brew cask install chefdk | |
sudo chown -R $(whoami): /opt | |
chef-client -z -o 'workstation::setup' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "formula" | |
class Srelay < Formula | |
homepage "http://socks-relay.sourceforge.net" | |
url "https://downloads.sourceforge.net/project/socks-relay/socks-relay/srelay-0.4.8/srelay-0.4.8b6.tar.gz" | |
sha1 "f5002394c9447bda340831ddabf339e88eab9f24" | |
def install | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int countingArray(float list[], int arraySize, bool countNegative); | |
void countingArray(float list[], int arraySize, int &numOfNegatives, int &numOfPositives); | |
int main() { | |
const int arraySize = 7; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main() | |
{ | |
int quantity; | |
double total; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
k8s_docker: | |
image: rancher/os-docker:v0.3.3 | |
labels: | |
io.rancher.os.scope: system | |
io.rancher.os.after: console | |
net: host | |
pid: host | |
ipc: host | |
uts: host | |
privileged: true |