Skip to content

Instantly share code, notes, and snippets.

View finesse-fingers's full-sized avatar

Bobby Koteski finesse-fingers

  • Amplify Health
  • Singapore
View GitHub Profile
@finesse-fingers
finesse-fingers / coffee.sh
Last active January 30, 2024 04:18
Make your PC drink coffee
python -m pip install pyautogui --quiet
echo "Making an oat latte with 2 sugars..."
echo "Drinking..."
echo "Press ctrl+c to stop drinking..."
python -c "import pyautogui, time; [(pyautogui.press('shift'), time.sleep(59)) for _ in iter(int, 1)]"
@finesse-fingers
finesse-fingers / .sh
Created December 17, 2024 23:19
Copy git repo with history
git clone --bare https://oldRepoURL
cd oldRepoURL
git push --mirror https://newRepoURL
@finesse-fingers
finesse-fingers / delete-workflow-runs.sh
Last active March 22, 2025 07:51
Delete a disabled github actions workflow
# ref: https://stackoverflow.com/a/67000032/6648687
org=<org-name>
repo=<repo-name>
# Get workflow IDs with status "disabled_manually"
workflow_ids=($(gh api repos/$org/$repo/actions/workflows --paginate | jq '.workflows[] | select(.["state"] | contains("disabled_manually")) | .id'))
for workflow_id in "${workflow_ids[@]}"
do
@finesse-fingers
finesse-fingers / devcontainer.json
Last active April 28, 2025 14:31
VSC Dev Container Utilities
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Ubuntu",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {
"version": "latest",
"bicepVersion": "latest"