Skip to content

Instantly share code, notes, and snippets.

View domq's full-sized avatar

Dominique Quatravaux domq

View GitHub Profile
@domq
domq / create_triggers
Last active April 30, 2020 19:29 — forked from colophonemes/create_triggers
Postgres TRIGGER to call NOTIFY with a JSON payload
CREATE TRIGGER person_notify AFTER INSERT OR UPDATE OR DELETE ON income
FOR EACH ROW EXECUTE PROCEDURE notify_trigger(
'id',
'email',
'username'
);
CREATE TRIGGER income_notify AFTER INSERT OR UPDATE OR DELETE ON income
FOR EACH ROW EXECUTE PROCEDURE notify_trigger(
'id',

Hello.

---
# Exemple de service et de route pour une application fictive
# "ask-camera-awake-everywhere" (le nom est quelconque bien sûr)
#
# Va bien avec
#
# oc run --restart=Never -it --image=busybox ask-camera-awake-everywhere
#
# dans lequel on peut par exemple lancer
#
#Rules for ic.epfl.ch (natalie)
RedirectMatch 301 ^/$ https://www.epfl.ch/schools/ic/
RedirectMatch 301 ^/en/?$ https://www.epfl.ch/schools/ic/
RedirectMatch 301 ^/fr/?$ https://www.epfl.ch/schools/ic/fr/
RedirectMatch 301 ^/computer-science/?$ https://www.epfl.ch/schools/ic/education/
RedirectMatch 301 ^/informatique/?$ https://www.epfl.ch/schools/ic/fr/education-fr/
RedirectMatch 301 ^/communication-systems/?$ https://www.epfl.ch/schools/ic/education/
RedirectMatch 301 ^/systemes-communication/?$ https://www.epfl.ch/schools/ic/fr/education-fr/
RedirectMatch 301 ^/data-science/?$ https://www.epfl.ch/schools/ic/education/master/data-science/
RedirectMatch 301 ^/science-donnees/?$ https://www.epfl.ch/schools/ic/fr/education-fr/master-fr/data-science/

Keybase proof

I hereby claim:

  • I am domq on github.
  • I am domq (https://keybase.io/domq) on keybase.
  • I have a public key ASASSXzh-SuLy32a4ibB50ujvZfaT4az_fIH_7wJDS3-5wo

To claim this, I am signing this object:

#!/usr/bin/perl -w
use strict;
use utf8;
use Encode qw(decode);
use Text::CSV;
use Net::LDAP;
use Error qw(:try);
;; .emacs, fichier de configuration d'emacs de Dom
;;
;; MODE D'EMPLOI
;;
;; Ce .emacs ambitionne de fonctionner tel quel sur toute installation fraîche
;; d'Emacs 23 ou ultérieur.
;;
;; Ce .emacs fonctionne main dans la main avec la fonction "Customize" d'Emacs,
;; de sorte qu'il est possible de tout personnaliser sans modifier ni même
;; comprendre l'Emacs Lisp. Essayez les combinaisons de touches suivantes :
@domq
domq / # libtool - 2016-06-29_10-40-23.txt
Last active June 29, 2016 08:41
libtool on Mac OS X 10.10.5 - Homebrew build logs
Homebrew build logs for libtool on Mac OS X 10.10.5
Build date: 2016-06-29 10:40:23
@domq
domq / # libtool - 2016-06-29_09-53-59.txt
Created June 29, 2016 07:55
libtool on Mac OS X 10.10.5 - Homebrew build logs
Homebrew build logs for libtool on Mac OS X 10.10.5
Build date: 2016-06-29 09:53:59
@domq
domq / search.js
Last active February 6, 2016 12:44
Search-as-you-type for Meteor
/**
* Search-as-you-type support.
*
* Inspired from meteorhacks:search-source, but uses a subscription instead of
* a call. Streams results. Signals end of search with success or error.
* Throttles searches to match the server-side speed.
*/
Search = function Search(name) {
this.name = name;