This file contains 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
github's random repo : https://github.com/repositories/random | |
loving playing this game | |
every re-visit gets you a new idea/project | |
GEEK.GAME | |
I.AM.LOVING.IT->LINK |
This file contains 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/env ruby | |
module PuppetMaster | |
def self.puppetmaster_cmd | |
'puppet master --debug --verbose' | |
end | |
def self.start | |
puts "Starting Puppet Master in Debug+Verbose+Daemon mode logging to /var/log/puppet/a.log" | |
puts "Started." if system("#{puppetmaster_cmd} >> /var/log/puppet/a.log") |
This file contains 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
http://justfewtuts.blogspot.com/2012/07/puppet-beginners-concept-guide-part-2.html | |
<tomcat-module>/manifests/install.pp | |
class <tomcat-module>::install { | |
package { 'tomcat6': ensure => 'installed', } | |
} | |
<tomcat-module>/manifests/configure.pp | |
class <tomcat-module>::configure { | |
<tomcat-module>::configure::war { |
This file contains 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
# get colored terminal output using these String methods | |
class String | |
def colortxt(txt, term_color_code) | |
"\e[#{term_color_code}m#{txt}\e[0m" | |
end | |
def bold; colortxt(self, 1); end | |
def thin; colortxt(self, 2); end |
This file contains 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
# $MODULEPATH/httpd/manifests/git.pp | |
class httpd::git { | |
include httpd::params | |
$is_cgi = $httpd::params::is_cgi | |
$path = $httpd::params::path | |
$url = $httpd::params::url | |
file { |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 2. in line 1.
This file contains 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
# $MANIFESTPATH/extdatadir/common.csv | |
httpd_conf_dir,/etc/httpd/conf.d | |
httpd_is_cgi,true | |
httpd_git_path,/var/www/git | |
httpd_git_url,/mygit |
This file contains 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
# $MODULEPATH/httpd/manifests/git.pp | |
class httpd::git { | |
file { | |
"${::conf_dir}/git.conf": | |
ensure => 'present', | |
content => template('httpd/mynode.conf.erb'), | |
} | |
} |
This file contains 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/sh | |
# | |
# chkconfig: - 85 15 | |
# description: resque-scheduler service script | |
# | |
app_name=$MY_APP_NAME | |
pidfile_sched="/var/run/$MY_APP_NAME-resque-sched.pid" | |
app_dir="/opt/$MY_APP_NAME" |
This file contains 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
require 'bundler/setup' | |
require 'foodcritic' | |
task :default => [:foodcritic] | |
task :foodcritic do | |
cookbooks = File.absolute_path(File.join File.dirname(__FILE__), 'cookbooks') | |
puts 'FoodCritic running... | |
would criticize if finds anything, not cycnical to blabber otherwise.' |
This file contains 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
# Usage Example: $ ddl-confreaks rubyconf2012 ~/Downloads/ | |
# save it as /etc/profiles/ddl.confreaks.sh | |
## | |
## currently it checks for lowest resolution video mostly {640x360} and downloads it | |
function ddl-confreaks(){ | |
if [ $# -ne 2 ]; | |
then | |
echo 'Failed. Syntax: $> ddl-confreaks EVENT_NAME DOWNLOAD_PATH' | |
return |
OlderNewer