Skip to content

Instantly share code, notes, and snippets.


Yannick François yaf

View GitHub Profile
View rdv-solidarites-github-issues
curl \
-H "Accept: application/vnd.github.v3+json" \
curl \
-H "Accept: application/vnd.github.v3+json" \
curl \
View tcr
(bundle exec rspec spec/services/rdv_updater_spec.rb && git add -A && git commit) || git checkout .
View Co-auteur
git commit -t .gitmessage
$ cat .gitmessage
[un sujet qui commence part un verbe au présent]
Co-authored-by: krichtof <>
Co-authored-by: yaf <>
Co-authored-by: pblayo <>
Co-authored-by: LucienMLD <>
yaf /
Last active Oct 15, 2020
configuration user postgresql
# Les paquets Debian nécessaire pour faire du postgresql avec Ruby
sudo apt-get -y install postgresql postgresql-contrib libpq-dev
# création d'un compte CSF, avec un mot de passe CSF, pour la base de données :
sudo -u postgres psql -c "create role csf with createdb login password 'csf';"
# pour tester :
psql -U csf -h localhost
# renvoie "database "csf" does not exist"
View hello.rb
puts "erreur, la fonction phrase() n'existe pas encore"
require "./une_lib"
puts "Hello depuis le fichier executé : hello.rb"

Keybase proof

I hereby claim:

  • I am yaf on github.
  • I am ya_f ( on keybase.
  • I have a public key ASBAUhe0KEwpEtGUyAXIWqHVnDILFoqdSVCJ0EN5WI5d2go

To claim this, I am signing this object:

yaf / jonesforth.f.txt
Last active Mar 15, 2017
Jones Forth fantastic simple 4th implementation written from assembly, that is remarkably readable
View jonesforth.f.txt
\ -*- text -*-
\ A sometimes minimal FORTH compiler and tutorial for Linux / i386 systems. -*- asm -*-
\ By Richard W.M. Jones <>
\ This is PUBLIC DOMAIN (see public domain release statement below).
\ $Id: jonesforth.f,v 1.17 2007/10/12 20:07:44 rich Exp $
\ The first part of this tutorial is in jonesforth.S. Get if from
\ PUBLIC DOMAIN ----------------------------------------------------------------------
yaf / binomage-tmux
Created Mar 29, 2016
Use to connect to a tmux session named "binomage". Start this session with -L on machine , and add this line in ~/.ssh/authorized_keys file
View binomage-tmux
command="/usr/bin/tmux -L binomage attach",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-rsa
View curl-w3-validator
curl -H "Content-Type: text/html; charset=utf-8" \
--data-binary @FILE.html \
yaf /
Created Feb 14, 2016
Todo list tool
todo(){ cd ~/.todo||return 1&& l=$(ls -1t|head -n1)&&t=$(date +%Y%m%d);[[ "$1" == "last" ]]&&cp $l $t; ${EDITOR:-vi} $t;cd -;}