Skip to content

Instantly share code, notes, and snippets.

View marlonassuncao's full-sized avatar

Marlon Moreira marlonassuncao

View GitHub Profile
@marlonassuncao
marlonassuncao / permission_user.sh
Last active August 29, 2015 14:13
Give permission to a cpanel ftp user.
sudo chown -R user:user /folder/*
@marlonassuncao
marlonassuncao / change_root.sh
Last active August 29, 2015 14:10
Change domain root folder on cPanel.
# 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
@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