Skip to content

Instantly share code, notes, and snippets.

View tjarksaul's full-sized avatar
🦄

Tjark Saul tjarksaul

🦄
View GitHub Profile
.responsiveCheckerClass {
float: left;
display: none;
}
@media only screen and (max-width: 699px) {
/* dummy-Klasse zur Erkennung des responsiven Layouts */
.responsiveCheckerClass {
float: none;
display: none;
<?php
/**
* Encryptes a plain text password
* @param string Password
*/
function encryptPassword($password) {
global $config;
return md5($config->encryptionCode . $password . $config->encryptionCode);
}
#!/bin/bash
set -euo pipefail
# normally this is a good idea, but in this case it messes with $BE_NICE
#IFS=$'\n\t'
########################################################################
# 2015-02-23 Christopher Hirschmann c.hirschmann@jonaspasche.com
# 2016-02-11 Tjark Saul dev@tjarksaul.de
########################################################################
#
# This program is free software: you can redistribute it and/or modify
<?php
interface DlrgLogin
{
/**
* Diese Funktion gibt den HTML-Code eines Login- oder Logout-Formulars zurück, je nach Login-Status
* @see isAuthenticated
* @return string
*/
public function getLoginForm();
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
@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
<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>

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

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 \
\documentclass[options]{scrreprt}
...
% Fußnoten in Tabellen
\usepackage{footnote}
...
\begin{document}
...
\begin{savenotes}
\begin{table}[htbp]