Skip to content

Instantly share code, notes, and snippets.

View statik's full-sized avatar
😎
happily working! I may be slow to respond

Elliot Murphy statik

😎
happily working! I may be slow to respond
View GitHub Profile
# Customize the chef node name and use your own Opscode platform organization
# with this Vagrantfile. Mind the validation key path setting and make sure your
# validation key is correct.
#
# If you're using your own Chef Server, substitute the proper URL and validation client
# and key names.
#
# Export the following shell environment variables before running vagrant up:
#
# export ORGNAME=your_platform_organization
@statik
statik / gist:981961
Created May 19, 2011 22:34 — forked from jtimberman/gist:548261
preseed.cfg for automated installations with chef from apt.opscode.com
# This is the entire preseed config file used on an example Lucid system. See the preseed
# documentation for more information on the options here. This will use US English by default.
#
# https://help.ubuntu.com/10.04/installation-guide/amd64/preseed-contents.html
#
# This preseed will automatically install Ubuntu 10.04 with default options. Understand what
# it is doing before you use it.
#
# Boot Options line:
#
@statik
statik / gist:3783125
Created September 25, 2012 16:56
reload sshd after config changes
diff --git a/cookbooks/openssh/recipes/default.rb b/cookbooks/openssh/recipes/default.rb
index 7fbf435..94b35b7 100644
--- a/cookbooks/openssh/recipes/default.rb
+++ b/cookbooks/openssh/recipes/default.rb
@@ -44,6 +44,7 @@ template "/etc/ssh/sshd_config" do
owner 'root'
group 'root'
variables(:settings => node['openssh']['server'])
+ notifies :reload, resources(:service => "ssh"), :immediate
end
diff --git a/cookbooks/openssh/recipes/default.rb b/cookbooks/openssh/recipes/default.rb
index 7fbf435..5c28cc9 100644
--- a/cookbooks/openssh/recipes/default.rb
+++ b/cookbooks/openssh/recipes/default.rb
@@ -38,14 +38,6 @@ template "/etc/ssh/ssh_config" do
variables(:settings => node['openssh']['client'])
end
-template "/etc/ssh/sshd_config" do
- source "sshd_config.erb"
#!/usr/bin/ruby
require 'twitter'
require 'marky_markov'
def tweets
block = Twitter.user_timeline("joedamato", count: 200)
text = block.map(&:text)
max = block.last.id
until block.empty?
#!/bin/bash
# CentOS rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# Installs rbenv system wide on CentOS 5/6, also allows single user installs.
# Install pre-requirements
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \
make bzip2 autoconf automake libtool bison iconv-devel git-core
{
"Statement": [
{
"Sid": "PackerSecurityGroupAccess",
"Action": [
"ec2:CreateSecurityGroup",
"ec2:DeleteSecurityGroup",
"ec2:DescribeSecurityGroups",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:RevokeSecurityGroupIngress"
@statik
statik / ssl_check.feature
Created July 29, 2013 18:51
Checking SSL expiration dates with cucumber
Feature: SSL Renewal Checks
We have a large list of SSL certificates
So that none of those expire
We can run a check for those soon expiring
Scenario Outline: Check SSL certificate expiration
When I sslcheck <website>
Then the SSL certificate should have at least 30 days remaining
Examples:
| website |

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: