Skip to content

Instantly share code, notes, and snippets.

class NodeUpdateFromFile < ::Chef::Knife
deps do
require "chef/node"
require "chef/json_compat"
require "chef/knife/core/object_loader"
end
banner "knife node update from file FILE (options)"
def loader
@augieschwer
augieschwer / update_bash.sh
Last active August 29, 2015 14:06
Manually update Bash to fix shellshock
# env x='() { :;}; echo VULNERABLE' /bin/bash -c "echo Running test. Check above for the word VULNERABLE."
cd /opt
mkdir src
cd src
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
#download all patches
for i in $(seq -f "%03g" 0 25); do wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$i; done
tar zxvf bash-4.3.tar.gz
cd bash-4.3
#apply all patches

Keybase proof

I hereby claim:

  • I am augieschwer on github.
  • I am augie (https://keybase.io/augie) on keybase.
  • I have a public key whose fingerprint is A495 5EAE 1AC7 E8DC A2F1 1A92 AE85 C174 FA15 D038

To claim this, I am signing this object:

@augieschwer
augieschwer / hekad.conf
Created July 23, 2013 21:40
An Upstart script for hekad.
# hekad - http://hekad.readthedocs.org/en/latest/ -- The hekad daemon is the core component of the heka project
#
# Configure hekad in /etc/hekad.toml
start on runlevel [2345]
respawn
pre-start script
[ -d /var/run/hekad/seekjournals/ ] || mkdir -p /var/run/hekad/seekjournals/
@augieschwer
augieschwer / logstash RPM spec
Created November 28, 2012 18:11 — forked from slojo404/logstash RPM spec
logstash monolithic init script and spec file for CentOS / RedHat
Name: logstash
Version: 1.1.0
Release: 1%{?dist}
Summary: logstash is a tool for managing events and logs
Group: System/Logging
License: ASL 2.0
URL: http://logstash.net/
Source0: http://semicomplete.com/files/logstash/logstash-%{version}-monolithic.jar
Source1: logstash