Skip to content

Instantly share code, notes, and snippets.

View MartinEnders's full-sized avatar
🤪

Dr. Martin Enders MartinEnders

🤪
View GitHub Profile
@MartinEnders
MartinEnders / basket-of-eight.md
Last active October 5, 2023 18:22
Links for the journals from the basket of eight from AIS
@MartinEnders
MartinEnders / GAG-short-Urls.ipynb
Created October 31, 2022 15:37
GAG Short URL Creation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MartinEnders
MartinEnders / ABaerbock.json
Last active April 28, 2022 18:08
Tweets of Annalena Baerbock (https://twitter.com/ABaerbock) in JSON Format (first 100 Tweets since she became foreign minister)
{"http_status": 200, "account_name": "ABaerbock", "account_data": {"Name": "Baerbock, Annalena Charlotte Alma", "Partei": "B\u00fcndnis 90/Die Gr\u00fcnen", "id": 2179010672, "screen_name": "ABaerbock", "t0": "20170920-150458.json", "t1": "20211020-103923.json", "value": "Baerbock, Annalena Charlotte Alma"}, "params": [["query", "from:ABaerbock"], ["max_results", "100"], ["start_time", "2007-01-01T00:00:00Z"], ["end_time", "2022-04-18T11:59:59Z"], ["tweet.fields", "attachments,author_id,context_annotations,conversation_id,created_at,entities,geo,id,in_reply_to_user_id,lang,possibly_sensitive,public_metrics,referenced_tweets,reply_settings,source,text,withheld"], ["expansions", "author_id,referenced_tweets.id,referenced_tweets.id.author_id,entities.mentions.username,attachments.poll_ids,attachments.media_keys,in_reply_to_user_id,geo.place_id"], ["media.fields", "duration_ms,height,media_key,preview_image_url,public_metrics,type,url,width"], ["place.fields", "contained_within,country,country_code,full_name,geo,
@MartinEnders
MartinEnders / twitter-bundestag-example.ipynb
Last active April 22, 2022 08:59
ML4B DataSet Examples
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MartinEnders
MartinEnders / generate-csv-alternatives.py
Created January 29, 2017 11:05
csv vs. json vs. xml vs. bson file size comparison (plain and gzip file size)
#!/usr/bin/python3
# ATTENTION
# The 'write pretty-xml' part is very memory consuming
# The generated xml is saved in an string which is parsed back immediatly to generate the pretty output with indent
import csv
import json
import bson # pip3 install bson
from xml.etree import ElementTree as ET
@MartinEnders
MartinEnders / spamfilter-setup-postfix-dovecot.md
Last active January 29, 2022 21:27
Setup of spamfilter and sieve for postfix and dovecot

Packetinstallation

aptitude install spamassassin razor pyzor rsyslog
aptitude install amavisd-new
aptitude install dovecot-sieve dovecot-lmtpd
aptitude install clamav clamav-daemon
# restart freshclam and clamav-daemon when error messages occour:
# [FAIL] Clamav signatures not found in /var/lib/clamav ... failed!
@MartinEnders
MartinEnders / Covid-Cases-Deaths-Germany.ipynb
Last active August 20, 2021 11:24
Covid-19 Year-Comparison
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MartinEnders
MartinEnders / Deployment.ipynb
Created May 17, 2021 14:22
Deployment Methods (gradio and jupyter widgets)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.