These skills now live in a regular repo:
This tool automatically syncs environment variables from ~/.bash_profile to macOS LaunchAgent, making them available to GUI applications and non-shell processes.
When you set environment variables in ~/.bash_profile, they're only available in Terminal sessions. GUI applications (like VS Code, IntelliJ, etc.) launched from Finder or Spotlight don't see these 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
| # Made more generic version in https://github.com/voitta-ai/truffaldino |
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 psycopg2 | |
| import pandas as pd | |
| import pyarrow.parquet as pq | |
| import pyarrow as pa | |
| import glob | |
| # PostgreSQL connection | |
| conn_pg = psycopg2.connect( | |
| host="db_host, | |
| database="drumwave", |
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 | |
| # Variables | |
| GITHUB_ORG=reddrummer | |
| GITHUB_TOKEN=$DRUMWAVE_GITHUB_TOKEN | |
| # Set GitHub CLI authentication | |
| export GH_TOKEN=$GITHUB_TOKEN | |
| # Check if `gh` CLI is installed |
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: Scan for CVEs | |
| on: | |
| schedule: | |
| - cron: '0 * * * *' | |
| workflow_dispatch: | |
| repository_dispatch: | |
| types: | |
| - sync-prs |
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 | |
| # set -x | |
| inst_id=$(ec2metadata --instance-id) | |
| while : | |
| do | |
| used_megs=$(free --mega | awk 'NR!=1 {print $3}' | head -1) | |
| aws cloudwatch put-metric-data \ | |
| --region us-west-2 \ |
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
| def findEqualParts(remArr, half, s, d=0): | |
| for i in range(len(remArr)): | |
| remArr2 = remArr[:] | |
| diff = s - remArr2[i] | |
| # print(f"Entering findEqualParts({remArr}, {half}, {s}; diff is {diff}, i is {i}, d is {d}") | |
| if diff > 0: | |
| half2 = half[:] | |
| half2.append(remArr2[i]) | |
| s2 = s - remArr[i] | |
| del remArr2[i] |
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 | |
| # Parse the output and generate a Deployment Manager configuration file | |
| echo "resources:" > config0.yaml | |
| echo "outputs:" > outputs0.yaml | |
| # List all Cloud Run services and their attributes | |
| services=$(gcloud run services list --format="csv(NAME, REGION, IMAGE)" --quiet | tail -n+2) |
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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "sync" | |
| "time" | |
| ) | |
| func withCancel() { |
NewerOlder