Skip to content

Instantly share code, notes, and snippets.

@smpb
smpb / AtomOneDark.js
Created May 31, 2024 01:32 — forked from zeiv/AtomOneDark.js
Blink shell Atom One Dark theme
black = '#282c34';
red = '#e06c75'; // red
green = '#98c379'; // green
yellow = '#d19a66'; // yellow
blue = '#56b6c2'; // blue
magenta = '#c678dd'; // pink
cyan = '#56b6c2'; // cyan
white = '#d0d0d0'; // light gray
lightBlack = '#808080'; // medium gray
lightRed = '#e06c75'; // red
@smpb
smpb / LC_COLORS.md
Created January 15, 2024 15:17 — forked from thomd/LC_COLORS.md
LSCOLORS & LS_COLORS

alternatively use: 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:

a black

@smpb
smpb / git-commit-author-rewrite.md
Created March 13, 2020 18:22 — forked from trey/git-commit-author-rewrite.md
Change the email address for a git commit.

Change the email address for a git commit.

$ git commit --amend --author="Author Name <email@address.com>"

or

$ git commit --amend --reset-author
@smpb
smpb / 1-sleep-es7.js
Created March 4, 2020 14:15 — forked from danharper/1-sleep-es7.js
ES7's async/await syntax.
// ES7, async/await
function sleep(ms = 0) {
return new Promise(r => setTimeout(r, ms));
}
(async () => {
console.log('a');
await sleep(1000);
console.log('b');
})()
#!/usr/bin/env bash
# See <http://perltricks.com/article/57/2014/1/1/Shazam-Use-Image-Magick-with-Perlbrew-in-minutes>
# may need to have the perl configured with -Duseshrplib
#
# perl -V | grep -- '-Duseshrplib'
# compile perl with perlbrew:
#