Skip to content

Instantly share code, notes, and snippets.

View hollsteinm's full-sized avatar
💻
its going to explode!

◄hollsteinm► hollsteinm

💻
its going to explode!
View GitHub Profile
@hollsteinm
hollsteinm / AWS_Amazon_API_Gateway_Request_ISO_Date.vtl
Created February 28, 2022 17:03
Create an ISO Standard Date parsed from the Request Time (CLF Date) of the Amazon API Gateway Request.
#set($clfdate = $context.requestTime)
#set($split = $clfdate.split("/"))
#set($dayOfMonth = $split.get(0))
#set($monthText = $split.get(1))
#set($yearTimePart = $split.get(2))
#set($yearTimeSplit = $yearTimePart.split(":"))
#set($year = $yearTimeSplit.get(0))
#set($hour = $yearTimeSplit.get(1))
#set($minute = $yearTimeSplit.get(2))
#set($secondOffsetPart = $yearTimeSplit.get(3))
@hollsteinm
hollsteinm / learning-nodebb-launch.sh
Last active December 27, 2017 18:40
Automate the creation of a NodeBB instance using S3 for uploads, redis database, and an application load balancer (Simple, insecure PoC)
#!/bin/bash
set -e
echo "Update Services..."
yum -y update
echo "Install Dependencies..."
yum -y install epel-release
yum -y groupinstall "Development Tools"
yum -y install git ImageMagick npm