Skip to content

Instantly share code, notes, and snippets.

View branan's full-sized avatar
💩

Branan Riley branan

💩
View GitHub Profile
@branan
branan / gist:3230613
Created August 1, 2012 20:53
trebfuckitillspellitlater stained glass contest
Shorah everyone!
As most of you know already, the Great Zero link has been moved from your neighborhoods to the Nexus. For the past few months this has left an empty spot in your linking rooms.
As of today, that spot has been filled with a link to Trebfuckitillspellitlater.
Unfortunately, there is no stained glass for that age. So we're asking you, the explorers, to submit your designs.
<technical details here>
branan@bokrug ~/plasma/Wondruss/build $ ./wondruss
INFO [lobby] Auth startup OK! continuing...
INFO [lobby] Got connection from ::ffff:127.0.0.1
DEBUG [auth ] Receiving new socket from lobby
INFO [auth ] Successfully transferred ::ffff:127.0.0.1 from lobby.
DEBUG [auth ] Got message 1 from client ::ffff:127.0.0.1
INFO [auth ] ::ffff:127.0.0.1 is build # 9
DEBUG [auth ] Flushing 6 bytes of data to ::ffff:127.0.0.1
DEBUG [auth ] Got message 0 from client ::ffff:127.0.0.1
DEBUG [auth ] Ponging ::ffff:127.0.0.1
class application (
$db_host = false,
# other parameters
) {
if $db_host {
$real_db_host = $db_host
} else {
include application::db
$real_db_host = localhost
branmac% git-summary
project: nova
commits: 411
files : 102
authors:
309 Dan Bode 75.2%
21 François Charlier 5.1%
18 Adam Gandelman 4.4%
13 Branan Purvine-Riley 3.2%
exec { "/bin/dd if=/dev/zero of=${image} bs=1024 count=13312":
creates => '/var/volume',
before => Exec["/sbin/losetup ${loop} ${image}"]
}
#include <memory>
#include <set>
#include <string>
#include <unordered_map>
class GarbageCollector {
public:
static GarbageCollector& instance() {
static GarbageCollector gc;
return gc;
#include <memory>
#include <string>
#include <unordered_map>
namespace SensCore {
class GarbageCollector {
public:
static GarbageCollector& instance() {
static GarbageCollector gc;
notice: /Stage[main]/Mysql::Server/Package[mysql-server]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Mysql/Package[mysql_client]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]//Mysql::Db[testdb]/Database[testdb]/ensure: created
notice: /Stage[main]//Mysql::Db[testdb]/Database_user[user@localhost]/ensure: created
notice: /Stage[main]//Mysql::Db[testdb]/Database_grant[user@localhost/testdb]/privileges: privileges changed '' to 'all'
notice: /Stage[main]//Group[puppet]/ensure: created
notice: /Stage[main]/Mysql::Config/File[/etc/mysql/my.cnf]/content: content changed '{md5}7424e1ae4a4f3eaf8f1971cf80762978' to '{md5}31067e9939d7d1c7e5bb7a02cf11f0f4'
notice: /Stage[main]/Mysql::Config/Exec[mysqld-restart]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Mysql::Server::Account_security/Database_user[@precise]/ensure: removed
notice: /Stage[main]/Mysql::Server::Account_security/Database_user[root@precise]/ensure: removed
@branan
branan / setup.sh
Created May 24, 2012 23:11
Apt module integration test demo
# Required dependencies: VirtualBox, ruby1.8, rubygems, bundler
# Make sure your ruby is 1.8. 1.9 will cause errors currently
git clone git://github.com/branan/puppet-acceptance
cd puppet-acceptance
gem build puppet_acceptance.gemspec
gem install puppet_acceptance-0.0.1.gem
cd ..
require 'yaml'
def dir_to_array(dir)
entries = []
Dir.entries(dir).each do |entry|
if entry == "." or entry == ".."
next
end
p "#{dir}/#{entry}"
if File.directory?("#{dir}/#{entry}")