This is an outdated archive! Current version is avalable at: https://github.com/arwie/controlOS_demo/blob/main/docs/codesys_python_link.md
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 datetime import datetime | |
| from typing import Optional | |
| import pandas as pd | |
| from rich import box | |
| from rich.console import Console | |
| from rich.table import Table | |
| console = Console() |
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 bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
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 | |
| # Raspberry Pi stress CPU temperature measurement script. | |
| # | |
| # Download this script (e.g. with wget) and give it execute permissions (chmod +x). | |
| # Then run it with ./pi-cpu-stress.sh | |
| # | |
| # NOTE: In recent years, I've switched to using s-tui. See: | |
| # https://github.com/amanusk/s-tui?tab=readme-ov-file#options | |
| # Variables. |
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 ftplib | |
| import os | |
| import re | |
| """ | |
| MIT license: 2017 - Jwely | |
| Example usage: | |
| ``` python | |
| import ftplib |