Skip to content

Instantly share code, notes, and snippets.

View seantrane's full-sized avatar

Sean Trane Sciarrone seantrane

View GitHub Profile
@seantrane
seantrane / LS_COLORS.md
Last active November 2, 2023 16:35 — forked from thomd/LC_COLORS.md
LSCOLORS & LS_COLORS

Color Configuration for ls (LS_COLORS)

TLDR: lscolors generator tool: [http://geoff.greer.fm/lscolors/]

LSCOLORS

The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.

The color designators are as follows:

@seantrane
seantrane / postgres-cheatsheet.md
Created August 27, 2018 20:14 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@seantrane
seantrane / create_labels.sh
Last active August 17, 2018 16:05 — forked from Chompas/create_labels.sh
Bash script to create multiple Github labels at once
#!/usr/bin/env bash
#
# This is a modification from https://gist.github.com/omegahm/28d87a4e1411c030aa89
# Colours and convention picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
#
# Instructions
# Bash 4+ is needed because of associative arrays
# jq (https://stedolan.github.io/jq/)
# Create access Token from Github (https://help.github.com/articles/creating-an-access-token-for-command-line-use/) and save it under ".token" file
# Comment / Uncomment / Add, all the labels you want

There are two types of markup in Liquid: Output and Tag.

  • Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
  • Tag markup (which cannot resolve to text) is surrounded by