I hereby claim:
- I am grimm26 on github.
- I am grimm26 (https://keybase.io/grimm26) on keybase.
- I have a public key ASAS2IrCP6tSAUC7gpr7WB2T70_GGtjvbYUEuTOaL5x_yAo
To claim this, I am signing this object:
#!/bin/bash | |
# mf = make fork. | |
# You should be starting with a clean clone of the repository | |
# that you would like to fork. | |
# Steps: | |
# - rename the master branch of the origin to origin-master | |
# - use hub to create a fork | |
# - rename the forked repo to <origin org>-<repo name> | |
# - update all remotes |
resource "aws_api_gateway_rest_api" "my_demo" { | |
name = "my-demo" | |
description = "my Demo Interface" | |
resource "aws_api_gateway_deployment" "my_demo" { | |
rest_api_id = "${aws_api_gateway_rest_api.my_demo.id}" | |
stage_name = "live" | |
} |
#!/usr/bin/env python3 | |
import sys | |
DIRECTIONS = tuple(['west', 'north', 'east', 'south']) | |
def get_direction(turn_sum): | |
return DIRECTIONS[turn_sum % 4] | |
def split_input(input): | |
return input.split(", ") |
#!/usr/bin/env python3 | |
def get_direction(turn_sum): | |
directions = tuple(['west', 'north', 'east', 'south']) | |
return directions[turn_sum % 4] | |
def split_input(input): | |
return input.split(", ") | |
def calc_abs_movement(movement): |
I hereby claim:
To claim this, I am signing this object:
# Use this knife script to list status of nodes | |
# knife exec status.rb | |
YESTERDAY = Time.now - 86400 | |
def red(text) | |
sprintf "\e[1;37;41m%s\e[0m", text | |
end | |
def underline(text) | |
sprintf "\e[4m%s\e[0m", text |
* directory[/var/chef/handlers] action create (up to date) | |
* chef_gem[uuidtools] action install (up to date) | |
* chef_gem[sentry-raven] action upgrade (up to date) | |
* cookbook_file[/var/chef/handlers/sentry.rb] action create (up to date) | |
* chef_handler[Raven::Chef::SentryHandler] action enable | |
- disable Raven::Chef::SentryHandler as a exception handler | |
================================================================================ | |
Error executing action `enable` on resource 'chef_handler[Raven::Chef::SentryHandler]' | |
================================================================================ |
[2016-02-16T09:24:36-06:00] ERROR: chef_handler[Raven::Chef::SentryHandler] (chef-sentry-handler::default line 31) had an error: Gem::LoadError: Could not find 'multipart-post' (< 3, >= 1.2) among 90 total gem(s) | |
Checked in 'GEM_PATH=/root/.gem/ruby/2.1.0:/opt/chef/embedded/lib/ruby/gems/2.1.0', execute `gem env` for more information | |
[2016-02-16T09:24:36-06:00] ERROR: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
mkeisler@8b-build02.oak /opt/chef % grep multipart-post /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/Gemfile.lock | |
multipart-post (>= 1.2, < 3) | |
multipart-post (2.0.0) | |
mkeisler@8b-build02.oak /opt/chef % find /opt/chef -name 'multipart-post*' | |
mkeisler@8b-build02.oak /opt/chef % |
property :version, String, default: node['chef_dk']['version'] | |
property :package_url, [String, nil], default: node['chef_dk']['package_url'] | |
property :global_shell_init, [TrueClass, FalseClass], default: node['chef_dk']['global_shell_init'] | |
property :prerelease, [TrueClass, FalseClass], default: false | |
property :nightlies, [TrueClass, FalseClass], default: false | |
resource_name :chef_dk | |
default_action :install |
recipe: | |
package 'chefdk' do | |
case node['platform_family'] | |
when 'debian' | |
provider Chef::Provider::Package::Dpkg | |
end | |
allow_downgrade true | |
version chef_dk_metadata.version | |
source ::File.join(Chef::Config['file_cache_path'],chef_dk_metadata.filename) | |
action :upgrade |