Skip to content

Instantly share code, notes, and snippets.

View tjarksaul's full-sized avatar
🦄

Tjark Saul tjarksaul

🦄
View GitHub Profile
$ echo $DISPLAY
:0.0
$ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: Chromium
var url = location.href;
if (/[0-9]{4}-[0-9]{2}\/[\w-]+/i.test(url)) {
if (!/\/komplettansicht$/i.test(url)) {
location.href = url + "/komplettansicht";
}
}
\documentclass[options]{scrreprt}
...
% Fußnoten in Tabellen
\usepackage{footnote}
...
\begin{document}
...
\begin{savenotes}
\begin{table}[htbp]
NSString *mainQuery = [NSString stringWithFormat:@"%@ %@ %@ %@ %@", @"(select \
`px_scrum_dates`.`dateId`, `startDate`, `endDate`, `classTypeName`, `typeToken`, `placeName`, `placeCity` ,concat(concat(date_format(`startDate`, '%y%m%d'), '-'), `typeToken`) as `courseCode`, `trainerId`, `px_scrum_date_contents`.`dateTitle` \
from \
`px_scrum_dates`, \
`px_scrum_class_types`, \
`px_scrum_places`, \
`px_scrum_place_contents`, \
`px_scrum_trainerdate`, \
`px_scrum_date_contents` \
where \

Solo Kittens

Aim: collect the 5 cat sets before you explode!

Remove favors, attacks, nopes & skips. Leave in 1 or 2 Exploding Kittens in the deck (depending on size of cojones).
Give yourself one Defuse to begin.
Shuffle in the other Defuses.
Add a Nope into the deck (if you're feeling hard).

When you draw

Card | Action

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$ [OR]
RewriteCond %{HTTP_HOST} !^tjarksaul\.de
RewriteRule (.*) https://tjarksaul.de/$1 [L]
</IfModule>
<IfModule mod_headers.c>
Header add Strict-Transport-Security: "max-age=15768000"
</IfModule>
@tjarksaul
tjarksaul / mavericks.bootable.iso.sh
Last active October 8, 2015 14:06
Create Bootable ISO from Mavericks App.
#!/usr/bin/env bash
# Original: http://thezinx.com/2013/10/29/create-bootable-dmg-iso-mavericks-app.html
V_BUILD=/Volumes/install_build
V_APP=/Volumes/install_app
T_SI_B=/tmp/elcap
T_SI=$T_SI_B.sparseimage
sauli@draco ~/repositories/tjarksaul.git/hooks] < post-receive
#!/bin/bash -l
. $HOME/.bash_profile
GIT_REPO=$HOME/repositories/tjarksaul.git
TMP_GIT_CLONE=$HOME/tmp/git/tjarksaul
PUBLIC_WWW=/var/www/virtual/$USER/tjarksaul.de
git clone $GIT_REPO $TMP_GIT_CLONE
jekyll build --source $TMP_GIT_CLONE --destination $PUBLIC_WWW
rm -Rf $TMP_GIT_CLONE
<?php
$geheimnis = 'ULTRAGEHEIM'
$zufall = trim($_GET['random'])
$token = trim($_GET['token'])
$sha = hash('sha512', $geheimnis . $zufall);
if ($sha == $token)
{
// auth success
}
@tjarksaul
tjarksaul / .gitignore
Created December 16, 2013 11:47 — forked from rbochet/.gitignore
# Latex files
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr