Source: http://www.opsreportcard.com/.
- Are user requests tracked via a ticket system?
- Are "the 3 empowering policies" defined and published?
- Does the team record monthly metrics?
## Knife plugin to set node environment | |
# See http://wiki.opscode.com/display/chef/Environments | |
# | |
## Install | |
# Place in .chef/plugins/knife/set_environment.rb | |
# | |
## Usage | |
# Nick-Stielaus-MacBook-Pro:chef-repo nstielau$ knife node set_environment mynode.net my_env | |
# Looking for mynode.net | |
# Setting environment to my_env |
#!/usr/bin/env ruby | |
cbdir=ARGV[0] | |
output = "./deps.dot" | |
puts "Running on #{cbdir}..." | |
cb_meta = Dir.glob("#{cbdir}/*/metadata.rb") | |
fp=File.open(output,"w") |
<?php | |
/** | |
* Please be aware. This gist requires at least PHP 5.4 to run correctly. | |
* Otherwise consider downgrading the $opts array code to the classic "array" syntax. | |
*/ | |
function getMp3StreamTitle($streamingUrl, $interval, $offset = 0, $headers = true) | |
{ | |
$needle = 'StreamTitle='; | |
$ua = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36'; |
#!/bin/sh | |
# linux firewall/forwarding | |
modprobe iptable_nat | |
echo 1 | tee /proc/sys/net/ipv4/ip_forward | |
iptables -t nat -A POSTROUTING -s 10.10.10.1/2 -o eth0 -j MASQUERADE | |
# install openvpn | |
apt-get update && apt-get install -y openvpn | |
cd /etc/openvpn/ | |
INSTANCE=$(curl http://169.254.169.254/latest/meta-data/public-hostname) | |
openvpn --genkey --secret ${INSTANCE}.key |
Source: http://www.opsreportcard.com/.
# This file is the template of an upstart init script for using docker-compose | |
# | |
# Usage: | |
# 1. place docker-compose yaml file (ex. rhodecode/docker-compose.yaml) | |
# 2. run the following lines. | |
# # ln -s docker-compose docker-compose_rhodecode.conf | |
# # initctl reload-configuration | |
# # start docker-compose_rhodecode | |
# | |
# Edit CONF_BASE_DIR if you want to change the location of docker-compose configuration file. |
The Lean Canvas is a version of the Business Model Canvas adapted by Ash Maurya specifically for startups. You can read more about it here.
Problem
Top 3 Problems |
#cloud-config | |
hostname: "set-this" | |
coreos: | |
update: | |
reboot-strategy: "off" | |
units: | |
- name: "default.target" | |
command: "start" |
#!/bin/bash | |
# Expects Ubuntu 16.06 (xenial) and kernel 4.x. | |
# Based upon a blog post by Zach at http://zachzimm.com/blog/?p=191 | |
set -eux | |
# Have the user call sudo early so the credentials is valid later on | |
sudo whoami |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import argparse, sys, boto3 | |
from colorama import Fore, Style | |
def count(my_list, my_key): | |
if my_key not in my_list: | |
return '0' | |
else: |