Skip to content

Instantly share code, notes, and snippets.

@runiq
runiq / gist:ebc8d82159f464cce3096a15ebe16ba2
Created May 16, 2018 07:31
kubectl describe pod cilium-rdf7b -n kube-system
Name: cilium-rdf7b
Namespace: kube-system
Node: minikube/192.168.122.161
Start Time: Wed, 16 May 2018 09:27:54 +0200
Labels: controller-revision-hash=1419074980
k8s-app=cilium
kubernetes.io/cluster-service=true
pod-template-generation=1
Annotations: prometheus.io/port=9090
prometheus.io/scrape=true

Keybase proof

I hereby claim:

  • I am runiq on github.
  • I am runiq (https://keybase.io/runiq) on keybase.
  • I have a public key ASAIYFKfBT8PL84pP_-kN5wHrNsUYlZzchaVWkY1C7DMrwo

To claim this, I am signing this object:

@runiq
runiq / SCGwN.py
Last active December 14, 2016 14:13
import re
tags = { 'otag': re.escape('{{'), 'ctag': re.escape('}}') }
# Taken from anki.template.template.Template.compile_regexps()
# section = r"%(otag)s[#^]([^}]*)%(ctag)s((?s).+?)%(otag)s/\1%(ctag)s" % tags
# tag = r"%(otag)s([=&!>{]?)((?![#^/]).+?)\1?%(ctag)s+"
sectionAndTag = r"""%(otag)s # Section regex first
([#^]) # Separates section from tag (#1)
@runiq
runiq / PKGBUILD
Created July 9, 2014 16:39
python2-vdirsyncer 0.2.1 PKGBUILD
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
pkgname=python2-vdirsyncer
_pkgname=vdirsyncer
pkgver=0.2.1
pkgrel=1
pkgdesc="Synchronize CalDAV and CardDAV"
arch=('any')
url="https://github.com/untitaker/vdirsyncer"
license=('MIT')
@runiq
runiq / PKGBUILD.diff
Created June 12, 2014 16:55
python2-keyring PKGBUILD diff with keyring2 executable
--- python2-keyring/PKGBUILD 2014-03-27 01:14:38.000000000 +0100
+++ python2-keyring-new/PKGBUILD 2014-06-12 18:48:44.685878925 +0200
@@ -17,6 +17,12 @@
'kdebindings-python2: Kde integration')
md5sums=('7746c545debacf983ec1c01966cacec3')
+prepare() {
+ cd "$srcdir/keyring-$pkgver"
+ # Install executable as keyring2
+ sed -i 's/keyring=keyring\.cli:main/keyring2\=keyring.cli:main/' setup.py
@runiq
runiq / extract_sequences_multi.py
Created November 14, 2013 15:01
Extract_sequences.py für mehrere CSV-Dateien
#! /usr/bin/env python2
import argparse
import csv
def write_sequence(name, sequence, fh):
fh.write("> " + name + "\n")
fh.write(sequence + "\n")
@runiq
runiq / check_sr_modified_patrice.py
Created November 10, 2013 17:35
check_sr_modified_patrice.py
#!/usr/bin/env python
"""
Check XenServer SR utilization.
(C) Copyright Pekka Panula/Sofor Oy
Licence: GPLv2 or later
Author: Pekka Panula, E-Mail: pekka.panula@sofor.fi
Contact if bugs, etc.
- Uses HTTPS to connect to XenServer; if you have a pool, use a
@runiq
runiq / PKGBUILD
Last active December 24, 2015 13:49
pymol-svn PKGBUILD
# Maintainter: Duca
# Contributor: yescalona
# Contributor: Carlos Ríos V. (aka crosvera)
# Contributor: Patrice Peterson <runiq at archlinux dot us>
pkgname=pymol-svn
_pkgname=pymol
pkgver=4043
pkgrel=2
pkgdesc="A user-sponsored molecular visualization system on an open-source foundation"
@runiq
runiq / sbmod.txt
Created August 19, 2013 16:05
Starbound Modding Ideas
"+" stuff should (hopefully) be easily moddable
Uncategorized
-------------
- in-game multiplayer setup :)
- *in-game* Munin integration
Animations/Graphics/Sounds/etc.
-------------------------------
- new melee weapon animations
@runiq
runiq / x-arrow-mwe.tex
Created July 28, 2013 13:17
MW for -X> arrow
\documentclass{article}
\usepackage{chemfig}
\makeatletter
\definearrow9{-X>}{%
\CF@arrow@shift@nodes{#7}%
\expandafter\draw\expandafter[\CF@arrow@current@style,-CF@full](\CF@arrow@start@node)--(\CF@arrow@end@node)node[midway](Xarrow@arctangent){};%
\edef\CF@tmp@str{\ifx\@empty#1\@empty[draw=none]\fi}%
\expandafter\draw\CF@tmp@str (Xarrow@arctangent)%
arc[radius=\CF@compound@sep*\CF@current@arrow@length*\ifx\@empty#8\@empty0.333\else#8\fi,start angle=\CF@arrow@current@angle-90,%