Skip to content

Instantly share code, notes, and snippets.

View i0n's full-sized avatar
👾

Ian Alexander Wood i0n

👾
View GitHub Profile
@i0n
i0n / gist:3cd7549c08f5162af115
Created October 31, 2014 14:42
dmesg output after CoreOS crash
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.16.2+ (buildbot@ip-10-204-3-57) (gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #2 SMP Thu Oct 16 01:11:04 UTC 2014
[ 0.000000] Command line: console=tty0 ro noswap cros_legacy console=hvc0 root=LABEL=ROOT rootflags=subvol=root usr=PARTUUID=7130c94a-213a-4e5a-8e26-6cce9662f132
[ 0.000000] ACPI in unprivileged domain disabled
[ 0.000000] 1-1 mapping on 6d400->8000000
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] Xen: [mem 0x0000000000000000-0x000000000009ffff] usable
[ 0.000000] Xen: [mem 0x00000000000a0000-0x00000000000fffff] reserved
@i0n
i0n / Vagrantfile
Created February 2, 2015 16:38
Vagrant docker host proxy Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 1.6.3"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
@i0n
i0n / license
Created January 27, 2010 12:48 — forked from defunkt/license
#!/bin/sh -e
# Usage: license
# Prints an MIT license.
#
# $ license > COPYING
#!/bin/sh
echo "Copyright (c) `date +%Y` Ian Alexander Wood
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
daemon off;
worker_processes 2;
events {
worker_connections 8192;
}
http {
include mime.types;
default_type application/octet-stream;
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ClarkParker Node experiment</title>
<link rel="stylesheet" href="css/application.css" type="text/css">
</head>
<body>
<h1>YOOOhoooo</h1>
<script src="http://cdn.socket.io/stable/socket.io.js"></script>
process.addListener('uncaughtException', function(err, stack) {
console.log('-------------------');
console.log('Exception: ' + err);
console.log(err.stack);
console.log('-------------------');
});
var http = require('http'),
io = require('socket.io'),
sys = require('sys'),
@i0n
i0n / mongoid error in rails 3 form
Created October 31, 2010 07:05
undefined method `id_criteria' for Array when submitting Rails 3 form containing more than one instance of a relationally associated mongoid document
class Person
include Mongoid::Document
include Mongoid::Timestamps
field :name, :type => String
key :name
references_many :books, :dependent => :destroy
accepts_nested_attributes_for :books
end
class Book
brew install -v io 10:56
==> Build Environment
CC: /usr/bin/cc => /usr/bin/gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
MAKEFLAGS: -j2
/usr/local/bin/git
==> Cloning git://github.com/stevedekorte/io.git
brew doctor 11:00
Your OS X is ripe for brewing.
Any troubles you may be experiencing are likely purely psychosomatic.
server {
server_name explore.reviewomatic.dev.gov.uk;
location / {
proxy_http_version 1.1;
proxy_pass http://127.0.0.1:8096;
}
}
server {
server_name reviewomatic.dev.gov.uk;