Skip to content

Instantly share code, notes, and snippets.

const events = [
{ title: "Appointment" },
{ title: "FW: Appointment" },
{ title: "//Appointment" },
];
const listFilter = (event) => {
const filters = ["FW:", "//"];
let found = false;
@epsalt
epsalt / emacs.bat
Created January 25, 2021 15:40
Shell scripts to open WSL Emacs from windows
@echo off
wsl source "$HOME/bin/wslmacs.sh"
@epsalt
epsalt / awair-request.js
Last active March 6, 2020 16:36
Backing up data from an Awair Sensor with AWS - Terraform config
// Modified from the https:request lambda blueprint
const https = require('https');
const aws = require('aws-sdk');
const s3 = new aws.S3({ apiVersion: '2006-03-01' });
exports.handler = (event, context, callback) => {
let d = Date.now();
let params = {
Bucket: event.s3.bucket,
Key: `${d}.json`

Keybase proof

I hereby claim:

  • I am epsalt on github.
  • I am epsalt (https://keybase.io/epsalt) on keybase.
  • I have a public key whose fingerprint is 2B6E 77F9 FA16 6760 2FE7 9385 2D77 E111 AD47 68FC

To claim this, I am signing this object: