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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| from __future__ import unicode_literals | |
| import argparse | |
| import re | |
| import os | |
| import subprocess |
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 re | |
| import json | |
| import asyncio | |
| from textwrap import dedent | |
| from urllib.parse import urljoin | |
| from aiohttp import web | |
| async def index(_): | |
| return web.Response(text=""" |
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
| #!/usr/bin/env python3 | |
| # coding: utf-8 | |
| import argparse | |
| import re | |
| from uuid import uuid4 | |
| from hashlib import sha256 | |
| SALT = str(uuid4()).encode() |
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 | |
| SERVBIN=${SERVBIN:-/usr/sbin/service} | |
| success=0 | |
| function echo_rep { | |
| echo -n $(tput cuu1) | |
| echo -n $(tput ed) | |
| echo "$1" | |
| } |
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 typing import TypeVar, Callable, Any, Optional, Tuple, Type | |
| DATA_ERROR = ( | |
| KeyError, | |
| TypeError, | |
| ValueError, | |
| AttributeError, | |
| IndexError, | |
| AssertionError, | |
| ) |
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
| --- | |
| # List here all data controllers | |
| controllers: | |
| - name: Control Corporation | |
| address: 42 control road, 75000 Paris, France | |
| organisational_part: Control Part | |
| contact_person: Jean-Claude Control | |
| # That's all recipients for this data, wether internal database or an |
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
| #!/usr/bin/env python3 | |
| from argparse import ArgumentParser | |
| from sys import stdin, stdout | |
| import re | |
| SER_STR = re.compile(r"s:(\d+):(\\*\")(.*?)(\\*\");") | |
| def parse_args(): |
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
| """ | |
| This is a monkey patch of the requests-html module so it can download chrome | |
| and store its data in a custom location and not in the home directory (which | |
| is not writable on servers and also we do not want chrome stored there). | |
| """ | |
| from os.path import ( | |
| join, | |
| ) | |
| from pathlib import ( |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 argparse import ArgumentParser, Namespace | |
| from base64 import b64encode | |
| from json import dumps | |
| from pprint import pprint | |
| from typing import Optional, Sequence, Text | |
| from urllib.parse import ParseResult, urljoin, urlparse | |
| from requests_html import HTMLSession | |