Skip to content

Instantly share code, notes, and snippets.

View sidewinder12s's full-sized avatar

Geoff Webster sidewinder12s

  • Aurora Innovation
  • San Jose, CA
  • 18:28 (UTC -07:00)
View GitHub Profile
# Powershell DSC configuration script for Pydio
# Be sure to set the $timezone and $repo variables
# The $repo location requires two folders - "installers" and "pydio-files"
# installers has php.zip (the latest PHP VC11 non-threadsafe zip), phpmanager.msi (the latest PHP Manager for IIS x64) and vcredist_x86.exe (VC++ Redistributable x86 11.0.61030)
# pydio-files has the latest Pydio zip unzipped to the base folder. This is done because unzip performance on DSC is rubbish
Configuration Pydio
{
param ($MachineName)
@sidewinder12s
sidewinder12s / handler.js
Last active August 29, 2015 14:22 — forked from ThisIsMissEm/handler.js
The better way to execute Go on Amazon Lambda (see: http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/)
var child_process = require('child_process');
exports.handler = function(event, context) {
var proc = spawn('./test', [ JSON.stringify(event) ], { stdio: 'inherit' });
proc.on('close', function(code){
if(code !== 0) {
return context.done(new Error("Process exited with non-zero status code"));
}