Skip to content

Instantly share code, notes, and snippets.

View bzg's full-sized avatar
🎯
Focusing

Bastien bzg

🎯
Focusing
View GitHub Profile
@bzg
bzg / keybase.md
Created May 6, 2020 07:38
keybase.md

Keybase proof

I hereby claim:

  • I am bzg on github.
  • I am bzg (https://keybase.io/bzg) on keybase.
  • I have a public key ASDnZLEagLZqwGwBaAVy3BNTDrwSeEFCW8ioRB2a8CXA4Qo

To claim this, I am signing this object:

@bzg
bzg / covid19-fr-graph.html
Created March 15, 2020 11:30
Code HTML à inclure dans un site pour afficher une représentation du nombre de cas de contamination au COVID19 en France, par région
<img src="https://static.data.gouv.fr/resources/cas-confirmes-dinfection-au-covid-19-par-region/20200315-084505/covid19.svg" alt="Graphique montrant l'évolution du nombre de cas de contamination au COVID19 par région de France" />
@bzg
bzg / localstorage.cljs
Created October 24, 2019 20:20 — forked from daveliepmann/localstorage.cljs
HTML5 localStorage utility functions for ClojureScript. I find it makes for cleaner code when I wrap the native JS.
(ns localstorage)
(defn set-item!
"Set `key' in browser's localStorage to `val`."
[key val]
(.setItem (.-localStorage js/window) key val))
(defn get-item
"Returns value of `key' from browser's localStorage."
[key]
@bzg
bzg / tested.gouv.fr.txt
Last active July 29, 2019 21:00
Based on gouv.fr.csv, but checked: replace URL by its possible last redirect, only keep 200 status
http://92.accueil-etrangers.gouv.fr
http://95.accueil-etrangers.gouv.fr
http://abonnement-presse.gouv.fr
http://accueil-etrangers.gouv.fr
http://agence-francaise-anticorruption.gouv.fr
http://agreste.agriculture.gouv.fr
http://anom.archivesnationales.culture.gouv.fr
http://apiagent.gouv.fr
http://apientreprise.gouv.fr
http://apiparticulier.gouv.fr
@bzg
bzg / not.gouv.fr.csv
Created June 14, 2019 14:47
Liste de noms de domaine en "gouv.fr" mais pas en ".gouv.fr"
Nom de domaine Pays BE Departement BE Ville BE Nom BE Sous domaine Type du titulaire Pays titulaire Departement titulaire Domaine IDN Date de crtion Date de retrait du WHOIS
1euro-gouv.fr DE 99 KARLSRUHE 1&1 IONOS SE fr ORG FR 75 0 27-03-2019
accueilimpotsgouv.fr DE 99 REGENSBURG InterNetX GmbH fr ORG FR 33 0 27-10-2018
achat-education-gouv.fr FR 75 PARIS LIGNE WEB SERVICES - LWS fr 0 18-07-2013 16-08-2014
adap-erp-regularisation-gouv.fr FR 49 BEAUCOUZE VIADUC fr PERSON FR 75 0 11-05-2018
adap-gouv.fr DE 99 KARLSRUHE 1&1 IONOS SE fr ORG FR 77 0 30-07-2018
agnesbuzyn-gouv.fr FR 49 ANGERS NAMESHIELD fr ORG FR 75 0 26-07-2017
agriculture-gouv.fr FR 59 ROUBAIX OVH fr ORG FR 75 0 06-06-2013
agriculturegouv.fr FR 75 PARIS GANDI fr ORG FR 75 0 01-06-2012
agrigouv.fr FR 75 PARIS GANDI fr ORG FR 75 0 01-06-2012
@bzg
bzg / gouv.fr.csv
Last active June 18, 2019 11:26
Liste de noms de domaines en .gouv.fr (données AFNIC + collecte ad hoc)
Nom de domaine Pays BE Departement BE Ville BE Nom BE Sous domaine Type du titulaire Pays titulaire Departement titulaire Domaine IDN Date de crtion Date de retrait du WHOIS
08victimes.gouv.fr FR 49 ANGERS NAMESHIELD gouv.fr ORG FR 75 0 31-05-2005
1000paysages.gouv.fr FR 49 ANGERS NAMESHIELD gouv.fr ORG FR 75 0 06-03-2015
100projetspourleclimat.gouv.fr FR 49 ANGERS NAMESHIELD gouv.fr ORG FR 75 0 19-04-2016
2019.semaine-industrie.gouv.fr
24octobre.gouv.fr FR 72 SAINT SATURNIN DIGITAL RURAL INFORMATIQUE gouv.fr ORG FR 75 0 10-10-2012
3939.gouv.fr FR 49 ANGERS NAMESHIELD gouv.fr ORG FR 75 0 04-06-2007
92.accueil-etrangers.gouv.fr
95.accueil-etrangers.gouv.fr
abonnement-presse.gouv.fr FR 75 PARIS GANDI gouv.fr ORG FR 75 0 17-04-2019
@bzg
bzg / bzg-find-variable-or-function-at-point
Created July 17, 2018 19:12
Emacs: find variable or function at point
(defun bzg-find-variable-or-function-at-point ()
(interactive)
(or (find-variable-at-point)
(find-function-at-point)
(message "No variable or function at point.")))
(global-set-key (kbd "C-:") 'bzg-find-variable-or-function-at-point)

Keybase proof

I hereby claim:

  • I am bzg on github.
  • I am bzg (https://keybase.io/bzg) on keybase.
  • I have a public key whose fingerprint is 1BE1 5A5D 08A9 D595 9581 476B 1437 AC02 F73F 91A2

To claim this, I am signing this object:

@bzg
bzg / eig-nginx-proxy.conf
Created March 23, 2018 11:12
Exemple de configuration d'un site nginx qui redirige vers un service web d'un container ou d'une VM
########################################################################
#
# Exemple de configuration d'un sous-domaine eig-forever.org
#
# Le container ou la machine virtuelle est sur 192.168.0.102.
# Le service du container ou de la VM est sur le port 8000.
# Il sera exposé sur sousdomaine.eig-forever.org:80 et sur
# sousdomaine.eig-forever.org:443.
# Redirection 301 de http vers https
@bzg
bzg / clojure-data-zip-xml.clj
Last active April 13, 2017 07:17
Make xml-> return empty strings instead of skipping non-matching nodes
(ns test
(:require [clojure.zip :as zip]
[clojure.data.xml :as xml]
[clojure.data.zip.xml :as zx]))
(def xml-example
"<top>
<id>
<desc>
<other>Something</other>