Skip to content

Instantly share code, notes, and snippets.

View NNBnh's full-sized avatar
⚠️
TypeError: Cannot read property 'status' of undefined.

NNB NNBnh

⚠️
TypeError: Cannot read property 'status' of undefined.
View GitHub Profile
@NNBnh
NNBnh / hosts-installer
Created February 27, 2021 10:24
Install Hosts ad-block quickly
#!/bin/sh
# Values
TMPDIR="${TMPDIR:-/tmp}"
# Start
curl -fsSL 'https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts' --create-dirs --output "$TMPDIR/hosts" \
&& printf '%s' "127.0.1.1 $(hostname)" >> "$TMPDIR/hosts" \
font = "Bmono 12"
geometry = "0x0-62-62"
separator_height = 2
padding = 2
horizontal_padding = 2
frame_width = 2
markup = full
format = "<b>%s</b>\n%b"
icon_path = ""
@NNBnh
NNBnh / starship-installer
Created January 13, 2021 14:27
Install Starship prompt quickly
#!/bin/sh
# Values
TMPDIR="${TMPDIR:-/tmp}"
# Start
curl -fsSL https://starship.rs/install.sh --create-dirs --output "$TMPDIR/starship-installer"
chmod +x "$TMPDIR/starship-installer"
@NNBnh
NNBnh / Bmap-Kakoune-menu.kbd.json
Last active December 24, 2021 15:40
Bmap Kakoune menu
[
{
"name": "Bmap Kakoune menu",
"author": "NNB"
},
[
{
"p": "CHICKLET",
"a": 5,
"f": 2
@NNBnh
NNBnh / Bmap-Kakoune.kbd.json
Last active December 24, 2021 15:40
Bmap Kakoune
[
{
"name": "Bmap Kakoune",
"author": "NNB"
},
[
{
"c": "#E02C6D",
"p": "CHICKLET",
"a": 5,