Skip to content

Instantly share code, notes, and snippets.

View wneessen's full-sized avatar

Winni Neessen wneessen

View GitHub Profile
1. Glühwein bestellen
Einen Glühwein bestellen geht schon mal gar nicht. Damit sagt man, dass man
'ne knickrige Sau ist, keine Freunde hat oder Antialkoholiker ist, quasi das
Allerletzte. Also immer mindestens zehn Stück bestellen.
Nie vorher abzählen, wie viele Leute um einen herum stehen und dann genau
die Anzahl bestellen!
Einfach irgendeine Zahl über die Theke grölen.
Ganz falsch: Die Umstehenden fragen, ob sie überhaupt noch einen Glühwein
haben wollen.
Wichtige Regel: Gefragt wird nicht - saufen ist schließlich kein Spaß.
[wneessen@tiger3 ~]$ ping google.de
PING google.de (209.85.148.147) 56(84) bytes of data.
64 bytes from fra07s07-in-f147.1e100.net (209.85.148.147): icmp_seq=1 ttl=56 time=8.72 ms
64 bytes from fra07s07-in-f147.1e100.net (209.85.148.147): icmp_seq=2 ttl=56 time=8.74 ms
64 bytes from fra07s07-in-f147.1e100.net (209.85.148.147): icmp_seq=3 ttl=56 time=8.55 ms
64 bytes from fra07s07-in-f147.1e100.net (209.85.148.147): icmp_seq=4 ttl=56 time=8.58 ms
64 bytes from fra07s07-in-f147.1e100.net (209.85.148.147): icmp_seq=5 ttl=56 time=8.46 ms
64 bytes from fra07s07-in-f147.1e100.net (209.85.148.147): icmp_seq=6 ttl=56 time=8.63 ms
64 bytes from fra07s07-in-f147.1e100.net (209.85.148.147): icmp_seq=7 ttl=56 time=8.57 ms
64 bytes from fra07s07-in-f147.1e100.net (209.85.148.147): icmp_seq=8 ttl=56 time=8.43 ms
@wneessen
wneessen / restart skype.cmd
Created February 14, 2011 15:33
Little Skype restart script
@ECHO OFF
:: Skype-Restart script
:: (C) 2011 by Winfried Neessen
:: Kill current skype process
taskkill /IM Skype.exe /f
:: Delete shared.xml file
del %appdata%\Skype\shared.*
[10:39:01] sys: Available commands:
/me [text]
/topic [text]
/add [skypename]
/history
/find [text]
/fa or /
/alertson [text]
/alertsoff
/leave
@wneessen
wneessen / setMacDNS.sh
Created January 24, 2011 14:00
Set your MacOS X resolver using scutil for all interfaces
INTERFACES=`echo "list State:/Network/Service/[^/]+/DNS" | scutil | awk -F= '{print $2}'`
SERVER=<yourDNS>
for INTERFACE in ${INTERFACES}
do
echo "get ${INTERFACE}\nd.add ServerAddresses * ${SERVER}\nset ${INTERFACE}" | sudo scutil
done
CASE COALESCE(HistoryGeneric.handle,0)
WHEN 0 THEN
CASE substring(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE
(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
Documents.Destination,' ',''),')',''),'(',''),
'-',''),'/',''),'.',''),'*',''),',',''),';',''),
'\',''),'-',''),1,1)
WHEN '1' THEN substring(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
REPLACE(REPLACE(REPLACE( REPLACE(REPLACE(
REPLACE(Documents.Destination,' ',''),')',