Skip to content

Instantly share code, notes, and snippets.

View refnode's full-sized avatar
🎯
Focusing

Sven Wilhelm refnode

🎯
Focusing
View GitHub Profile
@refnode
refnode / buildout.cfg
Created August 23, 2011 15:59
sp_buildout
##
## buildout configuration file
##
## Project: springpython.context
## Generated: 2011-09-01
[buildout]
parts =
python
scripts
@refnode
refnode / encoder_empty_text.patch
Created September 11, 2011 16:11
XML2Dict Patch for handling empty text, returned as None. NoneType has no String Methods
diff --git a/encoder.py b/encoder.py
index 9b4dc41..f5c1829 100644
--- a/encoder.py
+++ b/encoder.py
@@ -34,9 +34,12 @@ class XML2Dict(object):
ctag = child.tag
cattr
@refnode
refnode / yt-tag
Created September 21, 2012 12:04
liquid template - youtube tag example
{% youtube youtube_video_id %}
@refnode
refnode / gist:4181565
Created December 1, 2012 11:19
Check build deps for python-for-android
DEB_UBUNTU="build_essential zlib1g-dev cython"
# Check installation state of a debian package list.
# Return all missing packages.
function check_pkg_deb_installed() {
PKGS=$1
MISSING_PKGS=""
for PKG in $PKGS; do
CHECK=$(dpkg -s $PKG 2>&1)
if [ $? -eq 1 ]; then
@refnode
refnode / buildout.cfg
Created December 19, 2012 20:10
buildout.cfg for mozilla/circus
## Installation notes for Debian/Ubuntu
## To use buildout you need some c-headerfiles.
## Simply call:
##
## $: wget http://www.python-distribute.org/bootstrap.py
## $: sudo apt-get install libzmq-dev python-dev
## $: python bootstrap.py
## $: bin/buildout
##
## Have fun with the examples
@refnode
refnode / build.sh
Created October 17, 2013 15:29
Mock Buildscript für Apache Thrift RPM
#!/bin/bash
# install package mock from fedora
# yum install rpmdevtools
#
# download thrift rpm from sys.fm
# the srpm file was not build in a clean dev environment,
# so requires some workarounds
# send some patches later
#
@refnode
refnode / python-project.mk
Created March 27, 2015 11:33
Python Project Makefile
#!/usr/bin/env python
# Copyright 2012, refnode <refnode@gmail.com>
# All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@refnode
refnode / build.log
Created March 27, 2015 15:56
Build log for RHEL salt-testing
Mock Version: 1.2.7
Mock Version: 1.2.7
ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-salt-testing.spec'], chrootPath='/var/lib/mock/fedora-20-x86_64/root'shell=FalseprintOutput=Trueenv={'LANG': 'de_DE.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;<mock-chroot>\x07<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'}gid=135user='mockbuild'timeout=0logger=<mockbuild.trace_decorator.getLog object at 0x1dd9e10>uid=10005)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-salt-testing.spec'] with env {'LANG': 'de_DE.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;<mock-chroot>\x07<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMA
@refnode
refnode / puppet-bootstrap.sh
Created July 12, 2015 18:35
Puppet Bootstrapping
#!/bin/sh
yum install -y git wget curl unzip
yum install -y https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
yum install -y puppet

Keybase proof

I hereby claim:

  • I am refnode on github.
  • I am refnode (https://keybase.io/refnode) on keybase.
  • I have a public key ASAXlGgDqePbTwemNbuV7xRMEdZUmsYYI75qXMKLgQLFcwo

To claim this, I am signing this object: