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
# Written by John B. Wyatt IV | |
# Under BSD 2 clause license | |
import random, sys | |
# 0 = empty, Player 1 = X => 1, Player 2 = O => 4 | |
grid = [[0,0,0], | |
[0,0,0], | |
[0,0,0]] | |
def wrapper(value): |
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
Myapp::Application.config.secret_token = ENV['YOUR_APP_SECRET_TOKEN'] | |
unless ENV['RAILS_ENV'] == "production" | |
Myapp::Application.config.secret_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
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
source "https://rubygems.org" | |
gem 'chef', '11.12.2' | |
gem 'knife-solo' | |
gem 'knife-solo_data_bag' | |
gem 'ffi' | |
#gem 'vagrant' # Removed | |
gem 'multi_json' | |
gem 'ruby-shadow' |
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
cookbook_path ["cookbooks", "site-cookbooks"] | |
node_path "nodes" | |
role_path "roles" | |
data_bag_path "data_bags" | |
#encrypted_data_bag_secret "data_bag_key" | |
knife[:berkshelf_path] = "cookbooks" | |
cookbook_copyright "John B. Wyatt IV" | |
cookbook_license "apachev2" |
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
template "/etc/apt/apt.conf.d/15update-stamp" do | |
source "15update-stamp" | |
mode 0440 | |
owner "root" | |
group "root" | |
end | |
execute "update apt" do # this becomes just a name with cmd | |
command 'apt-get update' | |
user "root" |
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
template "/etc/apt/apt.conf.d/15update-stamp" do | |
source "15update-stamp" | |
mode 0440 | |
owner "root" | |
group "root" | |
end | |
execute "update apt" do # this becomes just a name with cmd | |
command 'apt-get update' | |
user "root" |
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
template "/etc/apt/apt.conf.d/15update-stamp" do | |
source "15update-stamp" | |
mode 0440 | |
owner "root" | |
group "root" | |
end | |
execute "update and upgrade" do # this becomes just a name with cmd | |
command 'apt-get update' | |
user "root" |
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
template "/etc/apt/apt.conf.d/15update-stamp" do | |
source "15update-stamp" | |
mode 0440 | |
owner "root" | |
group "root" | |
end | |
execute "update and upgrade" do # this becomes just a name with cmd | |
command 'apt-get update' | |
user "root" |
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
{"run_list":["recipe[deployrails::default, deployrails::installruby, deployrails::restart]"]} |
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
apt_package "nodejs" | |
apt_package "curl" | |
apt_package "git-core" | |
apt_package "build-essential" | |
apt_package "libcurl4-openssl-dev" | |
apt_package "zlib1g-dev" |
OlderNewer