- 2010 InnoDB 5.1 announced, will first ship with MySQL 5.5.
- Historically InnoDB development lags while MySQL is trying to GA
- lots of things fixed in InnoDB since MySQL 5.0
- important note -- plugin version of InnoDB is not the default in 5.1
This file contains hidden or 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
def daemon_monitoring(w, options = {}) | |
# ... | |
w.start_if do |start| | |
start.condition(:process_running) do |c| | |
c.interval = 30.seconds | |
c.running = false | |
c.notify = 'ymorimo' | |
end | |
end | |
# ... |
This file contains hidden or 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 | |
# Script to import tumblr posts into local markdown posts ready to be consumed by Jekyll. | |
# Inspired by New Bamboo's post http://blog.new-bamboo.co.uk/2009/2/20/migrating-from-mephisto-to-jekyll | |
# Supports post types: regular, quote, link, photo, video and audio | |
# Saves local copies of images | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' |
This file contains hidden or 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
application: you-app-name-here | |
version: 1 | |
runtime: python | |
api_version: 1 | |
default_expiration: "30d" | |
handlers: | |
- url: /(.*\.(appcache|manifest)) | |
mime_type: text/cache-manifest |
This file contains hidden or 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 'chef/knife' | |
module KnifePlugins | |
class Ec2AmisUbuntu < Chef::Knife | |
deps do | |
begin | |
require 'ubuntu_ami' | |
rescue LoadError | |
Chef::Log.error("Could not load Ubuntu AMI library.") |
This file contains hidden or 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
var http = require('http'); | |
var server = http.createServer(function (req, resp) { | |
if(req.url.match('redir')) { | |
resp.writeHead(301, {'Location':'http://google.com/', 'Expires': (new Date).toGMTString()}); | |
resp.end(); | |
} else { | |
resp.writeHead(200, {'content-type': 'text/plain', 'content-length':4}); | |
resp.end('Main'); | |
} | |
}); |
This file contains hidden or 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
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
Cloning into rvm... | |
remote: Counting objects: 4675, done. | |
remote: Compressing objects: 100% (2353/2353), done. | |
remote: Total 4675 (delta 3023), reused 3187 (delta 1672) | |
Receiving objects: 100% (4675/4675), 1.56 MiB | 659 KiB/s, done. | |
Resolving deltas: 100% (3023/3023), done. | |
WARNING: Could not source script '/Users/sumeetjain/.rvm/scripts/base', file does not exist. RVM will likely not work as expected. | |
WARNING: Could not source script '/Users/sumeetjain/.rvm/scripts/version', file does not exist. RVM will likely not work as expected. | |
WARNING: Could not source script '/Users/sumeetjain/.rvm/scripts/selector', file does not exist. RVM will likely not work as expected. |
This file contains hidden or 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 "open3" | |
def readfile(file) | |
f = File.open(file) | |
lines = f.readlines("\n\n\n\n") | |
lines.each do |line| | |
fields = line.scan(/\s+Date:\s([^\n]+)$\s+Topic:\s([^\n]+)\n(.*)/m) | |
date = fields[0][0].strip |
This file contains hidden or 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
brew upgrade `brew outdated | awk {'print $1'} | xargs` |
This file contains hidden or 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 'fileutils' | |
start_time = Time.now | |
SOURCE_DATABASE = { | |
:name => '...', | |
:user => '...', | |
:password => '...', | |
:host => '...' | |
} |