Skip to content

Instantly share code, notes, and snippets.

@rrbutani
rrbutani / .bazel-toolchain-transitions.md
Last active October 16, 2025 14:52
.bazel-toolchain-transitions

September 5th, 2023

having a bit of a crisis

runfiles are broken

using platforms to model build environments is broken because of how strategies interact with platforms

bzlmod is conceptually pretty excellent but still has tons of warts and weird limitations that require lots of creative workarounds

@colbyfayock
colbyfayock / github-context.json
Created May 31, 2020 18:05
Sample payload for Github Action `github` context
{
"token": "[token]",
"job": "notifySlack",
"ref": "refs/pull/4/merge",
"sha": "[shad]",
"repository": "colbyfayock/demo-github-actions",
"repository_owner": "colbyfayock",
"repositoryUrl": "git://github.com/colbyfayock/demo-github-actions.git",
"run_id": 120667610,
"run_number": "2",
@onaforeignshore
onaforeignshore / color-test.sh
Created May 2, 2017 18:30
Prints out the colors for 256-color terminal, as well as testing truecolor
#!/usr/bin/env bash
echo ""
echo -e " \033[38;5;231m System colors:\033[m"
for r in {0..2}; do
for i in {0..15}; do
if [[ "$r" == "1" ]]; then
if [[ $i -gt 1 && $i -ne 4 ]]; then printf "\033[38;5;16m"; fi
printf "\033[48;5;${i}m %03d \033[m " $i
else
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active October 31, 2025 16:45
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a