Skip to content

Instantly share code, notes, and snippets.

View domq's full-sized avatar

Dominique Quatravaux domq

View GitHub Profile

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:

#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/
---
# 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
#

Hello.

@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',
apiVersion: nfs.epfl.ch/v1alpha1
kind: NfsSubdirProvisioner
metadata:
name: wordpress
namespace: svc0041p-wordpress
spec:
nfs:
path: /si_openshift_app_wwp_app/wordpress-2025
server: nas-app-ma-nfs1.epfl.ch
storageClass: