Skip to content

Instantly share code, notes, and snippets.

View gmolveau's full-sized avatar

Grégoire MOLVEAU gmolveau

View GitHub Profile
@gmolveau
gmolveau / fathom_to_heroku.md
Last active February 25, 2025 13:24
How to push Fathom analytics - https://github.com/usefathom/fathom to Heroku

Deploy Fathom on Heroku

Requirements

  • heroku cli (logged in)
  • git
  • curl
  • wget
  • tar are required
  • ~ openssl is required to generate the secret_key, but you're free to use what you want
@gmolveau
gmolveau / firefox_dark_background.md
Last active April 1, 2025 08:41
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 / markdown-bash-execute.md
Last active March 28, 2023 16:19
Markdown Bash Execute

Markdown Bash Execute

  • Execute bash code block from a markdown file → ```bash [...] ```

Getting started

  • add this to your .bashrc or .zshrc or .what-ever.rc
# markdown bash execute
@gmolveau
gmolveau / publish_to_ghpages.sh
Last active December 8, 2019 16:38
GoHugo publish on gh-pages/docs branch for Github Pages
#!/usr/bin/env sh
REMOTE="origin"
BRANCH="gh-pages"
HUGO_FOLDER="public"
if ! git diff-files --quiet --ignore-submodules --
then
echo "The working directory is dirty. Please commit any pending changes."
exit 1;
@gmolveau
gmolveau / minimal.css
Created April 11, 2019 06:10
Minimal responsive CSS
/* from github.com/vladocar/CSS-Micro-Reset + blog.koley.in/2019/339-bytes-of-responsive-css */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1.6;
color: #222;
max-width: 40rem;
padding: 2rem;
margin: auto;
background: #fafafa
@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 / linkedin_reset_FR.md
Last active September 21, 2019 15:18
LinkedIn Reset scripts
@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 / 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 / nextcloud_calendar_restart.sh
Created October 15, 2019 16:23
nextcloud calendar birthday contacts restart
su - www-data -s /bin/bash -c 'php /var/www/html/nextcloud/occ dav:sync-birthday-calendar USERNAME'