generated via plantuml
- How to change the background on Firefox to a dark one on new tab / loading screen ?
- Type
about:config
in the URL bar - Search
toolkit.legacyUserProfileCustomizations.stylesheets
and double-click the field to set it totrue
- Type
about:support
in the URL bar - Look for
Profile folder
field and click on the open button next to it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LATEST_VERSION=$(curl -s https://api.github.com/repos/so-fancy/diff-so-fancy/releases/latest | grep -Po '"tag_name": "v\K[^"]*') | |
sudo curl -L -o /usr/local/bin/diff-so-fancy "https://github.com/so-fancy/diff-so-fancy/releases/download/v${LATEST_VERSION}/diff-so-fancy" | |
sudo chmod +x /usr/local/bin/diff-so-fancy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm -it -v $PWD:/tmp debian:10-slim /bin/bash | |
# --rm : remove after exit | |
# -it : interactive TTY | |
# -v : mount folder : current folder to /tmp folder of the container | |
# debian:10-slim : docker image https://git.io/JJzfy | |
# /bin/bash : run bash in this container |
https://www.gnu.org/software/recutils/
GNU Recutils is a set of tools and libraries to access human-editable, plain text databases called recfiles.
TO install on mac : brew install recutils
add this to a new file named
books.rec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text_input = """a | |
b | |
c | |
d | |
e | |
f | |
""" | |
text_output = """1. a | |
1.1. b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################## | |
# UUID for SQLite hack # | |
######################## | |
from sqlalchemy.types import TypeDecorator, CHAR | |
from sqlalchemy.dialects.postgresql import UUID | |
import uuid | |
class GUID(TypeDecorator): |
Keywords : flask, gunicorn, apache2, send_file, werkzeug, requests, httpx, curl
curl: (18) transfer closed with 9895632 bytes remaining to read
urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(206700544 bytes read, 789007589 more expected)', IncompleteRead(206700544 bytes read, 789007589 more expected))
httpcore.RemoteProtocolError: peer closed connection without sending complete message body (received 290521088 bytes, expected 995708133)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
# set -o xtrace | |
if [ -d "${HOME}/.mozilla/firefox" ]; then | |
FIREFOX_PROFILES="${HOME}/.mozilla/firefox" | |
elif [ -d "${HOME}/snap/firefox/common/.mozilla/firefox" ]; then | |
FIREFOX_PROFILES="${HOME}/snap/firefox/common/.mozilla/firefox" |
NewerOlder