Install from https://github.com/sbstp/kubie and configure:
# ~/.kube/kubie.yaml
configs:
include:
#! /usr/bin/env bash | |
# Check if a device argument is provided | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 /dev/<device>" | |
exit 1 | |
fi | |
# Assign the first argument to DEVICE variable | |
DEVICE=$1 |
#! /usr/bin/env python | |
import shlex | |
import subprocess | |
import re | |
import csv | |
from io import StringIO | |
from dataclasses import dataclass | |
from typing import List, Dict, Any, Match, Optional |
import base64 | |
from typing import Union | |
def base64_encode(data: Union[str, bytes]) -> str: | |
""" | |
Encodes a string or byte string to a Base64 string. | |
:param data: The string or byte string to encode. If `data` is a string, it is encoded as UTF-8. | |
:return: A Base64 encoded string. | |
""" |
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |
#!/usr/bin/env python3.11 | |
"""Join MP4 video files using ffmpeg.""" | |
import logging | |
import re | |
import shutil | |
import subprocess # noqa: S404 | |
from rich.logging import RichHandler | |
from rich.console import Console | |
import tempfile |
$progressPreference = 'silentlyContinue' | |
$latestRelease = $(Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | |
$latestWingetMsixBundleUri = $latestRelease | Where-Object {$_.EndsWith(".msixbundle")} | |
$latestWingetMsixBundle = $latestWingetMsixBundleUri.Split("/")[-1] | |
$latestWingetLicenseUri = $latestRelease | Where-Object {$_.EndsWith("_License1.xml")} | |
$latestWingetLicense = $latestWingetLicenseUri.Split("/")[-1] | |
Write-Information "Downloading winget to artifacts directory..." |
#! /usr/bin/env python3 | |
from keycloak import KeycloakOpenID | |
from dotenv import dotenv_values | |
import json | |
from rich.console import Console | |
from rich.panel import Panel | |
from rich.syntax import Syntax | |
## Load config from .env |
#!/usr/bin/env bash | |
# This script was generated by bashly 1.0.5 (https://bashly.dannyb.co) | |
# Modifying it manually is not recommended | |
if [[ "${BASH_VERSINFO:-0}" -lt 4 ]]; then | |
printf "bash version 4 or higher is required\n" >&2 | |
exit 1 | |
fi | |
version_command() { |
Install from https://github.com/sbstp/kubie and configure:
# ~/.kube/kubie.yaml
configs:
include: