Skip to content

Instantly share code, notes, and snippets.

View andrewshadura's full-sized avatar

Andrej Shadura andrewshadura

View GitHub Profile
#!/bin/sh
set -e
PREREQ=""
prereqs () {
echo "${PREREQ}"
}
@andrewshadura
andrewshadura / gtk.css
Created March 28, 2012 11:05
GTK+ 3 done right
.menu {
border-style: solid;
border-width: 1;
}
.menubar .menuitem *:prelight,
.menubar .menuitem:prelight {
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color;
}
#!/usr/bin/env tclsh
namespace eval ::autofile {
}
rename ::proc ::autofile::proc
rename ::open ::autofile::open
set ::autofile::files(::) {}
::autofile::proc proc {name args body} {
@andrewshadura
andrewshadura / Makefile
Last active August 29, 2015 14:16 — forked from cjxgm/makefile
.DEFAULT_GOAL := all
.PHONY: ${MAKECMDGOALS}
$(filter-out all,${MAKECMDGOALS}) all: .forward-all
@# no op
.forward-all:
${MAKE} -C build ${MAKECMDGOALS}
${MAKEFILE_LIST}: ;
.SUFFIXES:
@andrewshadura
andrewshadura / bpi_leds.c
Created February 3, 2015 12:15
Configure BananaPi LEDs
/*
* Configure the blue led on BananaPi
*
* based on Roman Reichel's code, which itself is
*
* based on mii-tool from David A. Hinds <dhinds@pcmcia.sourceforge.org>
*
* http://sourceforge.net/projects/net-tools
*
* which itself is based on mii-diag by Donald Becker <becker@scyld.com>
@andrewshadura
andrewshadura / OpenStreetMap_on_Facebook.user.js
Last active August 29, 2015 14:13
OpenStreetMap links on Facebook
// ==UserScript==
// @name OpenStreetMap on Facebook
// @namespace andrew@shadura.me
// @include *://*.facebook.com/*
// @version 1
// @grant none
//
// ==/UserScript==
var f = (function () {
From 47946d0a8a68a8e260c9a44e8b2ab448b86f946e Mon Sep 17 00:00:00 2001
From: Andrew Shadura <andrew@shadura.me>
Date: Thu, 27 Aug 2015 18:59:12 +0200
Subject: Add Python3 compatibility
diff --git a/reconfigure/parsers/iniparse/config.py b/reconfigure/parsers/iniparse/config.py
index d007f16..cc37ac4 100644
--- a/reconfigure/parsers/iniparse/config.py
+++ b/reconfigure/parsers/iniparse/config.py
@@ -143,7 +143,7 @@ class BasicConfig(ConfigNamespace):