Skip to content

Instantly share code, notes, and snippets.

View bobmaerten's full-sized avatar
🏠
Working from home

Bob Maerten bobmaerten

🏠
Working from home
  • Level UP Solutions
  • Valenciennes, France
View GitHub Profile
@bobmaerten
bobmaerten / recette.md
Created January 26, 2023 07:33
Recette de pizza au four ménager

Protocole pour pate à pizza

Notes

  • la quantité de levure à utiliser dépend du temps de repos
  • pour les proportions, j'utilise l'app PizzApp+, le plus délicat est la gestion de l'hydratation, plus c'est hydraté, plus fondante est la pate, mais plus collanteelle est aussi pendant la préparation…
  • compter 230g par paton pour petites pizza individuelles, 300g pour les grandes.
  • plus longtemps la pate mature au frigo, plus légère/digest elle sera
  • plus la farine est "forte" (proportion de protéines), plus facile sera l'étalage

Préparation (à la main)

@bobmaerten
bobmaerten / .gitattributes
Last active October 21, 2019 13:55 — forked from jeromedalbert/.gitattributes
Automatically resolve Git merge conflicts in Rails schema.rb by picking the most recent date in the conflict (works with Rails 6 and recent versions of Git). The following files should be in your home ~ directory.
db/schema.rb merge=railsschema
@bobmaerten
bobmaerten / pgsql-docker
Last active July 27, 2018 13:24
Start/Stop/Status Shell script for managing docker-postgresql container from @kamui
#!/usr/bin/env bash
PGSQL_DATA_PATH='/data/pg'
SERVER_CONTAINER="postgresql-server"
DATA_CONTAINER="postgresql-data"
function getStatus(){
CONTAINER_ID=$(docker ps -a | grep -v Exit | grep $SERVER_CONTAINER | awk '{print $1}')
if [[ -z $CONTAINER_ID ]] ; then
echo 'Not running.'
@bobmaerten
bobmaerten / git-prune-tracked-branches
Created October 28, 2016 07:07
Merged tracked branches pruning to keep .git/config file clean
#!/usr/bin/env bash
current_branch=$(git rev-parse --abbrev-ref HEAD)
[ $current_branch == "master" ] || git checkout master
git fetch --all -p --tags
git pull
for BRANCH in $(git branch --merged origin/master | grep -v "\* master")
do
day-activity = "!f() { git log --all --committer=<Insert Name here> --pretty=tformat:'%<(80,trunc) %s %Cred%ci%Creset' --abbrev-commit --after='yesterday' | pbcopy; pbpaste; }; f"
@bobmaerten
bobmaerten / untitled
Created February 10, 2016 08:06
Docker create and serve default jekyll image
$ docker-machine use bobmaerten
$ docker create --name jekyll_site -v /srv/jekyll jekyll/jekyll
$ docker run --rm --label=jekyll --volumes-from jekyll_site -it -p 4000:4000 jekyll/jekyll jekyll new .
$ docker run --rm --label=jekyll --volumes-from jekyll_site -it -p 4000:4000 jekyll/jekyll
@bobmaerten
bobmaerten / files_gemrc
Created December 13, 2013 15:08
ansible-playbook for installing Ruby via rbenv on Debian7 system. This playbook was first published by @mmoya on http://mmoya.org/blog/2013/02/22/installing-rubyrbenv-with-ansible/
---
:sources:
- http://gems.rubyforge.org
- http://gems.github.com
gem: --no-ri --no-rdoc
@bobmaerten
bobmaerten / exemple.md
Created June 17, 2013 14:42
Utilisation de diff pour obtenir la liste des fichiers/répertoire modifiés par un ou plusieurs commits. À la demande de @nicosomb dans le cadre d'une utilisation d'un hook git.

Voici mon dépôt git contenant la dernière version de oh_my_zsh, avec quelques commits locaux.

$ cd $ZSH
$ git branch -a
* local
  master
  remotes/origin/HEAD -> origin/master
$ git log --pretty=format:"%h %d %s" | head -4
0649746  (HEAD, local) rebase instead of git pull while upgrading
#!/bin/sh
SCP_USER='bob'
SCP_HOST='host'
SCP_PATH='/path/to/web/files/host.net/x/'
HTTP_URL="http://host.net/x/"
FILENAME=`(cat /dev/urandom|head -c 10; date) | md5 | head -c 10`.png
FILEPATH=/tmp/$FILENAME
@bobmaerten
bobmaerten / .tmux.conf
Created July 20, 2012 13:49
Mon .tmux.conf actuel
# status bar
set-option -g status-utf8 on
# left side of status bar
set -g status-left-length 30
set -g status-left '#S #h'
# right side of status bar
set -g status-right-length 30
set -g status-right '%Y-%m-%d | %H:%M #[default]'