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
FROM rust:slim-buster | |
RUN apt-get update | |
RUN apt-get install -y \ | |
wget unzip curl \ | |
build-essential cmake git libgmp3-dev libprocps-dev python-markdown libboost-all-dev libssl-dev pkg-config libopencv-dev | |
# install verifiable image redacting library with workaround for now (see https://github.com/snp-labs/verifiable-image-redacting/issues/1 ) | |
RUN git clone https://github.com/Romern/verifiable-image-redacting \ | |
&& cd verifiable-image-redacting \ |
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 {inspect} from 'util'; | |
import {Takeaway, TakeawayConfig} from 'takeaway'; | |
(async () => { | |
try { | |
const plz = "52080"; | |
const coordLNG = '50.7'; | |
const coordLAT = '6.0'; | |
// Initialize configuration |
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 | |
USER="AB12345" | |
PASS="hunter2" | |
echo "Getting courses..." | |
COURSES=$(curl -s --ntlm -u "${USER}:${PASS}" https://www3.elearning.rwth-aachen.de/l2p/foyer/SitePages/PastCourses.aspx | grep -oE "https://www[0-9].elearning.rwth-aachen.de/(ws|ss)[0-9]{2}/[0-9]{2}(ws|ss)-[0-9]*") | |
echo "Recursively download all courses using wget..." | |
while IFS= read -r c |
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 org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Element; | |
import org.jsoup.select.Elements; | |
import org.jsoup.nodes.Attributes; | |
import java.io.File; | |
import java.nio.charset.StandardCharsets; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.util.*; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Mpeg7 | |
xmlns="urn:mpeg:mpeg7:schema:2001" | |
xmlns:mpeg7="urn:mpeg7:schema:2001" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<Description xsi:type="ContentEntityType"> | |
<MultimediaContent xsi:type="VideoType"> | |
<Video id="videosegment"> | |
<MediaLocator> | |
<MediaUri>https://admin.streaming.rwth-aachen.de/files/mediapackage/e97569b7-9bb9-4ed0-bd4f-9adbb66595cc/db24fdd6-6d07-44bf-9677-f663fce8e2c0/IDS_01_intro.mp4</MediaUri> |
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 pikepdf | |
import sys | |
if len(sys.argv)<3: | |
print(f"Usage {sys.argv[0]} input.pdf output.pdf") | |
exit(1) | |
input = sys.argv[1] | |
output = sys.argv[2] |
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 requests | |
from requests.auth import HTTPBasicAuth | |
import json | |
from pathlib import Path | |
apikey = 'ZTJlOWNhZGUtNzlmZS00ZGU2LTkwYjMtZDk1ODRlMDkwODM5' #from the APK | |
secret = 'MTRjZTVjM2EtOGVlZi00OTU3LWFmNjktNTllODFhNmYyNzI5' #from the APK | |
def download_file(url, filename): | |
with requests.get(url, stream=True) as r: |
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 requests | |
from hashlib import md5 | |
import json | |
import sys | |
headers = { | |
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', | |
"Accept": "application/json" | |
} | |
default_params = { |
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
swagger: "2.0" | |
info: | |
description: "" | |
version: "1.0.0" | |
title: "NINA Warnmeldungen" | |
license: | |
name: "Proprietary" | |
host: "warnung.bund.de" | |
basePath: "/api31" | |
schemes: |
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 sys | |
import json | |
import requests | |
import traceback | |
if len(sys.argv)<4: | |
print("Scrape whole subreddit's submissions.") | |
print(f"Usage: {sys.argv[0]} SUBREDDIT BEFORETIMESTAMP OUTPUTFILE") | |
exit() |