Skip to content

Instantly share code, notes, and snippets.

View gmolveau's full-sized avatar

Grégoire MOLVEAU gmolveau

View GitHub Profile
@gmolveau
gmolveau / podcasts_list.md
Last active February 1, 2019 08:29
podcasts I need to listen to

Hegel

  • Quoi Hegel ? Qu'est-ce qu'il a Hegel ? (4/4) - Le droit, c'est la vie - 03/05/2018

    • avec : Jean-François KERVÉGAN, professeur de philosophie à l’Université Paris 1 Panthéon-Sorbonne
    • hegel-le-droit-cest-la-vie
  • Quoi Hegel ? Qu'est-ce qu'il a Hegel ? (3/4) - L'Histoire a-t-elle un sens ? - 02/05/2018

@gmolveau
gmolveau / podcasts_list.md
Last active February 1, 2019 08:34
podcasts I have listened to

Podcasts

France Culture

La Conversation Scientifique - Etienne KLEIN

@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 / manage.sh
Last active May 1, 2019 13:46
macbook management script
#!/bin/sh
restore() {
if test ! $(which gcc); then
echo "Installing xcode..."
xcode-select --install
fi
if test ! "$(which brew)"; then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/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 September 21, 2019 15:36
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 / 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'
@gmolveau
gmolveau / .zshrc
Last active December 3, 2019 20:46
my .zshrc
export ZSH=$HOME/.oh-my-zsh
### REQUIREMENTS
function reinstall() {
echo "installing oh-my-zsh \n"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
echo "installing plugins \n"
curl -L https://iterm2.com/shell_integration/zsh -o ~/.iterm2_shell_integration.zsh
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
@gmolveau
gmolveau / dealabs.js
Created December 5, 2019 14:48
dealabs sorted array of prices
[...document.querySelectorAll('span.thread-price')].map(elem => parseFloat(elem.innerText.replace("€","").replace(/,/, '.'))).sort(function(a,b) { return a - b;});
@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;