Skip to content

Instantly share code, notes, and snippets.

View HoffmannP's full-sized avatar

Peter Hoffmann HoffmannP

View GitHub Profile
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<style>
/* CSS goes here */
</style>
<body>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
@HoffmannP
HoffmannP / BinäreGeschlechteridentitätQuaSchwangerschaftsvermögen.markdown
Last active January 8, 2016 14:14
Artikel: Zur binären Geschlechteridentität qua Schwangerschaftsvermögen

Zur binären Geschlechteridentität qua Schwangerschaftsvermögen

Antje Schrupp weist in ihrem Artikel "Über den Zusammenhang von Geschlecht und Biologie" auf die differenzierte Geschlechtseigenschaft "Schwangerwerden" hin und bezeichnet diese als "faktisch binär" (Abs. 11). Öffentlich weitgehend bewusst differenziert wird zwischen dem gewählten oder zugeschrieben Geschlecht (Gender) und dem davon - meist bewusst deutlich unabhängig gemachten - biologischen (Sex). Schrupp seziert nun diese beiden Geschlechtseigenschaften und richtet ihr Augenmerk auf ein dem Anschein nach völlig biologisches Kriterium, der Fähigkeit Schwanger zu werden.

Ich möchte auf Fallstricke bei dieser Kategorisierung Aufmerksam machen: Zum einen sollte klar sein, dass besonders bei dieser Kategorie neben zwei offensichtlichen Eigenschaftsausprägungen der Fall der unbekannten Ausprägung existiert. Und zwar nicht im Sinne von nicht-existent sondern im tatsächlichen Sinne von unbekannt. Relativ klar lassen sich hier die Fälle abtrennen

@HoffmannP
HoffmannP / test.php
Last active February 22, 2016 16:56
Wie viel Zeit kosten Funktionsaufrufe in PHP?
<?php
define('MAX', 10000);
$varianteA = '/tmp/varianteA.php';
$varianteB = '/tmp/varianteB.php';
function funcName($i) {
$n = '';
while ($i > 25) {
const Soup = imports.gi.Soup;
const Json = imports.gi.Json;
function assert(assertion) {
if (!assertion) {
throw "Error";
}
}
/* Get the data using a HTTP GET */
@HoffmannP
HoffmannP / DieselPing.sh
Last active May 5, 2017 12:06
Scripte um zu untersuchen ob die Übertragungsrate nach einem Ping systematisch höher ist
### SERVER.sh
PORT=9876
DATA=/tmp/rand.data
SIZE=1M
while true
do
netcat -l $PORT < "$DATA"
dd if=/dev/urandom of="$DATA" bs=$SIZE count=1
<?php
/* This pluing allows you to login via URZ-LDAP-authentication
{
//...
"AuthManagerAutoConfig": {
"primaryauth": {
"UrzLdap": {
"class": "UrzLdapPrimaryAuthenticationProvider",
@HoffmannP
HoffmannP / gitea.log
Created April 23, 2018 15:59
Log of API call
$ curl -X GET "http://localhost:3000/api/v1/repos/ber/test/commits/master/statuses" -H "accept: application/json"
[Macaron] 2018-04-23 15:55:59: Started GET /api/v1/repos/ber/test/commits/master/statuses for 172.25.0.1
2018/04/23 15:55:59 [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `passwd`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `description`, `num_teams`, `num_members`, `diff_view_style` FROM `user` WHERE `id`=? LIMIT 1 []interface {}{1}
2018/04/23 15:55:59 [I] [SQL] SELECT `id`, `owner_id`, `lower_name`, `name`, `description`, `website`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_
@HoffmannP
HoffmannP / pre-push.hook.sh
Created April 26, 2018 13:57
git-hook to prevent pushing php-errors
#!/bin/sh
# An example hook script to verify what is about to be pushed. Called by "git
# push" after it has checked the remote status, but before anything has been
# pushed. If this script exits with a non-zero status nothing will be pushed.
#
# This hook is called with the following parameters:
#
# $1 -- Name of the remote to which the push is being done
# $2 -- URL to which the push is being done
#!/bin/bash
clear
echo "configure for my network settings"
netDev="wlp3s0"
netPrefix="192.168.0"
macNet="fritz"
shimDev="${macNet}0"
ipHost="35"
@HoffmannP
HoffmannP / Serverstruktur.txt
Created March 21, 2020 12:04
Serverstruktur
Alles in Docker
* Buildserver für BE, FE (nodeJs)
* nginx für FE
* nginx + nodeJs für BE
* postgres für DB