This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
apt install -y ucspi-tcp build-essential | |
wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz | |
tar xf djbdns-1.05.tar.gz | |
cd djbdns-1.05/ | |
echo gcc -O2 -include /usr/include/errno.h > conf-cc | |
wget https://www.fefe.de/dns/djbdns-1.05-test28.diff.xz | |
xz -d djbdns-1.05-test28.diff.xz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.responsiveCheckerClass { | |
float: left; | |
display: none; | |
} | |
@media only screen and (max-width: 699px) { | |
/* dummy-Klasse zur Erkennung des responsiven Layouts */ | |
.responsiveCheckerClass { | |
float: none; | |
display: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Encryptes a plain text password | |
* @param string Password | |
*/ | |
function encryptPassword($password) { | |
global $config; | |
return md5($config->encryptionCode . $password . $config->encryptionCode); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 [email protected] | |
# 2016-02-11 Tjark Saul [email protected] | |
######################################################################## | |
# | |
# This program is free software: you can redistribute it and/or modify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |