This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Re-install Privacy Column | |
| */ | |
| function yzc_reinstall_privacy_column() { | |
| if ( ! get_option( 'yz_install_bp_activity_privacy2' ) ) { | |
| global $bp, $wpdb; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| nginx: | |
| labels: | |
| - "traefik.enable=true" | |
| - "traefik.http.routers.provys-transformer.rule=Host(`www.example.com`)" | |
| - "traefik.http.routers.provys-transformer.tls=true" | |
| networks: | |
| - traefik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Get The User Activities Number. | |
| */ | |
| function yzc_get_user_activities_number( $number, $user_id, $type ) { | |
| if ( $type == 'posts' ) { | |
| global $bp,$wpdb; | |
| $activity_count = $wpdb->get_var( "SELECT COUNT(*) FROM {$bp->activity->table_name} | |
| WHERE component IN ( 'activity', 'groups' ) AND type != 'activity_comment' AND user_id = '$user_id' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
| /* Change size for Yoast SEO OpenGraph image for all content | |
| * Credit: Yoast Development team | |
| * Last Tested: May 19 2020 using Yoast SEO 14.1 on WordPress 5.4.1 | |
| * Accepts WordPress reserved image size names: 'thumb', 'thumbnail', 'medium', 'large', 'post-thumbnail' | |
| * Accepts custom image size names: https://developer.wordpress.org/reference/functions/add_image_size/ | |
| */ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Created by @ibnux January 2015 | |
| Use with your own risk | |
| This script for converting all videos on your NAS | |
| i use this script for converting video on my Synology NAS | |
| This will recursively convert all your video | |
| put this in your home folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class LinkedList { | |
| private $data; | |
| private $next; | |
| private function __construct() {} | |
| public static function fromArray($array) { | |
| $head = new LinkedList(); |