Skip to content

Instantly share code, notes, and snippets.

@TheConstructor
TheConstructor / 00-generic-ssl-proxy.apacheconf
Last active December 20, 2015 10:39
How to get all v-hosts on an apache-server HTTPS.
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
# SSL Protocol Adjustments:
# The safe and default but still SSL/TLS standard compliant shutdown
# approach is that mod_ssl sends the close notify alert but doesn't wait for
@TheConstructor
TheConstructor / inetd.conf
Last active May 22, 2020 10:42
Postfix SRS-support under Debian "Wheezy". Using http://packages.debian.org/wheezy/srs, http://packages.debian.org/wheezy/liburi-perl and http://packages.debian.org/wheezy/openbsd-inetd File paths are: - /opt/srs/srs-encode.sh - /opt/srs/srs-decode.sh - /etc/inetd.conf (should be appended to) - /etc/postfix/main.cf (should be appended to) - /etc…
# SRS
127.0.0.1:10001 stream tcp nowait root /opt/srs/srs-encode.sh /opt/srs/srs-encode.sh
127.0.0.1:10002 stream tcp nowait root /opt/srs/srs-decode.sh /opt/srs/srs-decode.sh

Keybase proof

I hereby claim:

  • I am theconstructor on github.
  • I am theconstructor (https://keybase.io/theconstructor) on keybase.
  • I have a public key ASBNQSKfyKi1Hi99lIBQXWdVqk4IAWfgSeEOm7XmEp-_6go

To claim this, I am signing this object:

SEP = ", "
QUOTE = "\'"
NAME_START = "["
NAME_END = "]"
NEWLINE = System.getProperty("line.separator")
KEYWORDS_LOWERCASE = com.intellij.database.util.DbSqlUtil.areKeywordsLowerCase(PROJECT)
KW_VALUES = KEYWORDS_LOWERCASE ? "( values" : "( VALUES"
KW_NULL = KEYWORDS_LOWERCASE ? "null" : "NULL"
@TheConstructor
TheConstructor / newTxt.reg
Created February 17, 2022 09:27
Create new txt-file as configured in Win 10
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.txt\ShellNew]
"ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,2c,00,\
2d,00,34,00,37,00,30,00,00,00
"NullFile"=""
@TheConstructor
TheConstructor / Bunte Notennamen.py
Created December 15, 2023 19:56
Skript um Noten-Namen in Capella zu ergänzen
# -*- coding: UTF-8 -*-
""" capellaScript -- 15.12.2023 Matthias Vill
>>> Bunte Notennamen einfügen
(Version 1.0 - 15.12.2023)|||
Mit diesem Skript werden die Notennamen der ausgewählten Notenzeile als Grafikobject eingefügt.
Zur leichteren Unterscheidung wird ein farbiger Rahmen hinter den Namen der Note gelegt.||
Der Nutzer hat die Wahl zwischen transponierbaren Symbolen und Symbolen mit Oktaven-Bezeichnung.||