Skip to content

Instantly share code, notes, and snippets.

View mcallaway's full-sized avatar

Matt Callaway mcallaway

  • Bayer Crop Science
  • Saint Louis
View GitHub Profile
@mcallaway
mcallaway / gist:e1e238c7c89217819d22
Created January 25, 2016 22:02
Here's a script for removing nova instances from your DB.
#!/bin/bash
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@mcallaway
mcallaway / docker.compose.yml
Last active September 8, 2016 08:50
docker-compose setup: docker-registry docker-auth apache redis
docker_auth:
image: "cesanta/docker_auth:stable"
command: --v=2 --alsologtostderr /config/auth_config.yml
ports:
- 5001:5001
volumes:
- ./docker-auth/config:/config:ro
- ./docker-auth/logs:/logs
@mcallaway
mcallaway / Notes
Created April 7, 2016 19:36
Debugging MANIFEST_UNKNOWN
I push an image:
> docker push registry.gsc.wustl.edu/mcallawa/hello-world
The push refers to a repository [registry.gsc.wustl.edu/mcallawa/hello-world]
5f70bf18a086: Pushed
b652ec3a27e7: Pushed
latest: digest: sha256:fea8895f450959fa676bcc1df0611ea93823a735a01205fd8622846041d0c7cf size: 708
I try to pull that image from a different location:
heat_template_version: 2013-05-23
resources:
server_port:
type: OS::Neutron::Port
properties:
network: "development"
fixed_ips:
- subnet: "development-subnet"
heat_template_version: 2014-10-16
description: server cluster
parameters:
size:
type: number
default: 2
description: How many servers
heat_template_version: 2013-05-23
description: Template that installs a CoreOS server.
parameters:
image:
type: string
label: Image name or ID
description: Image to be used for server. Please use an Ubuntu based image.
default: CoreOS-835.9.0
auto lo
iface lo inet loopback
auto em1
allow-bond em1
iface em1 inet manual
bond-master bond0
auto em2
allow-bond em2
auto lo
iface lo inet loopback
#iface em1 inet manual
#iface em2 inet manual
auto br-ex
allow-ovs br-ex
iface br-ex inet static
address 10.200.0.41
netmask 255.255.252.0
gateway 10.200.0.1
@mcallaway
mcallaway / gist:5904940
Created July 1, 2013 21:48
This is a sensu check result...
{
"level": "info",
"message": "publishing check result",
"payload": {
"check": {
"command": "PLENV_VERSION=5.14.1 /etc/sensu/plugins/elasticsearch/query-count.pl -u logstash-elasticsearch-1:9200 -p logstash-general,logstash-app -t 1m -m logstash.message_counts.permission_denied -q '@message:\"permission denied\"'",
"duration": 0.017,
"executed": 1372713467,
"handlers": [
"graphite"
@mcallaway
mcallaway / gist:5601879
Created May 17, 2013 20:50
Can't find RubyGem rubygems
[root@centosdev gems]# irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'gpfsquotad'
Gem::LoadError: Could not find RubyGem rubygems (>= 0)
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:214:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each'