Skip to content

Instantly share code, notes, and snippets.

View KurzGedanke's full-sized avatar
✍️
Blogging here and there

Thore D. J. KurzGedanke

✍️
Blogging here and there
View GitHub Profile
@KurzGedanke
KurzGedanke / switch_branch.sh
Created July 3, 2020 11:49 — forked from cherti/switch_branch.sh
help switching a git repo's default branch from master to main
#!/bin/bash
# this script will assist you in migrating git-repositories from
# the primary branch 'master' to the primary branch 'main'.
# It currently works with only one remote (adjust accordingly if you
# have more than one), the name of which is taken as the first argument.
#
# Example: bash switch_branch.sh origin
#
# It will

Contributor Covenant Code of Conduct

Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

English verison below

German/Deutsch:

Datenschutzrichtlinie Informationen über die Kunden (im Folgenden "Nutzer" genannt) in den von der Gesellschaft angebotenen Dienstleistungen (der "Firmenservice") lauten wie folgt Wir werden damit umgehen.

Artikel 1 (Allgemeine Bestimmungen) 1 Wir werden das Gesetz zum Schutz personenbezogener Daten und damit zusammenhängende Gesetze und Vorschriften einhalten, um den Schutz von Benutzerinformationen (zusammenfassend als von Benutzern erhaltene Informationen) zu realisieren.

Keybase proof

I hereby claim:

  • I am KurzGedanke on github.
  • I am kurzgedanke (https://keybase.io/kurzgedanke) on keybase.
  • I have a public key whose fingerprint is DFB3 B216 BE69 0A46 B333 D495 561D 15FE 3FC1 E9A5

To claim this, I am signing this object:

# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
/**
* Scheiß Kommentare
*/
public class Zahldarstellung {
public static boolean checkBasis(long zahl, int basis) {
System.out.println("Zahl: " + zahl);
return zahl % 10 <= basis || zahl == 0 && checkBasis(zahl / 10, basis);
}
"""
A script which scans _all_ ipv4 address for server which have
Index of / landing page.
Your ISP will probably not only hate you for this, it will kill your conection.
You will send (4.294.967.296 - the reversed addresses) requests in a very
'short' amount of time.
"""
import re
import requests