Skip to content

Instantly share code, notes, and snippets.

View DawnBreather's full-sized avatar

DawnBreather

  • ABCloudZ
  • SG
View GitHub Profile
@DawnBreather
DawnBreather / ghostty.config
Last active March 12, 2025 14:20
Installation snippets
command = /opt/homebrew/bin/nu
keybind = global:opt+space=toggle_visibility
copy-on-select = clipboard
background-opacity = 0.9
font-family = JetBrainsMono NF
background-blur = true
macos-option-as-alt = left
keybind = alt+left=unbind
keybind = alt+right=unbind
@DawnBreather
DawnBreather / gcp_container_registry_cleanup.md
Last active November 26, 2024 11:51
GCP Toolbox (i.e. scripts)

GCR Image Cleanup Script

A simple Bash script to clean up Google Container Registry (GCR) images older than a specified number of days. Includes a dry-run mode to preview deletions without making any changes.

Prerequisites

  • Google Cloud SDK (gcloud) installed and authenticated.
  • jq installed for JSON processing.
  • Access to the GCR repository from Cloud Shell or your local environment.
@DawnBreather
DawnBreather / won.pub
Created June 28, 2024 09:13
won - public SSH key
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGcMxvLwdrIcPEj67ugc1slbrooUPv3zxQyTAaq0Jh75 [email protected]
@DawnBreather
DawnBreather / install.sh
Created May 13, 2024 20:08
install.solv[object Object]
#!/bin/bash
set -e
# Constants and configurable variables
export NODE_VERSION="20.11.1"
# This ensures the entire script is downloaded
{
set -e # exit immediately if a command exits with a non-zero status

Mounting Amazon S3 Bucket in Windows and Docker

Table of Contents

1. Introduction

This document provides a comprehensive guide on how to mount an Amazon S3 bucket as a directory in Windows using Rclone, and how to subsequently mount this directory into a Docker container as a volume.

2. Prerequisites

VSCode Configuration for Handling Unsaved Changes and Window Management

To adjust VSCode’s behavior for unsaved changes and window management to avoid being prompted to save changes when closing windows, follow these configurations:

Auto Save Configuration

Enable auto save to automatically save changes, which helps in not being prompted when trying to close a window.

  1. Open the Command Palette with Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac).

  2. Type Preferences: Open Settings (UI) and select it.

@DawnBreather
DawnBreather / code.sh
Last active February 27, 2024 18:15
GCP: Create multi-regional Load-Balancer
# Google Cloud Multi-Regional Load Balancer Setup for Cloud Run
# Prerequisites:
# - Google Cloud SDK installed and initialized
# - Cloud Run services deployed in desired regions
# Step 1: Define Variables
# Replace these variables with your specific service names, regions, and project details
SERVICE_NAMES=("service1" "service2") # Example service names
REGIONS=("us-central1" "europe-west1") # Example regions
@DawnBreather
DawnBreather / wsl2-with-1password-info.md
Created June 15, 2023 09:58 — forked from WillianTomaz/wsl2-with-1password-info.md
Instructions for using 1Password SSH Agent with WSL2 (on Windows 11)

Saturday, April 22, 2023

How to Use 1Password SSH Agent with WSL2 (on Windows 11)

  • Note:

    • Always look for the official documentation, this tutorial may not suit you as there are new updates to the installation process.
    • References are at the end of the document.
  • Was used:

    • Windows 11 (x64)
    • WSL 2 (Ubuntu 22.04.2 LTS)
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGcMxvLwdrIcPEj67ugc1slbrooUPv3zxQyTAaq0Jh75 [email protected]
@DawnBreather
DawnBreather / README.md
Last active May 19, 2023 14:40
MacOS: tools bootstrap
  1. Open Terminal: Press Cmd+Space to open Spotlight, type "Terminal," and press Enter.
  2. Copy the script: Copy the script below:
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/DawnBreather/2d87b75e82ef3ea17e165cb0f00cf3a4/raw/f868fa4a313bbb7312261a0374589732c884e23e/install.sh)"
  1. Paste and run: In Terminal, paste the script using Cmd+V and press Enter. If prompted, enter your password and press Enter again.
  2. Wait for completion
  3. Verify installation: Press Cmd+Space and type the application names (e.g., "Zoom" or "Slack") to ensure they've been installed.