Skip to content

Instantly share code, notes, and snippets.

# https://www.dropbox.com/sh/j11fn9hcsvttbul/AACfo97HVg-19wW1Ezwd6dBAa?dl=0 / get debs from here / put into ./shared/ next to Dockerfile
# This builds docker image with lanai enabled clang
# lanaiclang packages should be in the directory "shared" together with this dockerfile
# two scripts are provided for clang-3.9 and llc executable. if additional ones are needed, these can be created by using a different entry point
FROM ubuntu:14.04
MAINTAINER Florian Idelberger <step21@devtal.de>
RUN apt-get update && apt-get install -y build-essential binfmt-support libxml2 python libobjc-4.8-dev lib32gcc1 lib32stdc++6 libc6-i386 libedit2 libpython2.7 libffi-dev libtinfo-dev libjs-jquery libjs-underscore python-six
COPY shared/* /tmp/
#!/usr/bin/bash
xconfig="/etc/X11/xorg.conf"
if [ -e "$xconfig" ]
then
echo "Nvidia xconfig detected"
echo "Switching to mesa..."
sudo pacman -S lib32-mesa-libgl mesa-libgl
sudo rm $xconfig
else
@step21
step21 / index.user.js
Created May 7, 2016 22:15 — forked from ApoorvSaxena/index.user.js
Regex Crossword Debugger
// ==UserScript==
// @name Regex Crossword Debugger
// @namespace http://www.kunxi.org/
// @version 0.2
// @description Check the answers and mark the mismatched regex.
// @author Kun Xi
// @match https://regexcrossword.com/playerpuzzles/*
// @match https://regexcrossword.com/challenges/*
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
@step21
step21 / index.user.js
Created May 7, 2016 22:14 — forked from kunxi/index.user.js
Regex Crossword Debugger
// ==UserScript==
// @name Regex Crossword Debugger
// @namespace http://www.kunxi.org/
// @version 0.1
// @description Check the answers and mark the mismatched regex.
// @author Kun Xi
// @match http://regexcrossword.com/playerpuzzles/*
// @match http://regexcrossword.com/challenges/*
// @require //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
@step21
step21 / keybase.md
Created November 25, 2014 15:15
keybase proof

Keybase proof

I hereby claim:

  • I am step21 on github.
  • I am fl0_id (https://keybase.io/fl0_id) on keybase.
  • I have a public key whose fingerprint is C4B8 CC16 C9A5 DC7C 389F 6DD6 838F 948A 375F 5510

To claim this, I am signing this object:

@step21
step21 / x
Created February 6, 2009 13:30
just uploaded this here so it is easier to install
web-history.js
makeSearchCommand({
name: "web-history",
homepage: "http://pynej.blogspot.com/",
author: { name: "Jeremy Pyne", email: "jeremy.pyne@gmail.com"},
url: "http://www.google.com/history/find?q={QUERY}",
icon: "http://www.google.com/favicon.ico",
description: "Searches Google Web History."
});