Skip to content

Instantly share code, notes, and snippets.

View cocolee's full-sized avatar

Rıfat Caner Anıltürk cocolee

View GitHub Profile
@kagg-design
kagg-design / class-multilingual.php
Created October 31, 2019 15:04
Fix performance issue in Jupiter X with WPML and Polylang. Replace code of \CustomizerMultilingual::get_custom_customizer_option
<?php
protected function get_custom_customizer_option() {
static $theme_slug = null;
$current_language = self::get_language();
if ( ! $theme_slug ) {
$theme_slug = get_option( 'template' );
}
$option_prefix = str_replace( '-', '_', $theme_slug );
$option_name = $option_prefix . self::get_option_key() . $current_language;
@tomhicks
tomhicks / plink-plonk.js
Last active May 15, 2025 13:25
Listen to your web pages
@webmaster-z1lab
webmaster-z1lab / AWS-ubuntu-2004-nodeserver.md
Last active October 17, 2022 18:14
Setup a Ubuntu 20.04 Nodejs webserver (NuxtJS ready) with Nginx (PageSpeed build), Brotli compression, LetsEncrypt SSL, Yarn (NPM) and PM2.
@Akryum
Akryum / gist:6bab33ad28b4b786cc5fe85c20b2585a
Created September 29, 2022 10:21
RegExp to find dynamic Vue component imports
=\s\(\) => import\([\s\n]*(\/\*.*?\*\/[\s\n]*)?'.*?\.vue'[\s\n]*\)