Skip to content

Instantly share code, notes, and snippets.

View amdtech's full-sized avatar

Aaron Daniel amdtech

  • FutureAdvisor
  • San Francisco, CA
View GitHub Profile
@amdtech
amdtech / lynis.rb
Last active March 12, 2017 00:17
homebrew formulae
class Lynis < Formula
desc "Security and system auditing tool to harden systems"
homepage "https://cisofy.com/lynis/"
url "https://cisofy.com/files/lynis-2.4.5.tar.gz"
sha256 "919946f6f7a57136839082fdf3c4acd5691d360b308f68acf03fc5d230633804"
def install
inreplace "lynis" do |s|
s.gsub! 'tINCLUDE_TARGETS="/usr/local/include/lynis /usr/local/lynis/include /usr/share/lynis/include ./include"',
%Q(tINCLUDE_TARGETS="#{include}")

Keybase proof

I hereby claim:

  • I am amdtech on github.
  • I am amdtech (https://keybase.io/amdtech) on keybase.
  • I have a public key whose fingerprint is B25F 2DAA 8C20 927D 5A72 A239 656E C97E 53FB 2C6D

To claim this, I am signing this object:

@amdtech
amdtech / ubuntu10.04-rvm.rb
Created January 25, 2012 02:28
chef rvm bootstrap
bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
if [ ! -f /usr/bin/chef-client ]; then
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get install -y build-essential wget zlib1g-dev
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
@amdtech
amdtech / kcu
Created January 20, 2012 20:01
Script to run foodcritic before uploading cookbooks
#!/usr/bin/env rvm-shell 1.9.3
CB="$HOME/build/chef/cookbooks/$1"
echo Checking $CB
foodcritic $CB -f correctness
st=$?
if [ $st -gt 0 ]; then
echo "Not uploading due to correctness issue"
exit $st
fi