This file contains 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 | |
APIKEY="YOUR KEY" | |
while [[ $# -gt 0 ]] | |
do | |
key="$1" | |
case $key in | |
-key|apikey--) | |
APIKEY="$2" |
This file contains 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 xmlrpclib | |
server_url = 'https://evatr.bff-online.de/' | |
server = xmlrpclib.Server(server_url) | |
# daten zum testen | |
UstId_1 = 'AAAAAAA' | |
UstId_2 = 'AAAAAAA' | |
Firmenname = 'Firmenname einschl. Rechtsform' | |
Ort = 'Ort' |
This file contains 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
from bs4 import BeautifulSoup | |
import urllib2 | |
import re | |
html_page = urllib2.urlopen("https://www.it-sa.de/de/events/tagesuebersicht/2016-10-19") | |
soup = BeautifulSoup(html_page, 'html') | |
JSdata = {} | |
print '{0:10} ; {1:10} ; {2:10}'.format('Time', 'Thema', 'Ort') | |
f = open('event-10-19.txt', 'w+') | |
f.write('{0:10} ; {1:10} ; {2:10}'.format('Time', 'Thema', 'Ort')) |
This file contains 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
# UUID GEN | |
import uuid | |
import string | |
import tkMessageBox | |
import os | |
from Tkinter import * | |
c="" | |
for x in range(0, 10): | |
y= str(uuid.uuid1()) |
This file contains 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
# Text to Hex converter by Richard Gericke | |
# Decode any Text from Clipboard to html %hex | |
# an copy it back to clipboard_append | |
print "Text to HTML Hex converter" | |
print "Version 1.0" | |
print "(C) Richard Gericke" | |
print "" | |
from Tkinter import Tk | |
r = Tk() | |
r.withdraw() |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Fake FTP Server | |
~~~~~~~~~~~~~~~ | |
This is a simple fake FTP daemon. It stores the login data (username and | |
password) given to it and then terminates the connection. |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Generate fake email addresses for spam harvesters. | |
A pythonic Python port of Joerg Kantel's fakemail macro for Radio Userland. | |
It creates random e-mail addresses, optionally marked up as XHTML. | |
The ``prefix`` and ``postfix`` arguments were left out, since strings can | |
easily be prepended and appended, if needed. |
This file contains 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 pycurl | |
import os.path | |
import sys | |
import wget | |
from bs4 import BeautifulSoup | |
if __name__ == '__main__': | |
#Get the rss feed with the list of items |