Skip to content

Instantly share code, notes, and snippets.

Avatar

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 "https://rubygems.org"
-ruby "2.1.2"
+ruby "2.3.1"
gem "sinatra"
@lenn4rd
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 = 'https://hooks.slack.com/services/...';
const slack_req_opts = url.parse(slack_url);
slack_req_opts.method = 'POST';
slack_req_opts.headers = {'Content-Type': 'application/json'};
@lenn4rd
lenn4rd / README.md
Last active Sep 15, 2015
Upstart configuration for AeroFS Team Server on Ubuntu
View README.md

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 https://gist.github.com/follmann/4100359

View test_php_mail.php
<?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