Skip to content

Instantly share code, notes, and snippets.

@Andersos
Andersos / remoteConfigToSlack.ts
Created January 29, 2024 20:34
This script is run as a Firebase function to notify in a Slack channel about changes to Firebase Remote config. Read more in the blogpost about it at andersos.net/2024/firebase-remote-config-slack-notifications
import * as admin from 'firebase-admin';
import * as functions from 'firebase-functions';
import { TemplateVersion } from 'firebase-functions/v1/remoteConfig';
import jsonDiff from 'json-diff';
import fetch from 'node-fetch';
// If you are unsure about how to generate webhooks for Slack read this https://api.slack.com/messaging/webhooks
// const test_feed = 'https://hooks.slack.com/services/...';
const slack_notification_channel = 'https://hooks.slack.com/services/...';
### Keybase proof
I hereby claim:
* I am andersos on github.
* I am andersos (https://keybase.io/andersos) on keybase.
* I have a public key whose fingerprint is 8CBA 0D56 6576 1814 4F4F 51A3 9F7E 24AC 1EEF 34B4
To claim this, I am signing this object:
@Andersos
Andersos / anagram.java
Created January 23, 2013 19:30
Anagram finder
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;