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
<# | |
.SYNOPSIS | |
Tracks Steam download activity and schedules a computer shutdown when downloads finish. | |
.DESCRIPTION | |
This script polls the Steam client’s registry and app manifest files to determine download status. | |
It handles scenarios like network interruptions and manual cancellation by checking the presence | |
and content of the appmanifest_<ID>.acf files. After observing a configurable number of idle | |
cycles following a completed download, it triggers a system shutdown with a grace period to abort. |
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
name: Publish docs via GitHub Pages | |
# syncs your mkdocs markdown files with azure devops wiki. | |
# NOTE: this doesn't work with automated markdown files which maybe generated in your case | |
# this also doesn't deal with ordering | |
on: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: |
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
# Replace 'src' with the right package name. | |
# Change project.name | |
# Ensure author name and email matches. | |
# Change project.urls.Home | |
# Update python version. | |
# update packages. | |
[build-system] | |
requires = ["poetry-core", "poetry-dynamic-versioning"] | |
build-backend = "poetry_dynamic_versioning.backend" |
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 os | |
import subprocess | |
import sys | |
from typing import Union | |
BRANCH_TAG_MAP = { | |
"develop": "nightly", | |
"staging": "alpha", | |
"release": "alpha", | |
"master": None, |
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 pandas as pd | |
import subprocess | |
import os | |
env = os.environ.copy() | |
STALE_PERIOD = 10 | |
REQUIRED_BRANCHES = ['master', 'staging', 'develop'] | |
branches = subprocess.run('git branch -r' , capture_output=True, env=env, shell=True) | |
branches = branches.stdout.decode('utf-8').strip().split('\n')[1:] |