This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c "import socket;print(True) if 0 == socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect_ex(('127.0.0.1',8000)) else False" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c "import socket;print(True) if 0 == socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect_ex(('127.0.0.1',8000)) else False" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "######################################" | |
echo "######### CRAWL MENU #################" | |
echo "######################################" | |
if [[ $(date '+%u') -eq 1 ]]; then | |
DAYFILTER="this" | |
else | |
DAYFILTER="last" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Modul for the mensa in rostock""" | |
import datetime | |
from pyquery import PyQuery as pq | |
class CanteenHRO(object): | |
"""Class for parsing the canteen menus in rostock""" | |
# Project Metadata | |
__version__ = u'0.1.0' | |
__author__ = u'Mathias Perlet' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
COLOR=red | |
NUMOFLEDS=7 | |
function setLed() { | |
blinkstick --channel 0 --index $1 $3 --brightness=$2 | |
} | |
function makeled() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIICoQYJKoZIhvcNAQcDoIICkjCCAo4CAQAxggIpMIICJQIBADANMAACCQCd7X9K7PXIADANBgkq | |
hkiG9w0BAQEFAASCAgCMCQo3C71hYlsiTSjQ1+/EPoIXer/RgAquzx6Hsxi+rmi3xGRJGhycHoyT | |
G2bmFqj8u95pcJSdDXoRZcz9HsTEzHCgLQZY1L6slbGbyeRGFK2t4DwhoniWUKxUZKEfSPDr613p | |
btmB1scDRolVOWdzqjwvlALq8jNXOzsVmmm4ipv/3fwIQN5iqErZCU2Jpm0VyCIn/W/7gbzEDtFF | |
r+diQdkwpT2tmdg1HKTxUAzujiF7pUNgn+f7vhvkI5Q9GyQnUOLMop8hQCXYl+LRnQDkJ0uY5LNe | |
bm5dV8s7TqMMtSindogDmqd/153l6BRTYlSYtBvepUj+SRXx/alPP0fpx2ZgiFdJmG67qiRMP6dZ | |
3Gf4GnvOIch6JclKXDbtdhlSVAaPlBz6JGIlS7GHOtRSaz6jJREI9I7nVOk8FyugeSx2IdQSNj96 | |
P2t99lQkL28NuiTgxMg8vsz4iKV6CFVTpKqMy8m21O3VsgyPCX6PJD7H/fYHsao9saZf0k/jvHDb | |
wuysX02H4k7RE+sj/1K6s7CqF4vXKVECTqa+6Blc4WYV29viQXRHSf5ftk/3MFL81Q/P4y2GaxZH | |
NsV/Tw4ax0HGBmymH8IkQVRPeh3lDpIzioX6a2mcRPku+GihcUa1BkUirgD+l0ylWfA3fR6wSvzm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "${TIMES}" ]; | |
then | |
echo "TIMES is unset, use export TIMES=10"; | |
TIMES=10 | |
else | |
echo "TIMES is set to $TIMES"; | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
class T(object): | |
def __init__(self): | |
self.now = time.time() | |
def end(self): | |
print(time.time() - self.now) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c "import sys;import os;import time;map(lambda x:os.system('clear;' + ' '.join(sys.argv[1:]))==time.sleep(1), xrange(0,99999999))" date |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *.svg; inkscape -A $(echo $(basename -s .svg $i).pdf) $i; |