Skip to content

Instantly share code, notes, and snippets.

View tomfa's full-sized avatar

Tomas Fagerbekk tomfa

View GitHub Profile
@tomfa
tomfa / remove-gpg-user.sh
Created December 2, 2020 15:03 — forked from glogiotatidis/remove-gpg-user.sh
Git-crypt remove user.
#!/bin/bash
#
# Script to remove GPG key from git-crypt
#
# It will re-initialize git-crypt for the repository and re-add all keys except
# the one requested for removal.
#
# Note: You still need to change all your secrets to fully protect yourself.
# Removing a user will prevent them from reading future changes but they will
# still have a copy of the data up to the point of their removal.
@tomfa
tomfa / snsToSlack.js
Last active May 12, 2022 10:14 — forked from terranware/snsToSlack.js
AWS Lambda function SNS -> Slack Channel
var https = require('https');
var util = require('util');
var CHANNEL = "#aws-sns";
var PATH = "/services/your-slack-webhook-url-info-goes-here";
exports.handler = function(event, context) {
console.log(JSON.stringify(event, null, 2));
console.log('From SNS:', event.Records[0].Sns.Message);