Skip to content

Instantly share code, notes, and snippets.

Looking for improvements!

Matthias Günter matzeeable

Looking for improvements!
Block or report user

Report or block matzeeable

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
matzeeable /
Last active Dec 5, 2019
AWS Gettings started with Cloud9 + EC2 + MySQL + phpMyAdmin


Please create a Cloud9 instance in your favorite region. Also create a RDS MySQL instance.

Installing PHP 7.1

Remove current Apache & PHP

sudo yum remove httpd* php*

Install additional commonly used PHP packages for PHP 7.1

matzeeable / is_rest.php
Last active Sep 9, 2019
Checks if the current request is a WP REST API request.
View is_rest.php
if ( !function_exists( 'is_rest' ) ) {
* Checks if the current request is a WP REST API request.
* Case #1: After WP_REST_Request initialisation
* Case #2: Support "plain" permalink settings
* Case #3: It can happen that WP_Rewrite is not yet initialized,
* so do this (wp-settings.php)
matzeeable / role.ps1
Last active Feb 22, 2019 Jira SITO > Documentation for Administrators
View role.ps1
# Enable custom organization so the Role can be added via CLI (this is usually enabled in your company)
# Replace with the Exchange user you have used in "Exchange Configuration"
New-ManagementRoleAssignment -name:impersonationAssignmentName -Role:ApplicationImpersonation
# Office365-only: Close the session
Remove-PSSession $Session
matzeeable /
Last active Feb 14, 2019 Blog: How to use AWS Cloud9 IDE with DigitalOcean Droplet
# Edit environment variables
sudo nano /etc/apache2/envvars
# Restart apache
sudo service apache2 restart
matzeeable / functions.php
Created Sep 18, 2018
Real Media Library VC Image Carousel Shortcode
View functions.php
add_shortcode('folder_vc_image_carousel', 'folder_content');
* Add a [folder_vc_image_carousel] shortcode which uses the Visual
* Composer image carousel. It allows you to read images from a RML
* folder dynamically.
* @author arget888
* @see
You can’t perform that action at this time.