Skip to content

Instantly share code, notes, and snippets.

Avatar

Marlon Assunção marlonassuncao

View GitHub Profile
@marlonassuncao
marlonassuncao / ActivityPublishNotification.php
Last active Dec 2, 2022
ActivityPublishNotification.php
View ActivityPublishNotification.php
<?php
/**
* Register New custom automatic push notification.
*/
namespace BuddyBossApp\Custom;
use BuddyBossApp\Jobs;
use BuddyBossApp\Notification\IntegrationAbstract;
/**
View functions.php
<?php
require_once 'ActivityPublishNotification.php';
use BuddyBossApp\Jobs;
use BuddyBossApp\Notification\IntegrationAbstract;
add_action('bp_activity_after_save', 'where_activity_from', 10, 3);
function where_activity_from( $activity ) {
// print_r($activity->content);
$users = get_users( array(
'fields' => 'ids',
'number' => 200,
@marlonassuncao
marlonassuncao / AdobeAMDFix.md
Created Sep 28, 2021 — forked from naveenkrdy/AdobeAMDFix.md
To fix adobe products crashes on AMD hackintosh
View AdobeAMDFix.md

Adobe Crash Fix XLNC

Instructions

  1. Install needed adobe apps from adobe creative cloud.

  2. Open Terminal.

  3. Copy-paste the below command to your terminal and run it (enter password when asked).

@marlonassuncao
marlonassuncao / .htaccess
Created Sep 13, 2019 — forked from seoagentur-hamburg/.htaccess
UPDATE 2019/07: Perfect .htaccess file for highspeed and security. You can use it for every WordPress-Website without problems. Highspeed and Security - testet on hundreds of Websites. If you are using a WordPress Multisite, change the last part of this file.
View .htaccess
########################################################################
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2019
# ----------------------------------------------------------------------
# @Author: Andreas Hecht
# @Author URI: https://andreas-hecht.com
# License: GNU General Public License v2 or later
# License URI: http://www.gnu.org/licenses/gpl-2.0.html
########################################################################
View gist:e27eee6ea0af016739552ba894d185d2
sudo chown -R www-data:www-data /var/www/folder
@marlonassuncao
marlonassuncao / utf8.sql
Last active Dec 11, 2015
Alterar charset mysql
View utf8.sql
ALTER TABLE $table CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci
@marlonassuncao
marlonassuncao / gist:9b701e718c4c5ec8541d
Last active Aug 28, 2015
“use strict”, qual sua utilidade? | Exemplo: 3
View gist:9b701e718c4c5ec8541d
function minhaIdade() {
var idade = 25;
// ...
}
minhaIdade();
@marlonassuncao
marlonassuncao / gist:e77cc3d602658b04b751
Last active Aug 28, 2015
“use strict”, qual sua utilidade? | Exemplo: 2
View gist:e77cc3d602658b04b751
function minhaIdade() {
"use strict";
idade = 25;
// ...
}
minhaIdade();