Skip to content

Instantly share code, notes, and snippets.

View haf's full-sized avatar
💹
currently succeeding...

Henrik Feldt haf

💹
currently succeeding...
View GitHub Profile
@haf
haf / logstash
Created July 24, 2012 00:41 — forked from calston/logstash
Logstash init script
#! /bin/sh
### BEGIN INIT INFO
# Provides: logstash
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
{
"@source": "nlog://isomorphism/insert_data.Program",
"@timestamp": "2012-07-27T12:04:21.9015302Z",
"@message": "Mcsweeney's sed aliquip.",
"@fields": {
"curr-position": "live-stream"
},
"@tags": [
"mixtape"
],
@haf
haf / install-mcollective.sh
Created August 3, 2012 12:02
Installing mcollective-client from source on clean system
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install curl ruby git devscripts debhelper dpatch cdbs rubygems -y # installs 1.8.7 on 12.04 ubuntu
git clone git://github.com/puppetlabs/marionette-collective.git
cd marionette-collective/
sudo gem install stomp --no-rdoc --no-ri # missing dependency from .deb file
sudo gem install rake --no-rdoc --no-ri
rake deb
cd build
@haf
haf / install-git.sh
Created August 22, 2012 14:38
Installing git and git-subtree from source in ubuntu as packages
# use with: curl -L https://raw.github.com/gist/3426227 | bash
# get git binary, then git with git
sudo apt-get install git -y
git clone https://github.com/git/git.git
# remove your binary/package
sudo apt-get remove git -y
sudo apt-get install make checkinstall libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev asciidoc -y
@haf
haf / gist:3452960
Created August 24, 2012 17:07
Build problems
Using worker: ruby4.worker.travis-ci.org:ruby-3
2
3$ cd ~/builds
4$ export PUPPET_VERSION=2.7.17
5$ git clone --depth=100 --quiet git://github.com/haf/puppet-riak.git haf/puppet-riak
@haf
haf / Output on 'riak console'
Created August 27, 2012 21:29
Riak boot fail
Root: /usr/lib/riak
{{bad_heart_flag,disabled},{heart,check_start_heart,[]}}
{"could not start kernel pid",heart,{error,start_error}}
could not start kernel pid (heart) ()
@haf
haf / gist:3556772
Created August 31, 2012 18:12
Puppet error
Error: /Stage[main]/Riak::Vmargs/File[/etc/riak/vm.args]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /etc/riak/vm.args.puppettmp_433 at 48:/tmp/vagrant-puppet/modules-0/riak/manifests/vmargs.pp
Next run the template will be there and it will work.
Source
# source:
# Sets the source parameter for the configuration file.
# Mutually exclusive with vm_args_template.
#
@haf
haf / gist:3560970
Created August 31, 2012 23:25
Riak unmet deps on vanilla Debian Squeeze
vagrant@riak-5:/tmp$ sudo dpkg -i riak-1.2.0.deb
(Reading database ... 31870 files and directories currently installed.)
Preparing to replace riak 1.2.0-1 (using riak-1.2.0.deb) ...
Unpacking replacement riak ...
dpkg: dependency problems prevent configuration of riak:
riak depends on libc6 (>= 2.15); however:
Version of libc6 on system is 2.11.3-3.
riak depends on libssl1.0.0 (>= 1.0.0); however:
Package libssl1.0.0 is not installed.
riak depends on libtinfo5; however:
@haf
haf / install-mono.sh
Created September 13, 2012 09:10
Installing Mono 2.10.8 + MonoDevelop 3 + F# 2.0 in ubuntu 12.04
#!/bin/sh
# change this to the version that you want to install
# in order for this script to work, the version has to
# exist as a tag or branch on git as "monodevelop-$MD_VER"
MD_VER=3.0.3.5
# the branch/tag that we will checkout to build and install
MD=monodevelop-$MD_VER
using System;
namespace Messages
{
public interface FoundFile
{
Uri Location { get; }
}
public class FoundImpl
: FoundFile