Skip to content

Instantly share code, notes, and snippets.

[mysqld]
innodb_buffer_pool_size=1000M
innodb_flush_method=O_DIRECT
innodb_thread_concurrency=8
#innodb_log_file_size=256M BROKEN
innodb_log_buffer_size=4M
#innodb_flush_log_at_trx_commit=2
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="stomp.js"></script>
<script type="text/javascript">
//<![CDATA[
$(function(){
if ("WebSocket" in window) {
@mcolyer
mcolyer / build.sh
Last active December 16, 2015 03:59 — forked from stomita/build.sh
Build PhantomJS
#!/bin/bash
BUILDPACK_PREFIX=/home/ubuntu/phantomjs
PHANTOMJS_VERSION="1.9.0"
PHANTOMJS_DIR="phantomjs-${PHANTOMJS_VERSION}"
INCREMENT=v2
mkdir -p ${BUILDPACK_PREFIX}
sudo apt-get update
sudo apt-get install build-essential chrpath git-core libssl-dev libfontconfig1-dev -y
@mcolyer
mcolyer / chapters-to-sbv.rb
Created January 16, 2014 00:40
A very simple tool to convert from [subler](https://code.google.com/p/subler/) chapter export to SBV subtitle format so that youtube will accept it.
#!/usr/bin/env ruby
contents = File.read(ARGV[0])
values = {}
chapters = []
contents.each_line do |line|
key, value = line.split('=')
values[key] = value.strip
next if key =~ /NAME/