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
# cat /etc/docker/daemon.json | |
{ | |
"default-address-pools": | |
[ | |
{"base":"172.17.0.0/16","size":24} | |
] | |
} |
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 | |
namespace App\Exceptions; | |
use Exception; | |
use Illuminate\Validation\ValidationException; | |
use Illuminate\Auth\Access\AuthorizationException; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler; | |
use Symfony\Component\HttpKernel\Exception\HttpException; |
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
Add this to your http {} of the nginx.conf file normally located at /etc/nginx/nginx.conf: | |
proxy_buffer_size 128k; | |
proxy_buffers 4 256k; | |
proxy_busy_buffers_size 256k; | |
Then add this to your php location block, this will be located in your vhost file look for the block that begins with location ~ .php$ { | |
fastcgi_buffer_size 128k; | |
fastcgi_buffers 4 256k; | |
fastcgi_busy_buffers_size 256k; |
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
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
# Redirect Trailing Slashes If Not A Folder... | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)/$ /$1 [L,R=301] |
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
---- Copied from https://www.cyberciti.biz/faq/how-do-i-start-oracle-service-in-unix/ ---- | |
How To Startup Oracle Database on a Unix/Linux | |
Use the su - username command to login as oracle user. Open the Terminal or login using ssh and type the following command to login | |
$ su - oracle | |
Start Oracle server in UNIX/Linux | |
Now, use the lsnrctl command to start service (usually located at /home/oracle/oracle/product/10.2.0/db_1/bin directory): | |
$ lsnrctl 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
ANDROID_HOME C:\Program Files\Android\android-sdk | |
ANT_HOME D:\Apps\apache-ant-1.9.4 | |
JAVA_HOME C:\Program Files\Java\jdk1.7.0_71 | |
PATH C:\Users\Dody\AppData\Roaming\npm; | |
%ANT_HOME%\bin; | |
%ANDROID_HOME%/tools; | |
%ANDROID_HOME%/platform-tools |
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 | |
$now = date('j F Y'); | |
echo 'now = ' . $now . '<br />'; | |
$mod = strtotime($now . " + 10 weekdays"); | |
echo 'next 10 weekdays = ' . date('j F Y', $mod); | |
?> |
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
rpm -Uvh http://kartolo.sby.datautama.net.id/EPEL/6/i386/epel-release-6-8.noarch.rpm | |
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
yum update | |
yum install php-fpm php-mysql php-pecl-apc php-mcrypt --enablerepo=remi,epel | |
vi /etc/php.ini | |
cgi.fix_pathinfo=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
rpm -Uvh http://kartolo.sby.datautama.net.id/EPEL/6/i386/epel-release-6-8.noarch.rpm | |
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
yum update | |
yum install mysql mysql-server | |
service mysqld start | |
/usr/bin/mysql_secure_installation |
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
rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-3.0.el6.rpm | |
yum update | |
yum install varnish | |
chkconfig --levels 235 varnish on | |
service varnish restart |
NewerOlder