Skip to content

Instantly share code, notes, and snippets.

View marlonassuncao's full-sized avatar

Marlon Assunção marlonassuncao

View GitHub Profile
@marlonassuncao
marlonassuncao / gist:fc36d2f6a9f2839fb906
Last active August 29, 2015 14:25
“use strict”, qual sua utilidade? | Exemplo: 1
function minhaIdade() {
idade = 25;
// ...
}
minhaIdade();
@marlonassuncao
marlonassuncao / gist:e77cc3d602658b04b751
Last active August 28, 2015 17:13
“use strict”, qual sua utilidade? | Exemplo: 2
function minhaIdade() {
"use strict";
idade = 25;
// ...
}
minhaIdade();
@marlonassuncao
marlonassuncao / gist:9b701e718c4c5ec8541d
Last active August 28, 2015 17:14
“use strict”, qual sua utilidade? | Exemplo: 3
function minhaIdade() {
var idade = 25;
// ...
}
minhaIdade();
@marlonassuncao
marlonassuncao / utf8.sql
Last active December 11, 2015 12:59
Alterar charset mysql
ALTER TABLE $table CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci
sudo chown -R www-data:www-data /var/www/folder
sudo chown -R hofbraubh:nogroup /var/www/
@marlonassuncao
marlonassuncao / .htaccess
Created September 13, 2019 19:01 — 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.
########################################################################
# 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
########################################################################
@marlonassuncao
marlonassuncao / AdobeAMDFix.md
Created September 28, 2021 23:44 — forked from naveenkrdy/AdobeAMDFix.md
To fix adobe products crashes on AMD hackintosh

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 / wp-security-checklist.md
Last active November 26, 2021 11:00 — forked from Wiz-Amit/wp-security-checklist.md
WordPress Security Checklist
@marlonassuncao
marlonassuncao / functions.php
Last active December 2, 2022 15:09
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,