Skip to content

Instantly share code, notes, and snippets.

Avatar

Yannick François yaf

View GitHub Profile
View rdv-solidarites-github-issues
curl \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/betagouv/rdv-solidarites.fr/issues
curl \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/betagouv/rdv-solidarites.fr/issues/1241/events
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 <christophe.robillard@beta.gouv.fr>
Co-authored-by: yaf <yannick.francois@beta.gouv.fr>
Co-authored-by: pblayo <philippe.blayo@beta.gouv.fr>
Co-authored-by: LucienMLD <lucien.mollard@beta.gouv.fr>
@yaf
yaf / create-user.sh
Last active Oct 15, 2020
configuration user postgresql
View create-user.sh
# 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
begin
phrase("Henri")
rescue
puts "erreur, la fonction phrase() n'existe pas encore"
end
require "./une_lib"
puts "Hello depuis le fichier executé : hello.rb"
View keybase.md

Keybase proof

I hereby claim:

  • I am yaf on github.
  • I am ya_f (https://keybase.io/ya_f) on keybase.
  • I have a public key ASBAUhe0KEwpEtGUyAXIWqHVnDILFoqdSVCJ0EN5WI5d2go

To claim this, I am signing this object:

@yaf
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 <rich@annexia.org> http://annexia.org/forth
\ 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 http://annexia.org/forth
\
\ PUBLIC DOMAIN ----------------------------------------------------------------------
\
@yaf
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 \
https://validator.w3.org/nu/?out=gnu
@yaf
yaf / todo.sh
Created Feb 14, 2016
Todo list tool
View todo.sh
todo(){ cd ~/.todo||return 1&& l=$(ls -1t|head -n1)&&t=$(date +%Y%m%d);[[ "$1" == "last" ]]&&cp $l $t; ${EDITOR:-vi} $t;cd -;}