Skip to content

Instantly share code, notes, and snippets.

View sjourdan's full-sized avatar

Stephane Jourdan sjourdan

View GitHub Profile
@sjourdan
sjourdan / custom.erb
Created March 18, 2015 15:26
custom.erb
<% if @port != 80 -%>
Listen <%= @port %>
<% end -%>
<VirtualHost *:<%= @port %>>
ServerAdmin webmaster@localhost
DocumentRoot <%= @document_root %>
<Directory />
Options FollowSymLinks
@sjourdan
sjourdan / The Operations Report Card.md
Last active December 24, 2023 16:35
The Operations Report Card

The Operations Report Card

Source: http://www.opsreportcard.com/.

Public Facing Practices

  1. Are user requests tracked via a ticket system?
  2. Are "the 3 empowering policies" defined and published?
  3. Does the team record monthly metrics?

Keybase proof

I hereby claim:

  • I am sjourdan on github.
  • I am sjourdan (https://keybase.io/sjourdan) on keybase.
  • I have a public key whose fingerprint is 31D1 CFDB DF8F 1B53 82A1 2FCF 204B F835 CEFF 35EF

To claim this, I am signing this object:

#!/bin/bash
PATHPATCH="/root/patch-ovh"
PATHRCS="/etc/default"
PATHCHECK="/etc/init.d"
PATHINITTAB="/etc"
ECHO="/bin/echo"
APTGET="/usr/bin/apt-get"
WGET="/usr/bin/wget"
RM="/bin/rm"
@sjourdan
sjourdan / gist:3891785
Created October 15, 2012 10:04
shef isolate dev hosts
search(:node, "chef_environment:dev") do |matching_node|
puts matching_node.to_s
end
@sjourdan
sjourdan / gist:3873029
Created October 11, 2012 15:05
git reset --soft HEAD~1
git reset --soft HEAD~1
@sjourdan
sjourdan / chef-ec2.rake
Created September 5, 2011 12:57 — forked from apsoto/chef-ec2.rake
Chef EC2 Node Cleanup task
namespace :ec2 do
# setup chef config
# assumes this file is sibling to .chef dir, ex: CHEF_REPO/tasks
config = File.join(File.dirname(__FILE__), '..', '.chef', 'knife.rb')
Chef::Config.from_file(config)
require 'active_support'
require 'aws'
desc 'Delete any ec2-based chef nodes that no longer exist'