Skip to content

Instantly share code, notes, and snippets.

View flaccid's full-sized avatar

Chris Fordham flaccid

View GitHub Profile
@flaccid
flaccid / 10-nvidia-4displays-xinerama-nvsettings.conf
Created October 31, 2014 05:10
lister - Xorg conf - 4 displays, 2 rotated in the middle
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 340.46 (buildmeister@swio-display-x86-rhel47-03) Wed Sep 24 14:38:19 PDT 2014
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 4320 0
Screen 1 "Screen1" 0 0
Screen 2 "Screen2" 3120 0
Screen 3 "Screen3" 1920 0
InputDevice "Keyboard0" "CoreKeyboard"
@flaccid
flaccid / gist:be2a9797eed183454332
Created February 25, 2015 01:03
hostname.rb provider trying everything for node['fqdn']
#
# Cookbook Name:: system
# Provider:: hostname
#
# Copyright 2012-2014, Chris Fordham
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@flaccid
flaccid / gist:e23555fccdd708fa6ac6
Created June 26, 2015 05:12
docker-storage-setup fails to use /dev/xvd0, uses /dev/xda1 instead
# sh -x ./docker-storage-setup.sh
+ set -e
+ POOL_LV_NAME=docker-pool
+ DATA_LV_NAME=docker-pool
+ META_LV_NAME=docker-poolmeta
+ DOCKER_STORAGE=/etc/sysconfig/docker-storage
+ '[' -e /usr/lib/docker-storage-setup/docker-storage-setup ']'
+ source /usr/lib/docker-storage-setup/docker-storage-setup
++ DATA_SIZE=60%FREE
++ CHUNK_SIZE=512K
@flaccid
flaccid / gist:988b6979ab61e133af42
Created July 18, 2015 08:09
Add host (ec2) fails 'Maximum number of retries (60) exceeded'
2015-07-18 07:40:00,148 INFO [:] [] [] [] [main ] [i.c.platform.logback.LogbackStartup ] Logback configured with [jar:file:/var/lib/cattle/lib/0.5.0-SNAPSHOT-66b929b613539f377ece346405da89a7f90d9640-59208a21-12ff-4b03-b315-f88bf2ab21b1/WEB-INF/lib/cattle-framework-logback-0.5.0-SNAPSHOT.jar!/logback/logback.xml]
2015-07-18 07:40:00,177 INFO [:] [] [] [] [main ] [c.s.m.m.i.DefaultModuleDefinitionSet] Loaded module context [bootstrap] in 3150 ms
2015-07-18 07:40:00,177 INFO [:] [] [] [] [main ] [c.s.m.m.i.DefaultModuleDefinitionSet] Module Hierarchy: bootstrap
2015-07-18 07:40:00,178 INFO [:] [] [] [] [main ] [c.s.m.m.i.DefaultModuleDefinitionSet] Module Hierarchy: config-defaults
2015-07-18 07:40:00,178 INFO [:] [] [] [] [main ] [c.s.m.m.i.DefaultModuleDefinitionSet] Module Hierarchy: system
2015-07-18 07:40:00,178 INFO [:] [] [] [] [main ] [c.s.m.m.i.DefaultModuleDefinitionSet] Module Hierarchy: defaults
2015-07-18 07:40:00,178 IN
@flaccid
flaccid / gist:67bf395d9e3827a7606e
Created July 23, 2015 06:49
Rancher failed to find a placement
This file has been truncated, but you can view the full file.
2015-07-23 06:41:24,896 INFO [:] [] [] [] [qtp411390898-44] [c.p.e.p.i.DefaultProcessInstanceImpl] Attempting to run process [service.create:6200] on resource [24]
2015-07-23 06:41:24,897 INFO [1e9f8f83-38ef-45f7-889b-ca21a70d3e4d:6200] [service:24] [service.create] [] [qtp411390898-44] [c.p.e.p.i.DefaultProcessInstanceImpl] Changing state [requested->registering] on [service:24]
2015-07-23 06:41:24,898 INFO [1e9f8f83-38ef-45f7-889b-ca21a70d3e4d:6200] [service:24] [service.create] [] [qtp411390898-44] [c.p.e.p.i.DefaultProcessInstanceImpl] Exiting with code [SCHEDULED] : SCHEDULED
2015-07-23 06:41:24,899 INFO [:] [] [] [] [qtp411390898-44] [c.p.e.p.i.DefaultProcessInstanceImpl] Exiting [SCHEDULED] process [service.create:6200] on resource [24]
2015-07-23 06:41:24,904 INFO [:] [] [] [] [cutorService-13] [c.p.e.p.i.DefaultProcessInstanceImpl] Attempting to run process [service.create:6200] on resource [24]
2015-07-23 06:41:24,910 INFO [c9d28021-b4f2-49d2-81b6-b23e3e3fd972:6200] [service:24] [service.
@flaccid
flaccid / keybase.md
Created August 31, 2015 12:45
keybase.md

Keybase proof

I hereby claim:

  • I am flaccid on github.
  • I am flaccid (https://keybase.io/flaccid) on keybase.
  • I have a public key whose fingerprint is 3DE9 15B2 35BC 4597 ADEF B5C0 CCED 4C56 FF5D CDB6

To claim this, I am signing this object:

@flaccid
flaccid / rs-update-server-array
Created January 21, 2011 02:45
rs-update-server-array
#!/usr/bin/ruby
# rs-update-server-array
require 'rubygems'
require 'getoptlong'
require 'json'
require 'rest_connection'
def usage
@flaccid
flaccid / gist:865285
Created March 11, 2011 01:01
/opt/rightscale/lib/shell_utilities.rb
We couldn’t find that file to show.
********************************************************************************
*RS> Configuring software repositories ****
*RS> Using the following software repositories:
*RS> - Yum::CentOS::Extras ["http://ec2-eu-west-mirror.rightscale.com/centos",
*RS> "http://ec2-eu-west-mirror1.rightscale.com/centos",
*RS> "http://ec2-us-east-mirror.rightscale.com/centos",
*RS> "http://ec2-us-east-mirror1.rightscale.com/centos",
*RS> "http://ec2-us-east-mirror2.rightscale.com/centos"] @ 2010-10-19
*RS> - Apt::Ubuntu::Jaunty
*RS> ["http://ec2-eu-west-mirror.rightscale.com/ubuntu_daily",
# Cookbook Name:: mongodb
# Recipe:: relocate_dbpath
#
# Copyright 2010, RightScale Inc.
#
# Author: Chris Fordham <chris.fordham@rightscale.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at