Skip to content

Instantly share code, notes, and snippets.

View sirhopcount's full-sized avatar

Adrian van Dongen sirhopcount

View GitHub Profile
#!/bin/bash
#
# This is the script responsible for updating our Puppet master data,
# which includes modules, manifests, hiera data, etc. All of this data is
# managed in a git repository and upon "deploy" it is synced into the Puppet
# master.
#
# This script mirrors the remote git repository, looking for branches that
# match "env-*" (such as "env-production" or "env-test"). Each of these branches
# is setup as an environment into the Puppet master's data files. The
@sirhopcount
sirhopcount / vrancid
Created November 26, 2012 13:37 — forked from davidkrider/vrancid
RANCID for Vyatta
#! /usr/bin/perl
#
# usage: vrancid [-dV] [-l] [-f filename | hostname]
#
use Getopt::Std;
getopts('dflV');
if ($opt_V) {
print "rancid 2.3.6\n";
exit(0);
}
@sirhopcount
sirhopcount / find_uncommitted.rb
Created November 26, 2012 13:37 — forked from davidkrider/find_uncommitted.rb
Rancid script to find uncommitted changes which would be lost on a reboot
#!/usr/bin/ruby
File.open("all/router.db").each do |line|
(device, type, state) = line.split(":")
if state == "up\n"
if type == "vyatta"
command = "~/bin/clogin"
written = `#{command} -c 'cat /opt/vyatta/etc/config/config.boot' #{device} > #{dev`
running = `#{command} -c 'show configuration' #{device} > #{device}.running`
else
@sirhopcount
sirhopcount / .bashrc
Created December 7, 2012 05:21 — forked from elasticdog/.gitconfig
Git Workflow
### git aliases
# shortcut for git-add hunk staging
alias gap='git add --patch'
alias gmup='master_update'
alias gmpu='master_push'
alias gsyn='sync_repo'
alias gbcr='branch_create'
alias gbup='branch_update'
/fi reconnect
2013-03-07 08:59:00 [INFO] [Minecraft] An unknown error occurred while attempting to perform this command
2013-03-07 08:59:00 [INFO] [STDERR] java.lang.NullPointerException
2013-03-07 08:59:00 [INFO] [STDERR] at irclib.IRCLib.close(IRCLib.java:52)
2013-03-07 08:59:00 [INFO] [STDERR] at com.forgeirc.CommandFI.b(CommandFI.java:31)
2013-03-07 08:59:00 [INFO] [STDERR] at x.a(CommandHandler.java:82)
2013-03-07 08:59:00 [INFO] [STDERR] at ho.al(DedicatedServer.java:308)
2013-03-07 08:59:00 [INFO] [STDERR] at ho.r(DedicatedServer.java:270)
2013-03-07 08:59:00 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:599)
2013-03-07 08:59:00 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497)
# Configuration file
####################
# centrifugeelectrolyze
####################
centrifugeelectrolyze {
B:Blazepowder=true
B:Clay=true
B:Dirt=true
# Configuration file
####################
# alloysmelter
####################
alloysmelter {
I:item.ingotCopper=20
I:item.ingotGold=10
I:item.ingotIron=15
# Configuration file
####################
# addonrecipes
####################
addonrecipes {
B:AESU=true
B:AdvancedPump=true
B:AdvancedSafe=true
source "http://rubygems.org"
gem "rails", "3.2.5"
# Supported DBs
gem "sqlite3"
gem "mysql2"
# Auth
gem "devise", "~> 2.1.0"
Complete gem list for gitlab on raspberry pi (raspbian):
gitlab@raspberrypi:~/gitlab$ bundle list
Gems included by the bundle:
* actionmailer (3.2.5)
* actionpack (3.2.5)
* activemodel (3.2.5)
* activerecord (3.2.5)
* activeresource (3.2.5)
* activesupport (3.2.5)