Skip to content

Instantly share code, notes, and snippets.

View prologic's full-sized avatar
👋
Principal SRE, Founder of Yarn.social and Salty.im

James Mills prologic

👋
Principal SRE, Founder of Yarn.social and Salty.im
View GitHub Profile
@prologic
prologic / genpacmanstatic
Created March 12, 2015 08:59
created by github.com/tr3buchet/gister
#!/bin/bash -e
unset asroot
if test 0"$ASROOT" = 01; then
asroot=--asroot
fi
export ABSROOT=$(readlink -f abs)
mkdir -p "$ABSROOT"
@prologic
prologic / test.py
Last active August 29, 2015 14:16
created by github.com/tr3buchet/gister
#!/usr/bin/env python
from io import BytesIO
from lxml import etree, objectify
xml = """<root xmlns:cci="http://www.w3.org/TR/html4/"><cci:p>Body text <cci:bold class="character" displayname="bold" name="bold">THISTEXTISBOLD </cci:bold>this text isnt<cci:bold class="character" displayname="bold" name="bold"><cci:underline class="character" displayname="underline" name="underline">THISTEXTISBOLDANDUNDERLINED</cci:underline></cci:bold> Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah</cci:p></root>""" # noqa
@prologic
prologic / build.sh
Last active November 3, 2024 19:59
iptables built as a static standalone binary
name=iptables
version=1.4.21
release=1
source=(ftp://ftp.netfilter.org/pub/iptables/$name-$version.tar.bz2)
PKG="$(pwd)/pkg"
if [ -d $PKG ]; then
mkdir -p $PKG
fi
@prologic
prologic / gist:6932f10add56db6bac14
Created March 10, 2015 02:56
created by github.com/tr3buchet/gister
prologic@daisy
Tue Mar 10 12:57:51
~
$ python
Python 2.7.9 (default, Feb 23 2015, 19:13:44)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from circuits import Event, Component, Debugger
>>> class App(Component):
... def foo(self):
@prologic
prologic / Pkgfile
Created March 8, 2015 12:31
created by github.com/tr3buchet/gister
name=iptables
version=1.4.21
release=1
source=(
ftp://ftp.netfilter.org/pub/iptables/$name-$version.tar.bz2
0001-fix-static-link.patch
0002-iptables-ip-6-tables-save.c-remove-dlfcn.h-include.patch
)
build () {
@prologic
prologic / .config
Created March 3, 2015 12:35
created by github.com/tr3buchet/gister
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2015.05-git-00220-g9142661 Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOSTARCH_NEEDS_IA32_COMPILER=y
#
# Target options
#
@prologic
prologic / docker
Created March 2, 2015 09:31
created by github.com/tr3buchet/gister
#!/bin/bash
#
# Docker Functions and Aliases
#
# Version: 0.0.3
# Last Modified: 2015030200
if [ -f /usr/local/etc/bash_completion.d/docker ]; then
source /usr/local/etc/bash_completion.d/docker
@prologic
prologic / 4_build_busybox.sh
Created March 1, 2015 15:40
created by github.com/tr3buchet/gister
#!/bin/sh
cd work/busybox
# Change to the first directory ls finds, e.g. 'busybox-1.23.1'
cd $(ls -d *)
# Setup Cross Comiler
export PATH=$HOME/x-tools/x86_64-unknown-linux-uclibc/bin:$PATH
@prologic
prologic / 4_build_busybox.sh
Created March 1, 2015 15:39
created by github.com/tr3buchet/gister
#!/bin/sh
cd work/busybox
# Change to the first directory ls finds, e.g. 'busybox-1.23.1'
cd $(ls -d *)
# Setup Cross Comiler
export PATH=$HOME/x-tools/x86_64-unknown-linux-uclibc/bin:$PATH
@prologic
prologic / session.sh
Created February 22, 2015 23:25
CRUX 3.1 -- Various rc issues and start-stop-daemon
# Without start-stop-daemon
# prt-get search start-stop-daemon
No matching packages found
# prt-get depinst dovecot &> dovecot.log
# /etc/rc.d/dovecot start
SSL certificate /etc/ssl/certs/dovecot.crt with key /etc/ssl/keys/dovecot.key for host media.local created
# ps aux | grep dovecot
root 6945 0.0 0.0 19744 1368 ? Ss 19:18 0:00 /usr/sbin/dovecot
dovecot 6946 0.0 0.0 9240 968 ? S 19:18 0:00 dovecot/anvil