This file contains 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
# 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 |
This file contains 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
# Open config by user. | |
sudo nano /var/cpanel/userdata/USERNAME/DOMAINNAME.COM | |
# Change root directory. | |
documentroot: /home/USERNAME/public_html/NEW_PATH | |
# Rebuild and restart server. | |
/scripts/rebuildhttpdconf | |
service httpd restart |
This file contains 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
sudo chown -R user:user /folder/* |
This file contains 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
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\\/'); |
This file contains 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
cd `brew --prefix` | |
rm -rf Cellar | |
brew prune | |
rm `git ls-files` | |
rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions | |
rm -rf .git | |
rm -rf ~/Library/Caches/Homebrew |
This file contains 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
clearfix() | |
*zoom 1 | |
&:before | |
&:after | |
content '' | |
display table | |
&:after | |
clear both |
This file contains 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
zip -r myfiles.zip myfiles |
This file contains 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
# 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 |
This file contains 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
Show hidden characters
{ | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme", | |
"font_size": 11, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Material-Theme-Darker.sublime-theme" | |
} |
This file contains 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 | |
require 'vendor/PHPMailer/PHPMailerAutoload.php'; | |
$mail = new PHPMailer; | |
// $mail->SMTPDebug = 3; // Enable verbose debug output | |
$mail->isSMTP(); // Set mailer to use SMTP | |
$mail->Host = 'smtp1.example.com;smtp2.example.com'; // Specify main and backup SMTP servers | |
$mail->SMTPAuth = true; // Enable SMTP authentication |
OlderNewer