spec/_role
以下にspecファイルを分離してみた.
$ tree spec/
spec/
├── _role
│ ├── cloudforecast_spec.rb
│ ├── growthforecast_spec.rb
package main | |
import ( | |
"math/rand" | |
"fmt" | |
"strings" | |
) | |
var words = []string { | |
"ボ", |
cat Dockerfile | |
# 4.3.12 should probably be something like 4.3.10 or somesuch | |
# | |
FROM boot2docker/boot2docker | |
RUN apt-get install p7zip-full | |
RUN mkdir -p /vboxguest && \ | |
cd /vboxguest && \ | |
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/4.3.12/VBoxGuestAdditions_4.3.12.iso && \ | |
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \ |
require 'formula' | |
class Screenx < Formula | |
homepage 'http://www.gnu.org/software/screen/' | |
url 'http://git.savannah.gnu.org/cgit/screen.git/snapshot/screen-master.tar.gz' | |
sha1 '642588a585fca1def67bd85172addf9cd0a0c745' | |
version '4.1.0-20110819git450e8f3' | |
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master' |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use POSIX qw/mkfifo/; | |
use File::Temp qw/tempfile/; | |
use Scalar::Util qw/looks_like_number/; | |
use IO::Handle; | |
my $log_file = '/tmp/dstat.log'; | |
my (undef, $pipe) = tempfile("dstat_XXXX", DIR => '/tmp', SUFFIX => '.pipe'); |
var page = require('webpage').create(); | |
phantom.cookiesEnabled = true; | |
console.log('\n\n cookies we know about => \n\n' + JSON.stringify(phantom.cookies, null, 2)); | |
// spoof user-agent | |
page.settings.userAgent = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0'; | |
const USER = 'cvUg338yQa'; | |
const PASS = 'GNyoqNKJK5'; |
# Requirements: | |
# https://github.com/vigetlabs/capistrano_rsync_with_remote_cache | |
# https://github.com/ndbroadbent/turbo-sprockets-rails3 | |
require 'capistrano/recipes/deploy/strategy/rsync_with_remote_cache' | |
Capistrano::Deploy::Strategy::RsyncWithRemoteCache.class_eval do | |
def deploy! | |
update_local_cache | |
prepare_assets | |
update_remote_cache | |
finalize_assets |
pid = Process.pid | |
SimpleCov.at_exit do | |
SimpleCov.result.format! if Process.pid == pid | |
end |
In order to enable oidc authenticator in kube-apiserver
,
we need to have TLS enabled between kubectl
and kube-apiserver
, as well as between kube-apiserver
and OpenID Provider(dex-worker
here)
For simplicity, we will use cfssl to create the bundles.
Checkout and build dex
name "base" | |
description "Baseline configuration for all systems." | |
run_list( | |
"recipe[ohai]", | |
"recipe[chef-client::delete_validation]", | |
"recipe[chef-client]", | |
"recipe[zsh]", | |
"recipe[git]", | |
"recipe[users]", |