Skip to content

Instantly share code, notes, and snippets.

@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."
});
@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 / 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
#!/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
# 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/
@step21
step21 / tlp
Created September 14, 2016 15:52 — forked from orschiro/tlp
X230 Linux Configuration
# ------------------------------------------------------------------------------
# tlp - Parameters for power save
# Hint: some features are disabled by default, remove the leading # to enable
# them.
# Set to 0 to disable, 1 to enable TLP.
TLP_ENABLE=1
# Seconds laptop mode has to wait after the disk goes idle before doing a sync.
@step21
step21 / gist:547e0c9b4bf070fb40972c1cc1ffefe4
Created September 14, 2016 15:52 — forked from taylor/gist:8701482603d44a7c0057
my laptop-mode config differences from working x230 to new x230
ac97-powersave.conf
auto-hibernate.conf
--- /etc/laptop-mode/conf.d/auto-hibernate.conf 2014-09-07 13:38:23.000000000 -0500
+++ auto-hibernate.conf 2013-09-25 21:09:36.603610468 -0500
@@ -8,21 +8,21 @@
# Auto-hibernation settings
# -------------------------
#
-#__COMMENT Using these settings, you can make laptop mode tools automatically put your
-#__COMMENT computer into hibernation when the battery level goes critically low.
#!/usr/bin/bash
echo "Checking the bus for any Nvidia cards.."
if lspci | grep NVIDIA
then
echo "Nvidia GPU detected!"
echo "Switching to Nvidia..."
if pacman -Qe | grep mesa-libgl
then
yes | pacman -S nvidia-libgl lib32-nvidia-libgl
name: ethereum
summary: An Ethereum framework for Snappy Ubuntu
description: A framework providing all the essentials needed in order to develop for and interact with the Ethereum blockchain
#Not allowed anymore
#vendor: Lefteris <lefteris@refu.co>, step21 <step21@devtal.de>
architectures: [amd64]
icon: ethereum_icon.png
#fix version
version: 0.1.5
type: app