Skip to content

Instantly share code, notes, and snippets.

View redb's full-sized avatar
💭
I may be slow to respond.

Jean-Bruno redb

💭
I may be slow to respond.
View GitHub Profile
@TomFrearson
TomFrearson / divi-custom-blog-shortcode.php
Last active June 15, 2017 06:41
Shortcode to customise the size of the images for Divi's pagebuilder blog module
<?php
function remove_et_pb_blog() {
remove_shortcode( 'et_pb_blog', 'et_pb_blog' );
add_shortcode( 'et_pb_blog', 'wpt_pb_blog' );
}
add_action( 'init', 'remove_et_pb_blog' );
function wpt_pb_blog( $atts ) {
extract( shortcode_atts( array(
@alexsegura
alexsegura / gist:9650651
Last active July 9, 2022 10:41
Prestashop 1.6 folder permissions
chmod a+w -R config/
chmod a+w -R cache/
chmod a+w -R log/
chmod a+w -R img/
chmod a+w -R mails/
chmod a+w -R modules/
chmod a+w -R themes/default-bootstrap/lang/
chmod a+w -R themes/default-bootstrap/pdf/lang/
chmod a+w -R themes/default-bootstrap/cache/
chmod a+w -R translations/
@yorch
yorch / ispconfig-migration.sh
Created March 7, 2014 12:39
ISPConfig 3 script to move installation from one server to another
#!/bin/bash
# Migrate ISPConfig 3 installation from one server to another
# This script should run on the final/destination ISPConfig 3 server
# You must first install the same ISPConfig on the destination server
# and make sure to create all the users from the previous installation
# (ISPConfig creates users for each client and web page)
# Tested on ISPConfig version 3.0.5.3
# Created by Jorge Barnaby (@jbarnaby) - March 2014
# EDIT YOUR PREVIOUS ISPCONFIG SERVER HERE