Skip to content

Instantly share code, notes, and snippets.

@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
@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