Skip to content

Instantly share code, notes, and snippets.

View mritzmann's full-sized avatar

Markus Ritzmann mritzmann

View GitHub Profile
@mritzmann
mritzmann / google_dns
Last active March 5, 2016 15:19
Swisscom DNS Zensur
markus@UbuntuGnomeDesktop:~$ nslookup jimdo.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: jimdo.com
Address: 62.116.130.8
markus@UbuntuGnomeDesktop:~$ nslookup hostgator.com 8.8.8.8
Server: 8.8.8.8
@mritzmann
mritzmann / hosts
Created November 1, 2015 17:03
Gravatar Hostfile Block-list
127.0.0.1 www.gravatar.com
127.0.0.1 gravatar.com
127.0.0.1 www.gravatar.org
127.0.0.1 gravatar.org
127.0.0.1 0.gravatar.com
127.0.0.1 1.gravatar.com
127.0.0.1 2.gravatar.com
127.0.0.1 3.gravatar.com
127.0.0.1 secure.gravatar.com
@mritzmann
mritzmann / mysql_howto.md
Last active January 13, 2016 16:53
MySQL Befehle

MySQL

Installation MySQL

apt-get install mysql-server

Installation PHP-MySQL Schnittstelle

@mritzmann
mritzmann / ping
Last active August 29, 2015 14:21
Swisscom: issues with reddit.com
markus@UbuntuGnome:~$ ping reddit.com
PING reddit.com (198.41.209.143) 56(84) bytes of data.
^C
--- reddit.com ping statistics ---
57 packets transmitted, 0 received, 100% packet loss, time 56313ms
@mritzmann
mritzmann / ping
Last active August 29, 2015 14:21
Swisscom: issues with GitHub.com
C:\Users\Markus>ping github.com -t
Ping wird ausgeführt für github.com [192.30.252.130] mit 32 Bytes Daten:
Antwort von 192.30.252.130: Bytes=32 Zeit=136ms TTL=49
Antwort von 192.30.252.130: Bytes=32 Zeit=136ms TTL=49
Antwort von 192.30.252.130: Bytes=32 Zeit=136ms TTL=49
Zeitüberschreitung der Anforderung.
Antwort von 192.30.252.130: Bytes=32 Zeit=134ms TTL=49
Antwort von 192.30.252.130: Bytes=32 Zeit=134ms TTL=49
Antwort von 192.30.252.130: Bytes=32 Zeit=134ms TTL=49
@mritzmann
mritzmann / bit_to_maske.md
Last active August 29, 2015 14:16
Subnetting Beispiele

Bits zu Maske

Info

Bits: 27
Maske: gesucht

Lösungsweg

@mritzmann
mritzmann / zufallszahl.vba
Last active August 29, 2015 14:10
Generiert eine Zufallszahl
' Generiert eine Zufallszahl zwischen 12 und 50. Minimale und Maximale Zahl kann beliebig angepasst werden.
' Lizenz: Public Domain
Private Sub Button_Click()
Zufallszahl = Int(Rnd() * 50 + 12)
MsgBox Zufallszahl
End Sub
@mritzmann
mritzmann / taschenrechner.vba
Created December 2, 2014 08:20
VBA Taschenrechner
' Lizenz: Public Domain
' Autor: Markus Ritzmann
Public Ausgabe1 As Byte 'Damit Variable Sub-Uebergreifend gespeichert wird
Public Operator As String 'Damit Variable Sub-Uebergreifend gespeichert wird
Private Sub cmd0_Click()
txt.Text = txt.Text & 0
End Sub
@mritzmann
mritzmann / tzc.vbs
Created November 23, 2014 17:37
VBA Zeitzonen Rechner
' ------------------------------------------------
' Author: Patrick Albrecht und Markus Ritzmann
' Version: 141102
'
' Copyright (C) 2014 mritzmann and heubergen
'
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
@mritzmann
mritzmann / traceroute
Last active August 29, 2015 14:07
traceroute to 216.81.59.173
[ritzmann@antila]$ traceroute 216.81.59.173 -m 200
traceroute to 216.81.59.173 (216.81.59.173), 100 hops max, 60 byte packets
1 rh-tec.gate.jonaspasche.com (95.143.172.1) 0.764 ms 0.929 ms 0.900 ms
2 vl-7.cr0.fra2.de.rh-tec.net (62.216.175.37) 0.497 ms 0.699 ms 0.680 ms
3 30gigabitethernet4-3.core1.fra1.he.net (80.81.192.172) 7.891 ms 8.095 ms 8.079 ms
4 100ge5-2.core1.par2.he.net (72.52.92.13) 10.187 ms 10.403 ms 10.384 ms
5 10ge15-1.core1.ash1.he.net (184.105.213.93) 113.095 ms 113.301 ms 119.311 ms
6 10ge1-2.core1.atl1.he.net (184.105.213.110) 109.861 ms 111.052 ms 125.546 ms
7 216.66.0.26 (216.66.0.26) 125.754 ms 125.756 ms 125.902 ms