I hereby claim:
- I am werty1st on github.
- I am werty1st (https://keybase.io/werty1st) on keybase.
- I have a public key ASBukSzTVrg_-qiJVzK8Ts3jh_43uauoYXg4cB3PJSBK4go
To claim this, I am signing this object:
<?php | |
$subdomain = array_shift((explode(".",$_SERVER['HTTP_HOST']))); | |
$urlmap = [ | |
"spiel1" => "http://quiz.tivi.de/quiz/1057-toleranz-und-respekt/", | |
"spiel2" => "http://quartett.tivi.de/krasse-kolosse/", | |
"spiel3" => "http://fehlersuche.spiel.tivi.de/game/E2123874", | |
"spiel4" => "http://fehlersuche.spiel.tivi.de/game/A66FAF75", | |
]; |
# Upstart file at /etc/init/couchdb.conf | |
# CouchDB | |
start on runlevel [2345] | |
stop on runlevel [06] | |
pre-start script | |
chown -R couchdb /usr/local/etc/couchdb | |
chown -R couchdb /usr/local/lib/couchdb | |
chown -R couchdb /usr/local/var/log/couchdb |
root@s:/opt# cat autorenew.sh | |
#/bin/bash | |
cd /opt/letsencrypt/ | |
git pull | |
/etc/init.d/nginx stop | |
result=$(/opt/letsencrypt/letsencrypt-auto renew) | |
/etc/init.d/nginx start | |
zertdate=$(echo | openssl s_client -connect ***.eu:443 2>/dev/null | openssl x509 -noout -startdate) |
object CheckCommand "check_wmi" { | |
import "plugin-check-command" | |
command = [ PluginDir + "/check_wmi_plus.pl" ] | |
arguments = { | |
"--inidir" = "$wmi_inidir$" | |
"-H" = "$host.name$" | |
"-A" = "$wmi_authfile_path$" | |
"-m" = "$check_mode$" | |
"-s" = "$wmi_submode$" |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
git remote rename origin upstream | |
git add remote origin [email protected]:user/fork.git |
<?php | |
/* | |
* | |
* ____ _ _ __ __ _ __ __ ____ | |
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ | |
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | | |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ | |
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| | |
* |
I hereby claim:
To claim this, I am signing this object:
apt install curl | |
curl https://getcaddy.com | bash -s cors,expires,filemanager,git,hugo,ipfilter,jsonp,jwt,locale,mailout,minify,multipass,prometheus,ratelimit,realip,search,upload | |
chown root:root /usr/local/bin/caddy | |
chmod 755 /usr/local/bin/caddy | |
setcap 'cap_net_bind_service=+ep' /usr/local/bin/caddy | |
mkdir /etc/caddy | |
chown -R root:www-data /etc/caddy | |
mkdir /etc/ssl/caddy | |
chown -R www-data:root /etc/ssl/caddy | |
chmod 0770 /etc/ssl/caddy |
// In JavaScript, constructors can only be synchronous right now. This makes sense | |
// from the point of view that a constructor is a function that returns a newly | |
// initialized object. | |
// | |
// On the other hand, it would sometimes be very handy, if one could have async | |
// constructors, e.g. when a class represents a database connection, and it is | |
// desired to establish the connection when you create a new instance. | |
// | |
// I know that there have been discussions on this on StackOverflow & co., but | |
// the so-far mentioned counter arguments (such as: doesn't work as expected |