Skip to content

Instantly share code, notes, and snippets.

@garthk
garthk / gist:2084517
Created March 18, 2012 23:14
brew failing to install GNU parallel
hostname:~ user$ brew install -v parallel
==> Downloading http://ftpmirror.gnu.org/parallel/parallel-20120222.tar.bz2
Already downloaded: /Users/user/Library/Caches/Homebrew/parallel-20120222.tar.bz2
/usr/bin/tar xf /Users/user/Library/Caches/Homebrew/parallel-20120222.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/parallel/20120222
./configure --prefix=/usr/local/Cellar/parallel/20120222
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
@garthk
garthk / gist:2201382
Created March 25, 2012 23:20
805 days to download linux-headers despite apt-fast?
Get:1 mirror://mirrors.ubuntu.com/mirrors.txt/ lucid-updates/main linux-headers-2.6.32-40 2.6.32-40.87 [9,941kB]
0% [1 linux-headers-2.6.32-40 9943/9,941kB 0%] 0B/s 805d 9h 39min 21s
@garthk
garthk / gist:2202039
Created March 26, 2012 01:12
Can't install bbb-demo (SOLVED)
root@26797-2-1051166:/etc# apt-get install bbb-demo
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
bbb-playback-slides: Depends: bbb-record-core but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
@garthk
garthk / gist:2202042
Created March 26, 2012 01:13
Can't install bbb-record-core
root@26797-2-1051166:/etc# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.32-39-generic linux-headers-2.6.32-28 linux-headers-2.6.32-39
linux-headers-2.6.32-28-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
@garthk
garthk / gist:2202097
Created March 26, 2012 01:29
Still can't install bbb-record-core
root@spike-112:/opt# apt-get install bbb-record-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
bbb-record-core
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/22.6kB of archives.
After this operation, 258kB of additional disk space will be used.
(Reading database ... 88342 files and directories currently installed.)
@garthk
garthk / gist:2202188
Created March 26, 2012 01:49
Error 500 joining BBB demo meeting (attempt #1)
java.lang.NullPointerException
at org.apache.jsp.demo1_jsp.getJoinURL(demo1_jsp.java:199)
at org.apache.jsp.demo1_jsp._jspService(demo1_jsp.java:889)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
@garthk
garthk / bbb.pp
Created March 26, 2012 03:46
bigbluebutton recipe for Puppet (requires manual fixup: see comments)
class bbb($bbb_hostname = $fqdn, $salt = "d34db33fba5eba11f01dab1e5ca1ab1e") {
exec { "dist upgrade":
refreshonly => true,
command => "/usr/bin/apt-get dist-upgrade",
}
exec { "update and dist upgrade":
refreshonly => true,
command => "/usr/bin/apt-get update",
notify => Exec["dist upgrade"],
}
@garthk
garthk / ubuntu-lucid-node
Created March 30, 2012 04:52 — forked from niallo/ubuntu-lucid-node-zeromq
Puppet class recipe to install Node.JS on Ubuntu 10.04 LTS / Lucid
# Original recipe by niallo: https://gist.github.com/2003430
# Full Puppet module: https://github.com/garthk/puppet-chrislea
#
# Adjustments:
# * Fixed operation on Ubuntu with sources.list.d in /etc/apt
# * Fixed operation on Ubuntu with current add-apt-repository entry filenames
# * Broke out chrislea definition for repository creation
# * Set timeout=3600 for apt-get, which can be slow
# * Avoided apt-get update if it's been done once since add-apt-repository
# * Broke out zeromq
@garthk
garthk / elasticsearch-init.pp
Created April 12, 2012 23:26
File source fallback style for Puppet modules
class elasticsearch {
# ...
file { "/etc/elasticsearch/elasticsearch.yml":
ensure => present,
source => ["puppet:///files/site-elasticsearch/${fqdn}/elasticsearch.yml",
"puppet:///files/site-elasticsearch/elasticsearch.yml",
"puppet:///modules/elasticsearch/elasticsearch.yml"],
owner => root,
group => root,
}
@garthk
garthk / logstash output when log_pusher lacks conf
Created April 13, 2012 04:48
Nutting out AMQP access control with logstash
I, [2012-04-13 00:42:21#21996] INFO -- received: #<Qrack::Transport::Method:0xde81d48 @channel=0, @payload=#<Qrack::Protocol::Connection::Start:0x36673c9f @mechanisms="PLAIN AMQPLAIN", @server_properties={:capabilities=>{}, :copyright=>"Copyright (C) 2007-2012 VMware, Inc.", :information=>"Licensed under the MPL. See http://www.rabbitmq.com/", :platform=>"Erlang/OTP", :product=>"RabbitMQ", :version=>"2.8.1"}, @version_minor=0, @locales="en_US", @version_major=8>>
I, [2012-04-13 00:42:21#21996] INFO -- send: #<Qrack::Transport::Method:0x3efe0ce
9 @channel=0, @payload=#<Qrack::Protocol::Connection::StartOk:0x1901b54e @client_properties={:platform=>"Ruby", :product=>"Bunny", :information=>"http://github.com/ruby-amqp/bunny", :version=>"0.7.8"}, @response={:LOGIN=>"log_pusher", :PASSWORD=>"5adffb33ed2807d12234a6c75be9d022"}, @locale="en_US", @mechanism="AMQPLAIN">>
I, [2012-04-13 00:42:21#21996] INFO -- received: #<Qrack::Transport::Method:0x2ed4a1d3 @channel=0, @payload=#<Qrack::Protocol::Connection::Tune:0x