Skip to content

Instantly share code, notes, and snippets.

View deedubs's full-sized avatar
:shipit:
kustomize build all-the-things | kubectl apply -f -

Dan Williams deedubs

:shipit:
kustomize build all-the-things | kubectl apply -f -
View GitHub Profile
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
chef-client
[Tue, 20 Jul 2010 19:06:20 +0000] INFO: Starting Chef Run
[Tue, 20 Jul 2010 19:06:21 +0000] ERROR: Running exception handlers
[Tue, 20 Jul 2010 19:06:21 +0000] ERROR: Exception handlers complete
[Tue, 20 Jul 2010 19:06:21 +0000] ERROR: Re-raising exception: RuntimeError - can't add a new key into hash during iteration
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.9.6/lib/chef/mixin/language.rb:41:in `[]='
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.9.6/lib/chef/mixin/language.rb:41:in `block (2 levels) in value_for_platform'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.9.6/lib/chef/mixin/language.rb:41:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.9.6/lib/chef/mixin/language.rb:41:in `block in value_for_platform'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.9.6/lib/chef/mixin/language.rb:39:in `each_pair'
upstream backend-servers {
server 127.0.0.1:8080;
}
server {
server_name www.yourdomainhere.com;
location / {
proxy_pass http://backend-servers;
}
}
require 'rubygems'
require 'em-websocket'
class ClientConnection
attr_accessor :socket, :name
def initialize(args)
self.socket = args[:socket]
self.name = args[:name]
end
rails new JRubyOnRails -m http://jruby.org
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
Failures:
1) Admin::InvitesController GET 'new' should be successful
Failure/Error: get 'new'
No route matches {:controller=>"admin/invites", :action=>"new"}
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:424:in `raise_routing_error'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:406:in `generate'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:453:in `generate'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:449:in `generate_extras'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:445:in `extra_keys'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_controller/test_case.rb:136:in `assign_parameters'
define :apt_source do
template "/etc/apt/sources.list.d/#{params[:name]}.list" do
source "repo.erb"
mode 0440
owner "root"
group "root"
backup false
variables(
:url => params[:url],
:distro => params[:distro],
We couldn’t find that file to show.
(in /Users/dan/Dropbox/Projects/candance2)
Copying files...
rake aborted!
No such file or directory - /Users/dan/Dropbox/public/stylesheets/portfolio.css
/Users/dan/Dropbox/Projects/candance2/Rakefile:29
(See full trace by running task with --trace)