Skip to content

Instantly share code, notes, and snippets.

View autoize's full-sized avatar

Autoize autoize

View GitHub Profile
@autoize
autoize / mongo_setup.sh
Created May 24, 2020 18:04
mongo_setup.sh
#!/bin/bash
sleep 10
echo SETUP.sh time now: `date +"%T" `
mongo --host mongo1:27017 <<EOF
var cfg = {
"_id": "rs0",
"version": 1,
"members": [
{
@autoize
autoize / SugarcrmIntegration.php
Last active April 16, 2020 12:03
SugarcrmIntegration.php
<?php
/*
* @copyright 2014 Mautic Contributors. All rights reserved
* @author Mautic
*
* @link http://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
@autoize
autoize / 6977.diff
Created December 31, 2019 15:06
Pull request #6977 for Amazon SES API support in Mautic 2.15.3
diff --git a/app/bundles/EmailBundle/Assets/js/config.js b/app/bundles/EmailBundle/Assets/js/config.js
index f233d59f3f..5951c08143 100644
--- a/app/bundles/EmailBundle/Assets/js/config.js
+++ b/app/bundles/EmailBundle/Assets/js/config.js
@@ -66,6 +66,7 @@ Mautic.testMonitoredEmailServerConnection = function(mailbox) {
Mautic.testEmailServerConnection = function() {
var data = {
amazon_region: mQuery('#config_emailconfig_mailer_amazon_region').val(),
+ amazon_api_region: mQuery('#config_emailconfig_mailer_amazon_api_region').val(),
api_key: mQuery('#config_emailconfig_mailer_api_key').val(),
@autoize
autoize / rexray_ebs.json
Created July 12, 2019 18:36
Policy for IAM User with necessary permissions for rexray/ebs Docker plugin
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ec2:DetachVolume",
"ec2:AttachVolume",
"ec2:CopySnapshot",
@autoize
autoize / docker-compose.yml
Created October 30, 2017 16:11
Docker-Compose file for Ghost
version: "2"
services:
ghost:
image: ghost
volumes:
- ghostdata:/var/lib/ghost/content
environment:
- url=https://example.com
@autoize
autoize / optimizeNextCloud.sh
Created September 18, 2017 04:35
NextCloud Optimization Script
#!/bin/bash
# NextCloud Optimization Script
# with PHP Opcache and Redis Memcache
# Important: Do not run until the setup wizard in your browser is complete (has initialized the config.php file).
# Author: Autoize (autoize.com)
upload_max_filesize=4G # Largest filesize users may upload through the web interface
post_max_size=4G # Same as above
memory_limit=512M # Amount of memory NextCloud may consume
@autoize
autoize / installNextCloud-ssl.sh
Last active February 4, 2022 17:42
NextCloud Install Script for Ubuntu 16.04, with automatic SSL by Let's Encrypt
#!/bin/bash
# NextCloud Installation Script for Ubuntu 16.04
# with SSL certificate provided by Let's Encrypt (letsencrypt.org)
# Author: Autoize (autoize.com)
nextcloud_url='https://example.com' # Full URL of NextCloud instance
letsencrypt_domains='-d example.com -d www.example.com' # Hostname(s) to obtain SSL certificate for, following -d flag
letsencrypt_email='[email protected]' # Admin contact email for Let's Encrypt
nextcloud_version='12.0.3' # Desired NextCloud version
@autoize
autoize / installNextCloud.sh
Last active September 20, 2017 16:47
NextCloud Install Script for Ubuntu 16.04
#!/bin/bash
# NextCloud Installation Script for Ubuntu 16.04
# Author: Autoize (autoize.com)
nextcloud_url='http://example.com' # Full URL of NextCloud instance
nextcloud_version='12.0.3' # Desired NextCloud version
db_root_password='supersecret' # MySQL database root password
db_user_password='secret' # MySQL database user password
datapath='/cloudData' # Path for user data to be stored
@autoize
autoize / backupToB2.sh
Created September 8, 2017 17:20
NextCloud Backup to BackBlaze B2
#!/bin/sh
# NextCloud to BackBlaze B2 Backup Script
# Author: Autoize (autoize.com)
# This script creates an incremental backup of your NextCloud instance at BackBlaze's off-site location.
# BackBlaze B2 is an object storage service that is much less expensive than using Amazon S3 for the same purpose, with similar versioning and lifecycle management features.
# Uploads are free, and storage costs only $0.005/GB/month compared to S3's $0.022/GB/month.
# Requirements
@autoize
autoize / backupToS3.sh
Created September 8, 2017 17:19
NextCloud Backup to Amazon S3
#!/bin/sh
# NextCloud to Amazon S3 Backup Script
# Author: Autoize (autoize.com)
# This script creates an incremental backup of your NextCloud instance to Amazon S3.
# Amazon S3 is a highly redundant block storage service with versioning and lifecycle management features.
# Requirements
# - Amazon AWS Account and IAM User with AmazonS3FullAccess privilege