Skip to content

Instantly share code, notes, and snippets.

@biplobice
Created October 21, 2019 06:43
Show Gist options
  • Save biplobice/a31053aa6ad9a1e74ab80ac7349b0677 to your computer and use it in GitHub Desktop.
Save biplobice/a31053aa6ad9a1e74ab80ac7349b0677 to your computer and use it in GitHub Desktop.

Customizing System Preferences

Trackpad Options

  • Go To System Preferences > Trackpad.
  • Enable all options across all tabs.
  • Back & go to System Preferences > Accessibility > Mouse & Trackpad > Trackpad Options.
  • Enable dragging with three finger drag.

Date & Time Options

  • Go To System Preferences > Date & Time > Clock.
  • Uncheck Use a 24-hour clock.
  • Check Show date.
  • Check Announce the time On the hour.

Sound Options

  • Go To System Preferences > Sound.
  • Check Show volume in menu bar.

Bluetooth Options

  • Go To System Preferences > Bluetooth.
  • Check Show Bluetooth in menu bar.

User Options

  • Go To System Preferences > User & Groups.
  • Disable Guest User Login.

Security & Privacy Options

  • Go To System Preferences > Security & Privacy.
  • Change Require password value to immediately.
  • Turn on Filevault. I already on it during Mac setup.
  • Turn on Firewall.

Dock Options

  • Go To System Preferences > Dock.
  • Check all checkboxes except Magnification.

Finder Options

  • Go To Finder Preferences > Sidebar.
  • Check home directory.
  • On Advanced tab select Search The Current Folder for When Performing a Search.
  • Finder > View > Show Tab Bar, Show Status Bar, Show Path Bar.
  • Finder > View > Show View Options > Calculate All Size > Use as Defaults.

Terminal Preferences

  • Go To Terminal Preferences.
  • On startup, open new window with Pro.
  • New windows open with Same Profile.

Install Applications From AppStore

Install 3rd Party Applications

Copy All Backup Files

  • ~/.bash_profile
  • ~/.gitignore_global
  • ~/.gitconfig
  • ~/.ssh

Dev Environment Setup

Git Config

Install Composer

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mkdir -p /usr/local/bin
sudo mv composer.phar /usr/local/bin/composer

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Valet

brew install php
brew install [email protected]
brew link [email protected] --force
composer global  require laravel/valet
valet install
cd ~/Sites
valet park

MySQL Configuration

Biplobs-MacBook-Pro:Sites biplob$ brew services restart [email protected]

==>  Successfully started `[email protected]` (label: [email protected])

Biplobs-MacBook-Pro:Sites biplob$ mysql_secure_installation

  

Securing the MySQL server deployment.

  

Connecting to MySQL using a blank password.

  

VALIDATE PASSWORD PLUGIN can be used to test passwords

and improve security. It checks the strength of password

and allows the users to set only those passwords which are

secure enough. Would you like to setup VALIDATE PASSWORD plugin?

  

Press y|Y for Yes, any other key for No: n

Please set the password for root here.

  

New password:

  

Re-enter new password:

By default, a MySQL installation has an anonymous user,

allowing anyone to log into MySQL without having to have

a user account created for them. This is intended only for

testing, and to make the installation go a bit smoother.

You should remove them before moving into a production

environment.

  

Remove anonymous users? (Press y|Y for Yes, any other key for No) : y

Success.

  

  

Normally, root should only be allowed to connect from

'localhost'. This ensures that someone cannot guess at

the root password from the network.

  

Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y

Success.

  

By default, MySQL comes with a database named 'test' that

anyone can access. This is also intended only for testing,

and should be removed before moving into a production

environment.

  

  

Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y

- Dropping test database...

Success.

  

- Removing privileges on test database...

Success.

  

Reloading the privilege tables will ensure that all changes

made so far will take effect immediately.

  

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y

Success.

  

All done!

Install & Configure xDebug with PHPStorm

  • Open PHPStorm Preferences (Cmd +,)
  • Search with xDebug
  • Follow the steps.
pecl install xdebug

Install Blackfire

Download & Setup my Config Repo

Bash Profile

Install PHP-CS-Fixer

composer global require friendsofphp/php-cs-fixer

Configure PHPStorm to use PHP-CS-Fixer

Install Deployer

Install PHPUnit

wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar 
sudo mv phpunit.phar /usr/local/bin/phpunit
phpunit --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment