Skip to content

Instantly share code, notes, and snippets.

View sirhopcount's full-sized avatar

Adrian van Dongen sirhopcount

View GitHub Profile
#!/usr/bin/env ruby
require 'bundler/setup'
require 'dante'
require 'beaneater'
Dante.run('mailer') do |opts|
# Connect to beanstalkd on default ports
beanstalk = Beaneater::Pool.new ['localhost:11300']
#!/bin/bash
mkdir serf
cd serf/
wget https://dl.bintray.com/mitchellh/serf/0.2.1_linux_amd64.zip
unzip 0.2.1_linux_amd64.zip
fpm -s dir -t deb -n "serf" -v 0.2.1 --prefix /usr/local/bin serf
# This Dockerfile is used to build an image containing basic stuff to be used as a Jenkins slave build node.
FROM datadog/ubuntu:precise
MAINTAINER Ervin Varga <ervin.varga@gmail.com>
# Make sure the package repository is up to date.
RUN apt-get update
# Install a basic SSH server
RUN apt-get install -y openssh-server
RUN mkdir -p /var/run/sshd
root@trustytahr64:~# apt-get remove linux-headers-3.13.0-32-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-generic linux-headers-3.13.0-34 linux-headers-3.13.0-34-generic
linux-headers-generic linux-image-3.13.0-34-generic
linux-image-extra-3.13.0-34-generic linux-image-generic
Suggested packages:
fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
#!/usr/bin/env python
import httplib2
import sys
import json
from urllib import urlencode
h = httplib2.Http(".cache")
print "Please hold while we retrive your IP address..."
r,ip = h.request("http://[fc72:6c3b:8c74:68a7:d8c3:b4e0:6cbd:9588]/ip/","GET")
url = "http://[fc5d:baa5:61fc:6ffd:9554:67f0:e290:7535]/node/details/" + ip + "/save"
print "Looks like your IP is " + ip
grep {
type => "syslog"
match => [ "syslog_program", "drupal" ]
add_tag => "Drupal"
drop => false
}
grok {
type => "syslog"
tags => [ "Drupal" ]
match => [ "@message", "^https?://%{HOSTNAME:drupal_vhost}\|%{NUMBER:drupal_timestamp}\|(?<drupal_action>[^\|]*)\|%{IP:drupal_ip}\|(?<drupal_request_uri>[^\|]*)\|(?<drupal_referer>[^\|]*)\|(?<drupal_uid>[^\|]*)\|(?<drupal_link>[^\|]*)\|(?<drupal_message>.*)" ]
#!/bin/bash
# For Ubuntu. Probably works elsewhere too.
# This script downloads the Raspbian file system into ~/rpi/chroot-raspbian-armhf
# It also chroots you into the directory, so you can act as a Raspbian user.
# This was all taken from here: http://superpiadventures.com/2012/07/development-environment/
mkdir -p ~/rpi
cd ~/rpi
#!/bin/bash
# For Ubuntu. Probably works elsewhere too.
# This script downloads the Raspbian file system into ~/rpi/chroot-raspbian-armhf
# It also chroots you into the directory, so you can act as a Raspbian user.
# This was all taken from here: http://superpiadventures.com/2012/07/development-environment/
mkdir -p ~/rpi
cd ~/rpi
@sirhopcount
sirhopcount / Cli output
Created December 10, 2014 19:15
docker + lita problem
Run lita+docker interactively:
$ sudo docker run -ti --link lita_redis:litadb sirhopcount/lita
Type "exit" or "quit" to end the session.
Lita > quit
Run it as daemon:
$ sudo docker run -d --link lita_redis:litadb sirhopcount/lita
https://web.archive.org/web/20131210001638/http://xecdesign.com/compiling-a-kernel/
https://web.archive.org/web/20131209235952/http://xecdesign.com/compiling-qemu/
https://web.archive.org/web/20131210001407/http://xecdesign.com/working-with-qemu/
https://web.archive.org/web/20131210001526/http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/