Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| # this simulates how a puppet agent will connect | |
| openssl s_client -host puppet -port 8140 -cert /path/to/ssl/certs/node.domain.com.pem -key /path/to/ssl/private_keys/node.domain.com.pem -CAfile /path/to/ssl/certs/ca.pem | |
| # outputs: | |
| CONNECTED(00000004) | |
| depth=1 /CN=Puppet CA: master.domain.com | |
| verify return:1 | |
| depth=0 /CN=macbook.local | |
| verify return:1 |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
| Host github.com | |
| User git | |
| Hostname github.com | |
| PreferredAuthentications publickey | |
| IdentityFile /home/user/.ssh/id_rsa |
| #!/usr/bin/env ruby | |
| #/ Usage: <progname> [options]... | |
| #/ How does this script make my life easier? | |
| # ** Tip: use #/ lines to define the --help usage message. | |
| $stderr.sync = true | |
| require 'optparse' | |
| # default options | |
| flag = false | |
| option = "default value" |
| #!/bin/bash | |
| # A simple script to backup an organization's GitHub repositories. | |
| #------------------------------------------------------------------------------- | |
| # NOTES: | |
| #------------------------------------------------------------------------------- | |
| # * User @jimklimov (and probably some others called out in the long comment | |
| # thread below) have modified this script to make it more robust and keep | |
| # up with various changes in the GitHub API and response format at: | |
| # https://github.com/jimklimov/github-scripts |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| // Suggestions from golang-nuts | |
| // http://play.golang.org/p/Ctg3_AQisl |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # This configuration requires Vagrant 1.5 or newer and two plugins: | |
| # | |
| # vagrant plugin install vagrant-hosts ~> 2.1.4 | |
| # vagrant plugin install vagrant-auto_network ~> 1.0.0 | |
| # | |
| # After installation, the following steps will spin up a master and agent that | |
| # can communicate with each other: |
| #!/bin/bash | |
| file=$1 | |
| test -z $file && echo "file required." 1>&2 && exit 1 | |
| git filter-branch -f --index-filter "git rm -r --cached $file --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all | |
| git ignore $file | |
| git add .gitignore | |
| git commit -m "Add $file to .gitignore" |
| # a config.ru, for use with every rack-compatible webserver. | |
| # SSL needs to be handled outside this, though. | |
| # if puppet is not in your RUBYLIB: | |
| # $LOAD_PATH.unshift('/opt/puppet/lib') | |
| $0 = "master" | |
| # if you want debugging: | |
| # ARGV << "--debug" |