Skip to content

Instantly share code, notes, and snippets.

View carlin-q-scott's full-sized avatar

Carlin Scott carlin-q-scott

View GitHub Profile
@carlin-q-scott
carlin-q-scott / gist:fbc4fa76b9e8fc5286101c1ef13e921b
Created December 10, 2019 20:01 — forked from Wysie/gist:03934b6a79a715772abd
Upload to Amazon S3 Instead of Server for Sendy Email Image Uploads
//Using S3.php from https://github.com/tpyo/amazon-s3-php-class. Place it in includes/helpers
//Replaces Sendy's includes/create/upload.php
<?php
include('../functions.php');
include('../login/auth.php');
require_once('../helpers/S3.php');
//Init
$file = $_FILES['file']['tmp_name'];
@carlin-q-scott
carlin-q-scott / docker-relay.sh
Last active November 17, 2018 21:49 — forked from jwilson8767/install_WSL_docker.sh
Docker or Docker Toolbox for Windows and Windows Subsystem for Linux (aka Bash on Windows)
#!/bin/sh
exec socat UNIX-LISTEN:/var/run/docker.sock,fork,group=docker,umask=007 EXEC:"npiperelay.exe -ep -s //./pipe/docker_engine",nofork