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 requests | |
import sys | |
import time | |
# add a list of addresses to the clusters list | |
def add_address_list_to_clusters(clusters, new_list): | |
found_cluster = None | |
# check all new addresses in the list | |
for new_address in new_list: |
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 python3 | |
from pathlib import Path | |
import json | |
# list for solutions | |
solutions = [0,0,0,0,0,0,0,0] | |
# iterate over all API files | |
pathlist = Path('openapi-in-the-wild').glob('*.json') | |
for file_path in pathlist: |
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 python3 | |
from pathlib import Path | |
from openapi3 import OpenAPI | |
import yaml | |
# colors for printing | |
GREEN = '\033[92m' | |
RED = '\033[91m' | |
END_COLOR = '\033[0m' |
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
\documentclass[12pt,a4paper,german]{article} | |
\usepackage{url} | |
%\usepackage{graphics} | |
\usepackage{times} | |
\usepackage[T1]{fontenc} | |
\usepackage{ngerman} | |
\usepackage[utf8]{inputenc} | |
\usepackage{geometry} | |
\usepackage{amsfonts} | |
\usepackage{graphicx} |
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
""" | |
Telegram Moodle Notificatior | |
Get notifications for moodle events via telegram. | |
""" | |
import sys | |
from datetime import datetime, timedelta, date | |
import requests | |
import icalendar | |
import validators | |
from dateutil.rrule import * |
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
\documentclass{beamer} | |
\usepackage{graphicx} | |
\usepackage{hyperref} | |
\usetheme{Boadilla} | |
\title{Latex Lecture Overview} | |
\subtitle{Using Beamer} | |
\author{v1nc} | |
\institute{TU-Dortmund} |
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
#install deps | |
sudo apt install software-properties-common dpkg-dev | |
sudo add-apt-repository -y ppa:nginx/stable | |
sudo apt-get update && upgrade -y | |
#download source | |
mkdir nginx && cd nginx | |
sudo apt-get source nginx |
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
#forked from https://raw.githubusercontent.com/jmdugan/blocklists/master/corporations/google/non_localized | |
0.0.0.0 1e100.net # Google Cookies | |
0.0.0.0 466453.com # Google | |
0.0.0.0 abc.xyz | |
0.0.0.0 admob.com # AdMob | |
0.0.0.0 adsense.com # AdSense | |
0.0.0.0 adservice.google.com | |
0.0.0.0 adwords.com # AdWords | |
0.0.0.0 android.com # Android | |
0.0.0.0 blogger.com # Blogger |
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
#first flash latest firmware: https://medium.com/@0x1231/nextthingco-pocket-c-h-i-p-flashing-guide-3445492639e | |
#change to mirror repo and update | |
sudo sed -i 's/opensource.nextthing.co/chip.jfpossibilities.com/g' /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get dist-upgrade -y | |
#update to stretch | |
sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list |