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
#!/bin/python3 | |
import sys | |
import argparse | |
def repl_stream(inp, n, inchar, outchar): | |
""" | |
Replaces n last inchars in io wrapper with outchars | |
and prints to stdout. |
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
<# | |
.SYNOPSIS | |
This script creates a .xml-file containing the installed choco packages | |
with their corresponding version numers | |
.DESCRIPTION | |
This script creates a .xml-file containing the installed choco packages, | |
which can be used to automate the install of these packages in the exact same | |
version on a different system. (Right now you can get this only by using the | |
choco GUI-tool) |
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/python3 | |
import argparse | |
import sys | |
""" | |
This is a minimal template for building a CLI, which reads from a positional file-parameter, if such a argument is | |
existent and from stdin otherwise. | |
Usage: |
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/python3 | |
import sys | |
import re | |
import argparse | |
from http import HTTPStatus | |
req_pattern = r'\"(GET|POST|PUT|DELETE)\s(.*)\"\s(\d{3})' | |
ts_pattern = r'\[(.*)\s[-+]\d{4}\]' | |
NewerOlder