Skip to content

Instantly share code, notes, and snippets.

View Raensul's full-sized avatar

Yarik Raensul Raensul

  • Kharkiv
View GitHub Profile
@Raensul
Raensul / bash_aliases
Created August 3, 2021 11:48 — forked from OsamaShabrez/bash_aliases
Install PHP7.1 + Nginx + MySQL on macOS Sierra
alias nginx.start='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.stop='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.restart='nginx.stop && nginx.start'
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist"
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist"
alias php-fpm.restart='php-fpm.stop && php-fpm.start'
alias mysql.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist"
alias mysql.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist"
alias mysql.restart='mysql.stop && mysql.start'
@Raensul
Raensul / nginx-phpfpm-mysql-on-mac.md
Created August 3, 2021 11:19 — forked from hanhpv/nginx-phpfpm-mysql-on-mac.md
Nginx, PHP-FPM, MySQL on Mac OSX

Xcode

Make sure you have the latest version of XCode installed. Available from the AppStore.

Install the Xcode Command Line Tools:

xcode-select --install

Homebrew

Homebrew is the missing package manager for OSX. Download and install using the following command:

<?php
$arr = array(
3, 4, 5,
[5, 7, 8,
[9, 10, 11, 12,
[13, 14, 15],
15, 17],
18, 19],
20
<?php
error_reporting(E_ALL);
/*start Classic simple builder*/
class Car
{
/* public $color = 'grey';
public $engine = 'TS';
public $transmission = 'MANUAL';