This file contains hidden or 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 | |
defined( 'ABSPATH' ) or exit; | |
/* Plugin Name: Disable image crop */ | |
$custom_sizes = array('thumbnail'=>'150x150', 'medium'=>'210x300'); | |
add_filter( 'image_resize_dimensions', 'apikiDisableCrop', 10, 6 ); | |
function apikiDisableCrop( $enable, $orig_w, $orig_h, $dest_w, $dest_h, $crop ) | |
{ | |
return false; |
This file contains hidden or 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCmrFHKrFQo19HV2Kt4hzsLMKgj/RePoJHyvxW3Iw4JRWF9FtOmEdMwXyqLn7jhOhapb6VQ420VtZnBmRK2bAbXUkhDTXXk94chLH/7DM3NGfZCeUubpxZwX4kxweTV/QmdUrSYNHHeNu5jszpbL2xe8SsptDkiY5lTIhvP3re683aJaE+MVkao8ysN2o0t8c/DYMTGEqA7+Bet4mmwDNXsUUOZGInhr154EA72mfxTbyWXZaUwsR/2sGVUAtrE97DRyOJkgiw3A6h0J4ewv8WdJ+uERQU22aHiChW61EnFrpExBnSs8HiYDB08UuiujbFZnsmWkGfjDK2udGdA/Kr81A1DNmA9JTgWh7F5Lndo4pWYA86zwiCjedSKNF79Ukzya+qDyhdi+Y6LoVAfW6Pu3/70UJcPyxCLb+/RVQgUJw4Jyz/X0j4/Y4yAVqep0mHRqDsJGWQt2sfwqkMssTLlJRRB4tQBKOjyen5kBUjae7zUKzq8Y8L40z4nG73YZqmc2LJiwPGvv22qnzhlItJGCuyqc1CrJk9FF48D/4bYh1Sf3LI5HfV79gnQjd0iYBitC/eR6nG48RJxbErlc3/0KV/4BS+yXrVMHJMRJ9LDuh0aggwZMTuTivtEUFu5DDiC1FHw/fMPSpG1oywObaLqI8s2SEV1u8LBdj2DRe1DTQ== [email protected] |
This file contains hidden or 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
#!/bin/bash | |
#how to use: | |
##crontab -e @reboot /some/path/imasters-startup.sh | |
#dont forget | |
## chmod +x /some/path/imasters-startup.sh | |
DIR=/var/www/html/imasters.com.br/public | |
cd $DIR | |
yarn prod-start |
This file contains hidden or 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
#!/bin/bash | |
#services names | |
NGINX_SERVICE='nginx' | |
PHP5_SERVICE='php5-fpm' | |
PHP7_SERVICE='php-fpm7.0' | |
MYSQL_SERVICE='mysql' | |
#test if they are ready | |
NGINX_BIN=$(command -v $NGINX_SERVICE) |
This file contains hidden or 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDo4FWHuiTksdKU6GF5nuOHC0VxhKGTaiyUPY4GTJigpJcGP+wcUeg52h6oX/8MHCaBp240GhBzLVbY2T+flb+Ojx9dhwRqak0WRCHPF2pYVjzwTB0KBvOxDKammTWlW53W9LI9gO+6op6XbGXqiyHq/zQTX9snFtBOONj3LjARg5xnO0TPbCAwcx+c2QlCRXr87F2jkkD1+D/X8bAsepUISGCWxiPqYRisunwMeGPJ7IVdrJbbtdN/MIzrJX1gAivSgWwHLpKC4FUW9MYpDbhzwaPaWo+G+avQElEJnh0OgD5Li5iTIcA06Bz0uGfIknDrhkHY7Bt0fW88lEScCdlZ [email protected] |
This file contains hidden or 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
# criar um apache local | |
docker run -d --name apache --hostname localhost -p 80:80 -v /var/www/html:/var/www/html php:5.6.20-apache | |
docker exec apache docker-php-ext-install mysql mysqli | |
docker exec apache a2enmod rewrite | |
#cria usuario mysql | |
CREATE USER 'docker'@'%'; | |
GRANT ALL PRIVILEGES ON *.* TO 'docker'@'%' WITH GRANT OPTION; |
This file contains hidden or 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
# | |
# This is an example VCL file for Varnish. | |
# | |
# It does not do anything by default, delegating control to the | |
# builtin VCL. The builtin VCL is called when there is no explicit | |
# return statement. | |
# | |
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/ | |
# and http://varnish-cache.org/trac/wiki/VCLExamples for more examples. |
This file contains hidden or 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
### Creating a User for Replication(Each slave connects to the master using a MySQL user name and password, so there must be a user account on the master that the slave can use to connect) | |
CREATE USER 'replication_server1'@'172.17.0.%' IDENTIFIED BY '084T92x0x0B998M'; | |
GRANT REPLICATION SLAVE ON *.* TO 'replication_server1'@'172.17.0.%'; | |
## Server-id on master my.conf | |
[mysqld] | |
server-id = 10 | |
log-bin = mysql-bin |
This file contains hidden or 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
{ | |
"domain":"http:\/\/www.correiodeuberlandia.apikihost.com", | |
"product":1, | |
"message":{ | |
"post":{ | |
"post_date":"2016-04-27 20:32:53", | |
"post_excerpt":"", | |
"post_type":"errors_log", | |
"post_status":"publish", | |
"post_title":"[E_ALL] - All errors and warnings (includes E_STRICT as of PHP 5.4.0)", |
This file contains hidden or 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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: php-5.6.0-fpm | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts php-5.6.0-fpm | |
# Description: starts the PHP FastCGI Process Manager daemon | |
### END INIT INFO |