Skip to content

Instantly share code, notes, and snippets.

View imcvampire's full-sized avatar
🎯
Focusing

Quoc-Anh Nguyen imcvampire

🎯
Focusing
View GitHub Profile
@imcvampire
imcvampire / red_stderr.sh
Created November 19, 2021 10:22 — forked from tmatilai/red_stderr.sh
Make direnv error messages red
#!/usr/bin/env bash
#
# Color all stderr output from .envrc evaluation.
# Copy this file to ~/.config/direnv/lib/red_stderr.sh
# Override the direnv stdlib function to print with "normal" color
log_status() {
if [[ -n $DIRENV_LOG_FORMAT ]]; then
local msg=$*
local color_normal
@imcvampire
imcvampire / housekeeping_images.sh
Created November 18, 2019 10:12 — forked from DaanGeurts/housekeeping_images.sh
Deleting unused images from Google Container Registry, leaving x number left
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software