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 | |
| """ | |
| Combined Python code checker that runs both Pyright and Pylint | |
| """ | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| def run_pyright(target_path: str) -> bool: |
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 will remove google-cloud-ops-agent installation | |
| curl -fsSL https://raw.githubusercontent.com/GoogleCloudPlatform/getting-started-python/refs/heads/main/gce/add-google-cloud-ops-agent-repo.sh | bash -s -- --uninstall --remove-repo | |
| # Reference can be found here: https://github.com/GoogleCloudPlatform/getting-started-python/blob/main/gce/add-google-cloud-ops-agent-repo.sh |
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
| $ # Use Live CD to boot | |
| $ sudo su # Switch to root | |
| $ fdisk -l # Get names of root, boot & EFI partition names. you can also use blkid | |
| $ mount /dev/mapper/fedora_localhost--live-root /mnt # mount root partition | |
| $ cat /mnt/etc/fedora-release | |
| Fedora release 39 (Thirty Nine) | |
| $ mount /dev/nvme0n1p2 /mnt/boot # mount boot partition | |
| $ mount -o rw /dev/nvme0n1p1 /mnt/boot/efi # mount EFI partition, use '-o remount,rw' instead when the system back to RO state | |
| $ ls /mnt/boot/efi # should show all OS names under EFI |
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: Trigger Workflow Example | |
| on: | |
| push: | |
| branches: ["master"] | |
| workflow_dispatch: | |
| jobs: | |
| trigger-website: | |
| runs-on: ubuntu-latest |
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
| # My recommendation, run these commands inside tmux | |
| apt update && apt install -y tmux | |
| # Set local | |
| sudo locale-gen en_US.UTF-8 | |
| sudo update-locale LANG=en_US.UTF-8 | |
| sudo update-locale LANGUAGE=en_US.UTF-8 | |
| sudo update-locale LC_ALL=en_US.UTF-8 | |
| sudo update-locale LC_CTYPE=en_US.UTF-8 |