Skip to content

Instantly share code, notes, and snippets.

View marlonassuncao's full-sized avatar

Marlon Assunção marlonassuncao

View GitHub Profile
@marlonassuncao
marlonassuncao / my_config.sh
Last active December 11, 2015 17:37
My development settings on mac.
# Intall Homebrew
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Alias to open files by SublimeText
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
# Instalar Git, PHP 5.6, Composer, Mcrypt
brew install git
brew tap homebrew/dupes
@marlonassuncao
marlonassuncao / .zshrc
Last active December 13, 2015 11:11
My .zshrc config.
# Path to your oh-my-zsh installation.
export ZSH=/Users/marlonassuncao/.oh-my-zsh
ZSH_THEME="gianu"
plugins=(git)
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
source $ZSH/oh-my-zsh.sh
@marlonassuncao
marlonassuncao / Preferences.sublime-settings
Last active February 24, 2016 13:27
Subilme settings.
{
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"font_size": 11,
"ignored_packages":
[
"Vintage"
],
"theme": "Material-Theme-Darker.sublime-theme"
}
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 / update_wordpress.sql
Last active September 19, 2019 20:40
Update tables for wordpress.
UPDATE wp_options SET option_value = replace(option_value, '', '') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, '', '');
UPDATE wp_posts SET post_content = replace(post_content, '', '');
UPDATE wp_postmeta SET meta_value = replace(meta_value, '', '');
UPDATE wp_revslider_sliders SET params = REPLACE(params, 'https:\\/\\/vps02.nawe.com.br\\/tests\\/preall\\/', 'https:\\/\\/www.preall.com.br\\/');
UPDATE wp_revslider_slides SET layers = REPLACE(layers, 'https:\\/\\/vps02.nawe.com.br\\/tests\\/preall\\/', 'https:\\/\\/www.preall.com.br\\/');
@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,