Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Looking for improvements!

Matthias Günter matzeeable

💭
Looking for improvements!
View GitHub Profile
@matzeeable
matzeeable / role.ps1
Last active Feb 22, 2019
matthias-web.com: 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)
Enable-OrganizationCustomization
# Replace user@example.com with the Exchange user you have used in "Exchange Configuration"
New-ManagementRoleAssignment -User:user@example.com -name:impersonationAssignmentName -Role:ApplicationImpersonation
# Office365-only: Close the session
Remove-PSSession $Session
@matzeeable
matzeeable / apache.sh
Last active Feb 14, 2019
matthias-web.com Blog: How to use AWS Cloud9 IDE with DigitalOcean Droplet
View apache.sh
# Edit environment variables
sudo nano /etc/apache2/envvars
# Restart apache
sudo service apache2 restart
@matzeeable
matzeeable / is_rest.php
Last active Jun 14, 2020
Checks if the current request is a WP REST API request.
View is_rest.php
<?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
matzeeable / functions.php
Created Sep 18, 2018
Real Media Library VC Image Carousel Shortcode
View functions.php
<?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 https://codecanyon.net/comments/20396684
@matzeeable
matzeeable / README.md
Last active Dec 5, 2019
AWS Gettings started with Cloud9 + EC2 + MySQL + phpMyAdmin
View README.md

Prerequisits

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

You can’t perform that action at this time.