Skip to content

Instantly share code, notes, and snippets.

View gmolveau's full-sized avatar

Grégoire MOLVEAU gmolveau

View GitHub Profile
@gmolveau
gmolveau / firefox_dark_background.md
Last active January 12, 2026 11:48
Firefox dark background / theme for new tab and loading screen

Firefox Dark Background

  • How to change the background on Firefox to a dark one on new tab / loading screen ?

Procedure

  • Type about:config in the URL bar
  • Search toolkit.legacyUserProfileCustomizations.stylesheets and double-click the field to set it to true
  • Type about:support in the URL bar
  • Look for Profile folder field and click on the open button next to it.
@gmolveau
gmolveau / docker_quick_run.sh
Last active January 5, 2026 03:42
Quickly run a temporary docker container and execute bash to try things (like a CI script)
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
@gmolveau
gmolveau / install_dirb.sh
Created September 2, 2019 12:01
mac osx dirb install
cd ~/Applications
wget https://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz
tar -xvf dirb222.tar.gz
rm dirb222.tar.gz
brew install autoconf
chmod -R 755 dirb222
cd dirb222
./configure
make
make install
@gmolveau
gmolveau / spotlight_index_reset.sh
Created August 23, 2022 07:12
macos spotlight index reset
sudo mdutil -Ea
sudo mdutil -ai off
sudo mdutil -ai on
@gmolveau
gmolveau / recutils_tutorial_example.md
Last active December 14, 2025 18:07
A quick tutorial / example / cheatsheet of recutils https://www.gnu.org/software/recutils

recutils tutorial example

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

@gmolveau
gmolveau / twitter_reset.md
Last active November 7, 2025 01:43
Twitter reset scripts

Twitter Reset

Ces scripts permettent de vider le flux d'activité d'un compte twitter : RT, likes, tweets.

Those scripts will flush your twitter activity feed : likes, RT, tweets...

Ces scripts ne fonctionnent que pour twitter en langue anglaise. (https://twitter.com/settings/language)

Those scripts only work for twitter in english.

@gmolveau
gmolveau / google_sheets_dropdown_condition.md
Created September 14, 2025 19:47
google sheets - dropdown conditions - how to check if certain values are selected for a dropdown cell ?

In Google Sheets, the dropdown cell store its value as a comma-separated list of string.

To check if a dropdown cell has value "A" and "B" selected, use the following formula :

=IF(REGEXMATCH(D2;"[\s]?A[,]?") * REGEXMATCH(D2;"[\s]?B[,]?");"YES";"NOPE")

The regex matches a string, prefixed by an optional space, and suffixed by an optional comma.

@gmolveau
gmolveau / how_to_reverseproxy_proxypass_nginx_letsencrypt.md
Last active August 4, 2025 08:47
How to use nginx as a reverse-proxy with letsencrypt

How to use nginx as a reverse-proxy with letsencrypt

Your infrastructure

generated via plantuml

Imgur

Requirements

@gmolveau
gmolveau / golang_offline.md
Last active July 7, 2025 02:48
golang mod offline dependencies download

golang offline module dependencies download

Using go mod vendor

0 - With an existing module

  • copy go.mod and go.sum files from the offline PC to the internet PC

0bis - New module

@gmolveau
gmolveau / signal_ubuntu_install.sh
Created July 3, 2025 16:01
Installing Signal on Ubuntu without gpg errors
# avoids the common error : The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D980A17457F6FB06
sudo mkdir -m 0755 -p /etc/apt/keyrings/
wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
sudo chmod 644 /usr/share/keyrings/signal-desktop-keyring.gpg
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' |\
sudo tee /etc/apt/sources.list.d/signal-xenial.list