Skip to content

Instantly share code, notes, and snippets.

@bigsnarfdude
bigsnarfdude / gist:b6ae4dbd1b9b60d40cba
Created January 7, 2016 17:23
incident report template
Example infrastructure outage incident report
Friday, May 13, 2077
By the Example Security Team
Earlier this week we experienced an outage in our API infrastructure. Today we’re providing an incident report that details the nature of the outage and our response.
The following is the incident report for the Example Security outage that occurred on April 30, 2077. We understand this service issue has impacted our valued developers and users, and we apologize to everyone who was affected.
@stefanschmidt
stefanschmidt / authenticate-ldap.sh
Last active June 13, 2025 23:08
Authenticate via LDAP on the command line
# Using an LDAP test server we will authenticate the user newton
# http://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/
# method 1: using ldapwhoami
# should return "Result: Success (0)" if authentication was successful
ldapwhoami -vvv -h ldap.forumsys.com -D "uid=newton,dc=example,dc=com" -x -w password
# method 2: using ldapsearch
# should return "result: 0 Success" if authentication was successful
ldapsearch -h ldap.forumsys.com -x -D uid=newton,dc=example,dc=com -w password -b "dc=example,dc=com" "(uid=newton)"
@dewomser
dewomser / Eieruhr2.sh
Last active April 19, 2025 00:27
Eieruhr: Bash-Einzeiler mit Countdown und Sprachausgabe
x=0 ; while [ $x -ne 5 ]; do sleep 1 && echo -ne "\r"$x ; x=$(($x+1)); done;ef="Das $x Sekunden Ei ist fertig !"; if [ $(which espeak) ] ; then espeak -vde "$ef" ; else echo -e "\n$ef" ;fi
# oder so etwas kürzer, etwas moderner
x=0 ; while [ $x -ne 5 ]; do sleep 1 && echo -ne "\r"$x ; x=$(($x+1)); done;ef="Das $x Sekunden Ei ist fertig !";which espeak > /dev/null 2>&1 && espeak -vde "$ef"||echo -e "\n$ef"
# noch kompakter
for x in {1..5}; do sleep 1 && echo -ne "\r"$x ;done;ef="Das $x Sekunden Ei ist fertig !";which espeak > /dev/null 2>&1 && espeak -vde "$ef"||echo -e "\n$ef"
#Bei Sprchausgabe zusätzlich mit Text "Das x Sekundenei ist fertig"
for x in {1..15}; do sleep 1 && echo -ne "\r"$x ;done;ef="Das $x Sekunden Ei ist fertig !";which espeak > /dev/null 2>&1 && echo -e "\n$ef" && espeak -vde "$ef" || echo -e "\n$ef"
#Countdow espeak only
for x in {10..0}; do sleep 1 && espeak -ven "$x";done;ef="We have a lift off !" ;espeak -ven "$ef"