Skip to content

Instantly share code, notes, and snippets.


Lennard Timm lenn4rd

View GitHub Profile
View diff.patch
diff -u /var/folders/ch/lbrm_76960502c7j_hrbt08jk2dg2j/T/git-difftool.jpKQj/left/Gemfile /var/folders/ch/lbrm_76960502c7j_hrbt08jk2dg2j/T/git-difftool.jpKQj/right/Gemfile
--- /var/folders/ch/lbrm_76960502c7j_hrbt08jk2dg2j/T/git-difftool.jpKQj/left/Gemfile 2016-08-21 00:16:17.000000000 +0200
+++ /var/folders/ch/lbrm_76960502c7j_hrbt08jk2dg2j/T/git-difftool.jpKQj/right/Gemfile 2016-08-21 00:06:25.000000000 +0200
@@ -1,6 +1,8 @@
source ""
-ruby "2.1.2"
+ruby "2.3.1"
gem "sinatra"
lenn4rd / function.js
Created May 18, 2016 — forked from vgeshel/function.js
AWS Lambda function for forwarding SNS notifications to Slack
View function.js
console.log('Loading function');
const https = require('https');
const url = require('url');
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration
const slack_url = '';
const slack_req_opts = url.parse(slack_url);
slack_req_opts.method = 'POST';
slack_req_opts.headers = {'Content-Type': 'application/json'};
lenn4rd /
Last active Sep 15, 2015
Upstart configuration for AeroFS Team Server on Ubuntu

Upstart configuration for AeroFS Team Server

Use one of the following files to control AeroFS Team Server with Upstart:

  • aerofsts.conf for recent Upstart that supports setuid (version 1.4 and above)
  • aerofsts-old-upstart.conf for older Upstart, e.g. on Ubuntu 10.04

Based on

View test_php_mail.php
/* Sends a test email with PHP's mail() method
* Put this file on your web server or run it from the command line:
* php test_php_mail.php
* When testing locally, i.e. on your development machine, make sure that
* you set a valid from address for sendmail unless your machine doesn't