Skip to content

Instantly share code, notes, and snippets.

View tjarksaul's full-sized avatar
🦄

Tjark Saul tjarksaul

🦄
View GitHub Profile
<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]
var url = location.href;
if (/[0-9]{4}-[0-9]{2}\/[\w-]+/i.test(url)) {
if (!/\/komplettansicht$/i.test(url)) {
location.href = url + "/komplettansicht";
}
}
$ echo $DISPLAY
:0.0
$ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: Chromium
@tjarksaul
tjarksaul / gist:243cf3f263755eb33e98
Created February 24, 2015 12:15
Create bootable stick from .iso on OS X
# HOWTO: Make bootable USB stick from ISO on OSX
# determine /dev/diskN name of USB stick (e.g. /dev/disk2)
diskutil list
# convert image.iso to image.dmg (hdiutil adds .dmg automatically)
hdiutil convert -format UDRW -o image image.iso
# unmount (don't eject!) usb stick
diskutil unmountDisk /dev/disk2
# don't f*** up device name in next step or your disk will be toast
sudo dd if=image.dmg of=/dev/disk2 bs=10m
# unmount usb stick again and use in target system
// Check for wrong values
if (trim($params["data"]["fileName"]) == "") $this->errors["fileName"] = true;
const int main[] = {
-443987883, 440, 113408, -1922629632,
4149, 899584, 84869120, 15544,
266023168, 1818576901, 1461743468, 1684828783,
-1017312735
};
bash-3.2$ ./exit.sh
bash-3.2$ echo $?
38
bash-3.2$ cat exit.sh
#!/bin/bash
exit 2342