Skip to content

Instantly share code, notes, and snippets.

View tjarksaul's full-sized avatar
🦄

Tjark Saul tjarksaul

🦄
View GitHub Profile
func makeGetCall() {
// Set up the URL request
let todoEndpoint: String = "https://jsonplaceholder.typicode.com/todos/1"
guard let url = URL(string: todoEndpoint) else {
print("Error: cannot create URL")
return
}
let urlRequest = URLRequest(url: url)
// set up the session
@tjarksaul
tjarksaul / pliim-turnOff.scpt
Last active January 21, 2018 08:13 — forked from zehfernandes/pliim-turnOff.scpt
One click and be ready to go up on stage and shine! - https://zehfernandes.github.io/pliim/
# Turn on Notifications
do shell script "defaults -currentHost write com.apple.notificationcenterui doNotDisturb -bool FALSE; defaults -currentHost delete com.apple.notificationcenterui doNotDisturbDate; osascript -e 'quit application \"NotificationCenter\" ' && killall usernoted" -- this set 'Do not disturb' to false in the pref
# Show Desktop
do shell script "defaults write com.apple.finder CreateDesktop -bool true; killall Finder"
# Show all windows
tell application "System Events"
set visible of (every process) to true
end tell
@tjarksaul
tjarksaul / apache_serviceproxy_customsites_letsencrypt.conf
Last active March 8, 2017 08:45
Prepare macOS server for letsencryot
# file path: /Library/Server/Web/Config/Proxy/apache_serviceproxy_customsites_letsencrypt.conf
ProxyPass /.well-known/acme-challenge http://127.0.0.1:34543/.well-known/acme-challenge
ProxyPassReverse /.well-known/acme-challenge http://127.0.0.1:34543/.well-known/acme-challenge
.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
<p style="vertical-align:bottom" class="bottom button">
<a href="/news-archiv.html">Mehr News</a>
</p>

This is a plugin meant for Jekyll.

Example use:

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

{% youtube oHg5SJYRHA0 %}
#!/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
@tjarksaul
tjarksaul / .gitignore
Created December 16, 2013 11:47 — forked from rbochet/.gitignore
# Latex files
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr