mix
Edit .htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]rewriteCond %{HTTPS} !on
rewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]Redirect all traffic to https
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule ^(.*)$ https://example.com/$1 [R,L]PHP + AJAX + JQUERY
PHP
<?php
$parse_uri
Create users site in Apache2
See instructions here: Taken from
How reduce pdf file
convert -units PixelsPerInch myPic.pdf -density 300 fileout.pdf
Save time with grep
Search string in files:
grep -rnw -e "the_string_you_want_find"How to extend limit of import file in phpmyadmin
You need to three changes in php.ini file.
nano /etc/php5/apache2/php.ini
memorylimit
postmaxsize
uploadmaxfilesize
e.g: memorylimit 128M
postmaxsize 12M
uploadmaxfilesize 10M
Don't forget to restart apache service.
Add private key permanently with ssh-add
A solution would be to force the key files to be kept permanently, by adding them in your ~/.ssh/config file:
IdentityFile ~/.ssh/gitHubKey
IdentityFile ~/.ssh/id_rsa_buhlServer
If you want all users on the computer to use the key put these lines into /etc/ssh/ssh_config and the key in a folder accessible to all.
Additionally if you want to set the key specific to one host, you can do the following in your ~/.ssh/config :
WP function.php file in Child-theme
<?php
function my_theme_enqueue_styles() {
$parent_style = '[PARENT-THEME-MACHINE-NAME]';
