sumnima sumnima sumnima sumnima sumnima sumnima sumnima
Categories
blog browser google chrome

Slow Google chrome?

1. Click on Start –> In search box, type cmd –> Then “CMD” will be

displayed in the search –> Now right-click on “CMD” —> Select “Run as administrator”.

2. Now enter this command

netsh winsock reset –> Press Enter.

Restart your PC.

Categories
blog cloudflare digitalocean Nginx

whitelisting cloudflare in nginx digitalocean

Create /etc/nginx/cloudflare-allow.conf

# https://www.cloudflare.com/ips
# IPv4
allow 199.27.128.0/21;
allow 173.245.48.0/20;
allow 103.21.244.0/22;
allow 103.22.200.0/22;
allow 103.31.4.0/22;
allow 141.101.64.0/18;
allow 108.162.192.0/18;
allow 190.93.240.0/20;
allow 188.114.96.0/20;
allow 197.234.240.0/22;
allow 198.41.128.0/17;
allow 162.158.0.0/15;

# IPv6
allow 2400:cb00::/32;
allow 2606:4700::/32;
allow 2803:f800::/32;
allow 2405:b500::/32;
allow 2405:8100::/32;

Then in your /etc/nginx/sites-available/site.com add:

server {
  listen 80; ## listen for ipv4; this line is default and implied
  listen [::]:80 default ipv6only=on; ## listen for ipv6

  include /etc/nginx/cloudflare-allow.conf;
  deny all;

  server_name direct.site.com www.site.com site.com;

  #...the rest of your config here...
}
Categories
blog OS X

OSX Terminal SSH port

ssh -p portnumber mysite.com
Categories
blog Linux Nginx ubuntu

Ubuntu php5-fpm unknown instance

sudo pkill php5-fpm; sudo service php5-fpm start
Categories
blog mysql

MySQL Access denied for user ‘root’@’localhost’

sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt install mysql-server
Categories
blog Nginx

Increase file upload size limit in PHP-Nginx

Changes in php.ini

To change max file upload size to 100MB

Edit…

vim /etc/php5/fpm/php.ini

Set…

upload_max_filesize = 100M
post_max_size = 100M

Change in Nginx config

Add following line to http{..} block in nginx config: /etc/nginx/nginx.conf

http {
	#...
        client_max_body_size 100m;
	#...
}

Reload PHP-FPM & Nginx

service php5-fpm reload
service nginx reload

Categories
blog mysql

ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

sudo dpkg-reconfigure mysql-server-5.5

change the root password.

Categories
bigcommerce bigmadness blog offer Theme

Bigmadness.com Xmas Fever 50% off Code: big50off

https://twitter.com/officialstupid/status/676987514045997056

 

Categories
blog ecommerce magento magento 2 mysql

magento 2 installation on digitalocean #bookmark

last part.

go to bin

php magento sampledata:deploy
php magento setup:di:compile
php magento setup:upgrade 
 

Categories
blog OS X

magento 2 SUCKS!!!!!

Categories
.htaccess blog

htaccess update

############################################
## workaround for HTTP authorization
## in CGI environment

RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

############################################
## TRACE and TRACK HTTP methods disabled to prevent XSS attacks

RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
RewriteRule .* – [L,R=405]

######################################
## Add custom headers
<IfModule mod_headers.c>
Header set X-Content-Type-Options “nosniff”
Header set X-XSS-Protection “1; mode=block”
</IfModule>