• Amazon AWS

    Amazon Lambda – E-mail via SNS the URL of an S3 file when created

    I threw together the following Lambda function to send an e-mail via SNS (Amazon’s Simple Notification Service) whenever a file is created in S3 (Amazon’s Simple Storage Service.)  Yes, it’s barely commented and overly loggy, but you get the idea:   'use strict'; console.log('Loading function'); const aws = require('aws-sdk'); const s3 = new aws.S3({ apiVersion: '2006-03-01' }); exports.handler = (event, context, callback) => { //console.log('Received event:', JSON.stringify(event, null, 2)); // Get the object from the event and show its content type const bucket = event.Records[0].s3.bucket.name; const key = decodeURIComponent(event.Records[0].s3.object.key.replace(/\+/g, ' ')); const params = { Bucket: bucket, Key: key, }; s3.getObject(params, (err, data) => { if (err) { console.log(err); const…

  • Management Gore

    Unroll.me ‘heartbroken’

    On April 23, 2017, unroll.me posted a blog with a byline from Jojo Hedya – the CEO and co-founder at Unroll.me.  In the blog, Jojo states that “it was heartbreaking to see that some of our users were upset to learn about how we monetize our free service.”  Yes, if the service is free, then you (and your information) are probably what is being sold and unroll.me was no exception. How could the tenants of the un-CEO have helped Jojo?  Treat your employees with respect and, just as importantly, treat your customers with respect.  This is the time for the CEO to come clean with the customers.  Actually, the time was well…

  • Welcome

    Welcome to the Un-CEO

    Why are you here? Hopefully you’re here to learn. A reasonable person would see a track record of success and think that there could be something to be learned there. The problem, which hopefully you’ll learn here, is one of the most common biases, Survivorship Bias. Survivorship bias is when you only study the successes and not the failure and therefore potentially come to false conclusions based on only a sliver of the evidence. In a world of hype, I’m trying to promote critical thinking and a way to battle the hype. My goal is to add humanity and humility back to the role of CEO and to business management…