Scaling Magento presentation with 60 slides and notes, which was then reviewed by Alan Storm.
--- | |
- hosts: localhost | |
connection: local | |
gather_facts: no | |
vars: | |
region: ap-southeast-2 | |
name: test-vpc | |
tasks: |
--- | |
- name: locale | fixup Ubuntu's broken locale | |
hosts: all | |
sudo: yes | |
gather_facts: True | |
vars: | |
locale: en_AU.UTF-8 | |
tasks: | |
- name: locale | run localegen |
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'gruff' | |
# Let's hack almost everything | |
g = Gruff::Bar.new('800x700') # Define a custom size | |
g.sort = false # Do NOT sort data based on values | |
g.maximum_value = 40 # Declare a max value for the Y axis |
For a moment, I'm going to throw away my automation and configuration management hat. I'll let you know when I put it back on. Also, let's ignore that we're talking about Riak specifically for a moment. Also also, let's ignore any (for a brief moment) the proper role of a package manager.
If you're writing server software, you have two target markets. The system administrator/operations team and the developer.
The main reason you want autostart is to get people up and running quickly. To do this, you need to ship safe and sane defaults. This means something like a default configuration that listens only on localhost.
When connecting to a remote server via SSH it is often convenient to use SSH agent forwarding so that you don't need a separate keypair on that server for connecting to further servers.
This is enabled by adding the
ForwardAgent yes
option to any of your Host
entries in ~/.ssh/config
(or alternatively with the -A
option). Don't set this option in a wildcard Host *
section since any user on the remote server that can bypass file permissions can now als use keys loaded in your SSH agent. So only use this with hosts you trust.
#!/bin/bash | |
# CVE-2013-6393 | |
# See: https://groups.google.com/forum/#!msg/rubysec-announce/3sx25iR7yHQ/gZOBulw_TeYJ | |
# | |
echo "Assumes you use rbenv and assumes your ruby-build is at ~/.rbenv/plugins/ruby-build" | |
echo "This will uninstall all your rbenv managed rubies and install them again." | |
echo "Pulling down the latest ruby-build" | |
cd ~/.rbenv/plugins/ruby-build && git pull && cd - | |
mkdir /tmp/rbenvupgrade | |
for RUBY in ~/.rbenv/versions/* |
[2013-12-22T09:27:50+11:00] DEBUG: Running command: ["git clone https://github.com/puppetlabs/puppetlabs-vcsrepo modules/vcsrepo"] | |
[2013-12-22T09:27:56+11:00] DEBUG: ---STDOUT--- | |
[2013-12-22T09:27:56+11:00] DEBUG: Cloning into 'modules/vcsrepo'... | |
[2013-12-22T09:27:56+11:00] DEBUG: ------------ | |
[2013-12-22T09:27:56+11:00] DEBUG: ---STDERR--- | |
[2013-12-22T09:27:56+11:00] DEBUG: | |
[2013-12-22T09:27:56+11:00] DEBUG: ------------ | |
[2013-12-22T09:27:56+11:00] DEBUG: Running command: ["git checkout -b 0.1.0 0.1.0"] | |
[2013-12-22T09:27:56+11:00] DEBUG: ---STDOUT--- |
% git rev-list HEAD | xargs -n1 sh -c 'git ls-tree -lr $1 | awk "\$4 > (1024*1024*50) { print \"size:\",\$4, \$5 }" | sed -e "s,^,commit:$1 ,"' - | |
commit:fd93322c903a49febe8ad454c9e03a7e86327389 size: 69535125 debian/debian/logstash.war |