This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder