Skip to content

Instantly share code, notes, and snippets.

View smerrill's full-sized avatar
🤖
Attention is all you need

Steven Merrill smerrill

🤖
Attention is all you need
View GitHub Profile
$ cat ~/bin/rhc-oo
#!/bin/bash
rhc $@ -ladmin -padmin --server <your origin server's FQDN> -k
@smerrill
smerrill / openshift-lein.sh
Created August 30, 2013 17:22
Download and run leiningen (for Clojure) in an OpenShift DIY cartridge.
HTTP_CLIENT="curl --insecure -f -L -o" LEIN_HOME=$OPENSHIFT_DATA_DIR/.lein LEIN_JVM_OPTS="-Duser.home=$OPENSHIFT_DATA_DIR" lein
@smerrill
smerrill / create-openshift-user.sh
Created September 22, 2013 15:45
Script to create an OpenShift user on an OpenShift broker.
$ cd /var/www/openshift/broker
$ rails console
irb(main):> a = OpenShift::MongoAuthService.new()
=> #<OpenShift::MongoAuthService:0x00000004507db0 @salt="changeme">
irb(main):> a.register_user('steven','merrill')
=> true
@smerrill
smerrill / map.geojson
Created October 27, 2013 01:59
Phase2 Office Locations
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smerrill
smerrill / -
Created February 4, 2014 13:49
a
[centos@varnish4 ~]$ sudo yum install varnish-4.0.0
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.lug.udel.edu
* epel: epel.mirror.constant.com
* extras: mirror.atlanticmetro.net
* updates: mirrors.einstein.yu.edu
varnish-4.0 | 951 B 00:00
Setting up Install Process
Resolving Dependencies
@smerrill
smerrill / gist:10544237
Last active August 4, 2023 12:26
Socket Activation Notes
Socket activation:
NGINX=3:4
ListenStream=10646 (IPv6)
ListenStream=0.0.0.0:10646 (IPv4)
BindIPv6Only=ipv6-only
nginx.conf:
server {
'use strict';
var OpenShift = require('node-openshift-client');
var util = require('util');
var qs = require('qs');
// Connect to our OpenShift Origin!
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"

The Test

This test times how long it takes to run puppet apply to install a large amount of monitoring software on a Docker container using the Vagrant 1.6 Docker provisioner. It is a mixed test that measures network speed (downloading large packages and plugins,) disk performance, and CPU performance.

Linode

  • 2 GB Instance
  • Fedora 20
  • Fremont datacenter
# A sample Logstash configuration to parse logs shipped with rsyslog.
# See also information about
input {
file {
path => "/var/log/rsyslog/*/*.log"
exclude => "*.bz2"
type => syslog
sincedb_path => "/var/run/logstash/sincedb"
sincedb_write_interval => 10