Skip to content

Instantly share code, notes, and snippets.

View igaskin's full-sized avatar
🏠
Working from home

Isaac Gaskin igaskin

🏠
Working from home
View GitHub Profile
@jannfis
jannfis / start-debug.sh
Last active March 5, 2021 07:46
Script to start Argo CD locally for debugging
#!/bin/sh
# Usage: $0 <component to debug>
# Will start all other components, and leaves starting the component to debug
# to the user (most likely, using delve via vscode).
MANDATORY_COMPONENTS="dex redis ui git-server dev-mounter"
case "$1" in
"server")
ADDITIONAL_COMPONENTS="repo-server controller"
;;
@jannfis
jannfis / launch.json
Last active September 20, 2022 13:52
vscode launcher configuration for debugging Argo CD components
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug argocd-server",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/main.go",
"args": [
@ottokruse
ottokruse / aws-console
Last active April 13, 2025 13:47
Python script to launch the AWS console in your webbrowser, using a presigned URL generated from your AWS CLI credentials
#!/usr/bin/env python3
"""
Usage:
- Save this script somewhere on your path (e.g. `vi /usr/local/bin/aws-console && chmod +x /usr/local/bin/aws-console`)
- Make AWS credentials available in one of the usual places where boto3 can find them (~/.aws/credentials, env var, etc.)
- Excute the script: `aws-console --profile myprofile`
- :tada: Your browser opens and you are signed in into the AWS console
"""
@apetresc
apetresc / redelegate-cro.sh
Last active March 28, 2023 05:44
A script to automatically claim Crypto.org CRO staking rewards and re-stake them
#!/bin/bash -e
# redelegate-cro.sh is a script that automatically claims all your delegation
# rewards (across any number of validators) in a single transaction (assuming a
# minimum reward threshold is met, to avoid spurious transactions). The rewards
# are then automatically redelegated to the provided validator address, leaving
# behind at least a 0.005 CRO buffer to ensure there is always enough for
# regular transaction fees.
#
# The idea is that it is safe to run this script on a fixed cron schedule and