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() |
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 | |
| input = sys.argv[1] | |
| with pikepdf.open(input) as pdf: | |
| for page in pdf.pages: | |
| print(str(dict(page.as_dict()))) |
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 | |
| import json | |
| import sys | |
| import os | |
| import requests | |
| import uuid | |
| # Push API | |
| headers = { |
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 | |
| import json | |
| import sys | |
| import os | |
| headers = { | |
| 'X-Requested-With': 'com.bandcamp.android', | |
| 'Content-Type': 'application/json', | |
| 'User-Agent': 'Dalvik/2.1.0 (Linux; U; Android 9; Unknown Device)', | |
| 'Host': 'bandcamp.com', |
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"?> | |
| <manifest> | |
| <project name="Gardens-Network/vendor_motorola_athene" path="vendor/motorola/athene" remote="github" revision="lineage-16.0" /> | |
| <project name="Gardens-Network/kernel_motorola_msm8952" path="kernel/motorola/msm8952" remote="github" revision="crdroid-9" /> | |
| <project name="Gardens-Network/device_motorola_athene" path="device/motorola/athene" remote="github" revision="lineage-16.0" /> | |
| <remove-project name="LineageOS/android_vendor_qcom_opensource_data-ipa-cfg-mgr"/> | |
| </manifest> |
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 string | |
| input_scrambled = open("input.txt","r").read().replace("\n"," ").split(" ") | |
| wordlist = open("wordlist-german.txt","r").read().split("\n") | |
| wordlist = [w.lower() for w in wordlist] | |
| wordlist_dict = {} | |
| for w in wordlist: | |
| for a in w: | |
| if a not in wordlist_dict: | |
| wordlist_dict[a] = set() |
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 [ $# -le 0 ]; then | |
| echo "Usage: $0 url (outputfilename)" | |
| exit | |
| fi | |
| if [ $# -eq 2 ]; then | |
| outputfilename="--output-document=$2" | |
| 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 logging | |
| #import subprocess | |
| from datetime import datetime, timedelta | |
| from telegram.ext import CommandHandler, Updater, filters, MessageHandler | |
| logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) | |
| logger = logging.getLogger(__name__) | |
| updater = Updater(token=TOKEN', use_context=True) | |
| dispatcher = updater.dispatcher |