Skip to content

Instantly share code, notes, and snippets.

View gmolveau's full-sized avatar

Grégoire MOLVEAU gmolveau

View GitHub Profile
@gmolveau
gmolveau / lit_palettes_europe.pdf
Last active February 10, 2025 20:24
Réaliser un sommier de lit en palettes europe pour matelas 140x200
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gmolveau
gmolveau / firefox_dark_background.md
Last active January 31, 2025 23:07
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 / twitter_reset.md
Last active January 30, 2025 09:13
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 / how_to_reverseproxy_proxypass_nginx_letsencrypt.md
Last active January 17, 2025 13:01
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 / uuid_user.py
Last active January 17, 2025 02:56
sqlalchemy uuid for sqlite
########################
# UUID for SQLite hack #
########################
from sqlalchemy.types import TypeDecorator, CHAR
from sqlalchemy.dialects.postgresql import UUID
import uuid
class GUID(TypeDecorator):
@gmolveau
gmolveau / facebook_reset_FR.md
Last active January 5, 2025 04:26
Facebook reset script

Facebook Reset

Ce script permet de vider le flux d'activité d'un compte facebook, sans supprimer les amis ni quitter les groupes. Ce script ne supprime pas les messages messenger.

Lancer via la console

  • se rendre sur facebook.com > Profil > Historique personnel
    • fonctionne aussi dans les autres catégories comme sondages ou historique des recherches
  • ouvrir la console
  • copier-coller l'intégralité du script ci-dessous
@gmolveau
gmolveau / openshot_installer.sh
Created December 17, 2024 09:35
Openshot appimage installer
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
APPIMAGE_URL="https://github.com/OpenShot/openshot-qt/releases/download/v3.2.1/OpenShot-v3.2.1-x86_64.AppImage"
APPIMAGE_NAME="OpenShot-v3.2.1-x86_64.AppImage"
ICON_SOURCE="squashfs-root/usr/share/icons/hicolor/scalable/apps/openshot-qt.svg"
@gmolveau
gmolveau / singlefile_config.json
Created November 30, 2024 08:40
Singlefile personal config (remove characters, FS friendly)
{
"profiles": {
"__Default_Settings__": {
"removeHiddenElements": true,
"removeUnusedStyles": true,
"removeUnusedFonts": true,
"removeFrames": false,
"blockScripts": true,
"blockVideos": true,
"blockAudios": true,
@gmolveau
gmolveau / docker_quick_run.sh
Last active November 20, 2024 13:43
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 / envsubst.sh
Last active November 15, 2024 06:59
envsubst alternative in pure bash - replace prefixed environment variables (eg. ${XX_MYVAR}) in a text file
#!/bin/bash
usage() {
echo "Usage: $0 [OPTIONS] [file_path]"
echo "OPTIONS:"
echo " -p, --prefix PREFIX Specify the prefix for environment variables"
echo " -h, --help Show this help message"
echo "If no file_path is provided, the script reads from stdin."
exit 1
}