Skip to content

Instantly share code, notes, and snippets.

View slyness's full-sized avatar
🏠
Working from home

Aaron Baer slyness

🏠
Working from home
View GitHub Profile
"Type": "AWS::CloudFormation::Stack",
"Properties": {
"Parameters": {
"IaasAdministratorAccessPolicyArn": {
"Fn::GetAtt": [
"IamPoliciesIaasAdministratorAccess",
"Outputs.IaasAdministratorAccessPolicyArn"
]
},
"DenyVpcPolicyArn": {
/opt/sensu/embedded/bin/ruby -r ./siteconf20160316-15494-msbj6r.rb extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... no
checking for PQconnectdb() in -llibpq... no
checking for PQconnectdb() in -lms/libpq... no
Can't find the PostgreSQL client library (libpq)
@slyness
slyness / delete_something.md
Created July 22, 2015 18:36
delete_something.md
            "DeviceName": {
              "Ref": "Mongodb1DeviceName"
            },
            "Ebs": {
              "VolumeSize": {
                "Ref": "Mongodb1VolumeSize"
              },
              "VolumeType": {
                "Ref": "Mongodb1VolumeType"
@slyness
slyness / gist:4978e93e6563e30564ca
Last active August 29, 2015 14:25
SparkleFormation array
resources(:my_security_group) do
properties do
security_group_ingress _array(
-> {
ip_protocol 'tcp'
from_port ref!(:my_from_port)
to_port ref!(:my_to_port)
source_security_group_id ref!(:important_security_group)
},
-> {
Generating metadata for runit from /var/folders/qy/vml7nt653ldd4vrmc7gz2mtc0000gn/T/chef-runit-build20150406-41304-ojgc4y/runit/metadata.rb
ERROR: ERROR: Error uploading cookbook runit to the Opscode Cookbook Site: wrong number of arguments (2 for 1). Set log level to debug (-l debug) for more information.
sudo su -

cd /etc/openvpn/easy-rsa

source ./vars

./pkitool USER

/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:136:in `block in gather_dependencies': unde
fined method `full_name' for nil:NilClass (NoMethodError)
from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:136:in `map'
from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:136:in `gather_dependencies'
from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:267:in `install'
from /tmp/busser/gems/gems/busser-0.6.2/lib/busser/rubygems.rb:44:in `install_gem'
from /tmp/busser/gems/gems/busser-0.6.2/lib/busser/command/plugin_install.rb:66:in `install_plugin_gem'
from /tmp/busser/gems/gems/busser-0.6.2/lib/busser/command/plugin_install.rb:53:in `install'
[2014-10-09T13:19:44-07:00] INFO: Chef Run complete in 5031.275551171 seconds
Running handlers:
[2014-10-09T13:19:47-07:00] INFO: Running report handlers
Running handlers complete
[2014-10-09T13:19:47-07:00] INFO: Report handlers complete
Chef Client finished, 288228/288881 resources updated in 5040.156854046 seconds
[2014-10-09T13:25:53-07:00] INFO: Sending resource update report (run-id: 482f0a62-b110-4da6-ba7c-845b15047866)
[2014-10-09T13:27:41-07:00] INFO: HTTP Request Returned 413 Request Entity Too Large:
# Clean up open-uri files in /tmp 3 days old or older
# three days = 259200 seconds = 60 * 60 * 24 * 3
THREEDAYS = 259200
files = []
files = ::Dir["/tmp/open-uri*"]
files.each do |f|
shackserv_owned = ::File.stat(f).uid == 5001
aged_file = Time.now.to_i - ::File.stat(f).mtime.to_i >= THREEDAYS
@slyness
slyness / rename_node.md
Last active November 11, 2023 18:09
Rename a Chef Node

How to rename a chef node

  1. Edit existing node name. Update name and save. Chef will copy the node and create a new client entry.
knife node edit oldnode
  1. ssh to node
  2. Change hostname and dns information