Skip to content

Instantly share code, notes, and snippets.

@d-faure
d-faure / .bashrc
Last active February 19, 2024 15:54
Bash prompt with screen info
# fancy (magenta + green + blue)
PS1='${STY+\[\e[1;35m\](${STY#[0-9]*.})\[\e[0m\] }\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\] \$ '
# fancy (magenta + red + blue)
PS1='${STY+\[\e[1;35m\](${STY#[0-9]*.})\[\e[0m\] }\[\e[1;31m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\] \$ '
# regular
PS1='${STY+(${STY#[0-9]*.}) }\u@\h:\w \$ '
@d-faure
d-faure / _ busybox portable how-to.md
Last active July 2, 2024 16:19
How-to make a busybox-w32 installation more or less portable
@d-faure
d-faure / wget.sh
Created March 3, 2021 15:31 — forked from Dammmien/wget.sh
wget cheat sheet
# POST a JSON file and redirect output to stdout
wget -q -O - --header="Content-Type:application/json" --post-file=foo.json http://127.0.0.1
# Download a complete website
wget -m -r -linf -k -p -q -E -e robots=off http://127.0.0.1
# But it may be sufficient
wget -mpk http://127.0.0.1
# Download all images of a website
@d-faure
d-faure / AnimateInputLabel.md
Last active January 16, 2020 14:57
Input labels animation
// ==UserScript==
// @name My Custom Fixed Font in Gmail
// @namespace https://mail.google.com
// @include https://mail.google.com/*
// @icon https://ssl.gstatic.com/ui/v1/icons/mail/favicon.ico
// @run-at document-start
// @description My Custom fixed-font in Gmail messages
// @version 1.4.1
// @license CC0; https://creativecommons.org/publicdomain/zero/1.0/
// @author Me and Marcin Rataj (original), Martin Baranski (tweaks)