This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.2-apache | |
ARG apache_uid=1000 | |
ARG apache_gid=1000 | |
RUN apt-get update && a2enmod rewrite && apt-get install -y --force-yes libfreetype6-dev libjpeg62-turbo-dev libpng-dev libmcrypt-dev libzip-dev libmemcached-dev zlib1g-dev \ | |
&& docker-php-ext-install gettext exif sockets mysqli pdo_mysql zip \ | |
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | |
&& docker-php-ext-install gd \ | |
&& pecl install memcached-3.0.4 mcrypt-1.0.1 \ | |
&& docker-php-ext-enable memcached mcrypt \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
require_once WP_CONTENT_DIR.'/plugins/amazon-web-services/vendor/aws/aws-autoloader.php'; | |
use \Aws\S3\S3Client; | |
add_filter('gform_upload_path', 'gform_change_upload_path', 10, 2); | |
add_action('gform_after_submission', 'gform_submit_to_s3', 10, 2); | |
//change gravity form upload path to point to S3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!define PRODUCT_NAME "Hello World 2" | |
!include "MUI.nsh" | |
!include "LogicLib.nsh" | |
; MUI Settings | |
!define MUI_ABORTWARNING | |
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\user.ico" | |
; Language files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Container(opt){ | |
this.services = []; | |
if(opt) | |
{ | |
this.owner = opt.owner || window; | |
} | |
} | |
Container.prototype = { |