This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 <[email protected]> | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>.*)" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM litaio/ruby | |
MAINTAINER "Ted Wexler <[email protected]>" | |
RUN apt-get update | |
RUN apt-get install -y redis-server libssl-dev | |
RUN gem install lita | |
ADD conf/ /srv/lita-docker/ | |
WORKDIR /srv/lita-docker | |
RUN bundle install | |
CMD service redis-server start && bundle exec lita start |