Simple but effective way to remove recursively all the annoying $decimal key when using res.json
.
It's a simple regex that cleans the response object as a json before sending.
-- original source: https://medium.com/adhawk-engineering/using-postgresql-to-generate-slugs-5ec9dd759e88 | |
-- https://www.postgresql.org/docs/9.6/unaccent.html | |
CREATE EXTENSION IF NOT EXISTS unaccent; | |
-- create the function in the public schema | |
CREATE OR REPLACE FUNCTION public.slugify( | |
v TEXT | |
) RETURNS TEXT | |
LANGUAGE plpgsql |
I was struggling to find the webhook API documentation, if someone know where it is, please share!
I've created a simple google cloud function (index.js
) with NodeJS to push the monitoring alert to Discord.
You can also find a webhook body data as an example and a typescript interface.
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
rabbitmqctl add_user test test | |
rabbitmqctl set_user_tags test administrator | |
rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |
mod_k2_content |