Skip to content

Instantly share code, notes, and snippets.

View enplotz's full-sized avatar

Manuel Hotz enplotz

  • KNIME GmbH
  • Germany
View GitHub Profile
@enplotz
enplotz / homework-db.txt
Last active May 2, 2019 09:30
Homework DB
group: homework example
description[[
Example student database as a running example in our lecture.
]]
exercises = {
cat:string, eno:number, topic:string, maxpt:number
'H', 1, 'Relational Algebra', 10
'H', 2, 'SQL', 10
'M', 1, 'SQL', 14
group: barcrawl
description[[
bar crawl planning database
]]
Bars = { bar:string, address:string, capacity:number, phone:string, owner:string
'Klimperkasten', 'Bodanstrasse 40', 50, '0753123408', 'Freddy'
'Heimat', 'Schreibergasse 2', 100, '0753123355', 'Freddy'
'Seehas', 'Wiesenstrasse 4', 28, '075319227520', 'Sung'
@enplotz
enplotz / README.md
Created August 12, 2016 17:30
VPN Uni Konstanz without Cisco AnyConnect

VPN Uni Konstanz without Cisco AnyConnect

Dependencies:

  • homebrew
  • openconnect
  • tuntap
  • shell access and sudo

Installation

@enplotz
enplotz / keybase.md
Created April 2, 2015 11:01
keybase.io verification

Keybase proof

I hereby claim:

  • I am enplotz on github.
  • I am enplotz (https://keybase.io/enplotz) on keybase.
  • I have a public key whose fingerprint is 7D69 3E2D 0CE4 7FB4 DE0C E280 7710 E686 02A9 DAD0

To claim this, I am signing this object:

@enplotz
enplotz / git-init
Last active August 29, 2015 14:00
Initialize a git repository with an empty root commit. This allows for easier rebases which include the root commit.
alias git-init='git init . && git commit --allow-empty -m "Root commit."'
@enplotz
enplotz / README.md
Created March 24, 2014 19:36
Activate and Deactivate function keys using AppleScript.

Location Aware Functional Keys

  • Put both scripts in Automator apps
  • Set ControlPlane to start (and hide) both apps
  • Grant Accessibility permissions to Automator
@enplotz
enplotz / 28blogslater-dejustified.js
Created March 24, 2013 19:04
Code for a bookmarklet to de-justify the text on 28blogslater.de
javascript:
(
function()
{
var entries = document.getElementsByClassName("entry-content");
for (var i=0; i < entries.length; ++i) {
var entry = entries[i];
if( entry.style.textAlign === "left" ){
entry.style.textAlign = "justify";
} else {
@enplotz
enplotz / tm2-shortcuts-osx.textile
Created September 11, 2012 13:41
Textmate 2 Shortcuts (Mac OS X)

Navigation in the File Browser

⌘⇡ Go to Enclosing Folder
⌘⇣ Open
⌘⇠ Go Back
⌘⇢ Go Forward
Rename
QuickLook
⇧⌘N New Folder
⌥⌘N New Tab
@enplotz
enplotz / hamlhtml5boilerplate.html.haml
Created February 22, 2012 22:13 — forked from neiled/hamlhtml5boilerplate.html.haml
My haml version of the html 5 boiler plate code
!!! 5
/[if lt IE 7] <html lang="en" class="no-js ie6">
/[if IE 7 ] <html lang="en" class="no-js ie7">
/[if IE 8 ] <html lang="en" class="no-js ie8">
/[if IE 9 ] <html lang="en" class="no-js ie9">
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
%head
%meta{:charset => "utf-8"}/
/
Always force latest IE rendering engine (even in intranet) &amp; Chrome Frame
@enplotz
enplotz / README
Created August 2, 2011 14:29 — forked from slevine/README
Applescript used to change application preferences and application geometry based upon a screen resolution.
Overview
--------
This file is invoked when switching from a standalone Macbook Pro display to a Apple Cinema display.
Originally, the only problem I was trying to solve was to move my dock from the side of the screen to
the bottom (which it does), but then after diving deeper in to the Applescript API's, it became obvious
to me that there was no limit to what I can configure.
Details
-------
The flow of the script is as follows: