Skip to content

Instantly share code, notes, and snippets.

View MrElendig's full-sized avatar
🐈

MrElendig

🐈
  • Nazi moonbase (on the moon)
View GitHub Profile
@MrElendig
MrElendig / gist:3709143
Created September 12, 2012 19:04
horrible json parsing
#!/usr/bin/env python3
import json
json_string = '''
{
"type": "info",
"results": {
"Maintainer": "falconindy",
"ID": "44921",
==> Determining latest git revision...
-> Version found: 20120814
==> Making package: weechat-git 20120814-1 (ty. 14. aug. 18:55:34 +0200 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connecting to GIT server....
import XMonad
main = xmonad defaultConfig { modMask = mod4Mask
, terminal = "urxvt"
}
Section "InputClass"
Identifier "Hello-Kitty Keyboard"
MatchIsKeyboard "yes"
Option "XkbLayout" "whateverlayoutyouwantgoeshere"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
@MrElendig
MrElendig / PKGBUILD
Created April 10, 2012 19:06 — forked from anonymous/PKGBUILD
PKGBUILD for kernel
# $Id: PKGBUILD 130991 2011-07-09 12:23:51Z thomas $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgbase=linux
pkgname=linux-ananda
# pkgname=linux-custom # Build kernel with a different name
_kernelname=${pkgname#linux}
_basekernel=3.3
pkgver=${_basekernel}.1
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
import XMonad
import XMonad.Config.Azerty
main = xmonad azertyConfig { modMask = mod4Mask
, anythingelseyouwant
}
#!/usr/bin/python2
"""
XTerm Colour Chart 2.0
Ian Ward, 2007
This file is in the Public Domain, do with it as you wish.
"""
import sys
dfhack: hooking successful
Identifying DF version.
Loading hack/Memory.xml ... OK
Loaded 44 DF versions.
Version: v0.31.25 linux
Initializing Console.
Console is running.
Initializing Plugins.
d_init: 168
world: 1651340 ui: 28316 b_stock: 1200
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst
# Version: 0.02
# general configuration:
timeout 5
default 0
color light-blue/black light-cyan/blue