Skip to content

Instantly share code, notes, and snippets.

View tjarksaul's full-sized avatar
🦄

Tjark Saul tjarksaul

🦄
View GitHub Profile
<?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
#!/bin/sh
sed -i 'y/aáaàäeéeèiíiìoóoòöuúuùüAÁAÀEÉEÈIÍIÌOÓOÒUÚUÙÜß/aaaaaeeeeiiiiooooouuuuuAAAAEEEEIIIIOOOOUUUUUs/' file

This is a plugin meant for Jekyll.

Example use:

Easily embed a YouTube video. Just drop this file in your _plugins directory.

{% youtube oHg5SJYRHA0 %}
<p style="vertical-align:bottom" class="bottom button">
<a href="/news-archiv.html">Mehr News</a>
</p>
@tjarksaul
tjarksaul / gist:9047330
Created February 17, 2014 09:15
Script to change vbox user password on uberspace. Thanks to @_einstein_
<?php
if($_SERVER["HTTPS"] != "on") {
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
exit();
}
function setNewPassword($strMailbox, $strPassword)
{
$strPassword = utf8_decode($strPassword);
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">

Keybase proof

I hereby claim:

  • I am tjarksaul on github.
  • I am tjarksaul (https://keybase.io/tjarksaul) on keybase.
  • I have a public key whose fingerprint is B4EC CCF7 6837 A21B EA75 D7C0 D434 6A5E F714 22C2

To claim this, I am signing this object:

<?php
header('Content-type: application/json');
print (new JSONCreator)->getJSON();
class JSONCreator
{
private $files;
public function __construct()
# HTTP Status Cats
# Apache (htaccess) config created by @dave1010
# Licensed CC BY 2.0
# Images CC BY 2.0, from GirlieMac's photostream:
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/
# Usage: copy save this file as .htaccess or add it to your httpd.conf
ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>'