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
To list open ports use the netstat command: | |
netstat -tulpn | grep LISTEN | |
change config: | |
/etc/mysql/mysql.conf.d/mysqld.cnf | |
bind-address = 0.0.0.0 | |
login mysql and run: | |
Grant All Privileges ON *.* to 'user'@'%' Identified By 'pass'; | |
FLUSH PRIVILEGES; |
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
run cmd: ssh-copy-id -p port root@host | |
Host a | |
HostName x.x.x.x | |
User root | |
Port 22 | |
Host b | |
HostName x.x.x.x | |
User root | |
Port 22 |
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
server { | |
server_name magento2.dev; | |
set $MAGE_ROOT /Users/yourusername/www/magento2dev; | |
set $MAGE_MODE developer; | |
# Default magento Nginx config starts below | |
root $MAGE_ROOT/pub; | |
index index.php; |
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
<VirtualHost *:80> | |
ServerName xxx.local | |
ServerAlias www.xxx.local | |
AddHandler php7-fcgi .php | |
Action php7-fcgi /php7-fcgi | |
Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi | |
# FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -host 127.0.0.1:9000 -pass-header Authorization | |
FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -socket /var/run/php7.2-fpm.sock -pass-header Authorization |
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
server { | |
server_name xxx.local www.xxx.local; | |
root /var/www/project/public; | |
location / { | |
# try to serve file directly, fallback to index.php | |
try_files $uri /index.php$is_args$args; | |
} | |
location ~ ^/index\.php(/|$) { |
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
server { | |
server_name xxx.local www.xxx.local; | |
root /home/xxx/xxx/domain/web; | |
location / { | |
# try to serve file directly, fallback to app.php | |
try_files $uri /app.php$is_args$args; | |
} | |
location ~ ^/(app_dev|config)\.php(/|$) { |
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
#!/usr/bin/env bash | |
echo "clearing backup folder......................................................................................"; | |
rm -vrf ~/Backup/* | |
echo "ending clearing backup folder................................................................................"; | |
echo "............................................................................................................"; | |
echo "starting dumping............................................................................................"; | |
echo "............................................................................................................"; | |
current_date_time="`date "+%d_%m_%Y_%H_%M_%S"`"; |
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 | |
namespace Eit\Bundle\UserBundle\Form; | |
use Doctrine\ORM\EntityRepository; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
/** |
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
install and configure: | |
https://github.com/sanduhrs/phpstorm-url-handler |
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
zend_extension=/usr/lib/php5/20121212/xdebug.so | |
xdebug.remote_enable=1 | |
xdebug.remote_handler=dbgp | |
xdebug.remote_mode=req | |
xdebug.remote_host=127.0.0.1 | |
xdebug.remote_port=9000 | |
xdebug.max_nesting_level=300 | |
xdebug.idekey=PHPSTORM | |
xdebug.remote_autostart=1 | |
xdebug.profiler_enable=1 |
NewerOlder