I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
<?php | |
#!/usr/bin/env php | |
foreach(glob("*.css") as $css){ | |
echo "wp_enqueue_style( 'wptheme-{$css}', get_template_directory_uri().'/css/{$css}',null,'1.0');\n"; | |
} |
<?php | |
#!/usr/bin/env php | |
foreach(glob("*.js") as $js){ | |
echo "wp_enqueue_script( 'wptheme-{$js}', get_template_directory_uri().'/js/{$js}', array('jquery'),'1.0',true);\n"; | |
} |
<?php | |
/** | |
* Font Awesome Icons Array (4.3.0) | |
* @author Monzurul Haque | |
* @author_uri https://github.com/farukham | |
**/ | |
$icons_arr = array( | |
__("None", "fifothemes") => "none", | |
__("Adjust", "fifothemes") => "fa-adjust", |
<?php | |
/** | |
* Generate Font Awesome Icons Array | |
* @author Monzurul Haque | |
* @author_uri https://github.com/farukham | |
**/ | |
//FontAwesome (4.3.0) Icons array list | |
$icons = array( |
// | |
// SmoothScroll for websites v1.2.1 | |
// Licensed under the terms of the MIT license. | |
// | |
// You may use it in your theme if you credit me. | |
// It is also free to use on any individual website. | |
// | |
// Exception: | |
// The only restriction would be not to publish any | |
// extension for browsers or native application |
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
server { | |
listen 80; | |
server_name www.example.com; | |
root /var/www/vhosts/example.com/public/; | |
location / | |
{ | |
index index.php index.html index.htm; | |
} |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
HTTP redirection, or URL redirection, is a technique of pointing one domain or address to another. There are many uses for redirection, and a few different kinds of redirection to consider.
As you create content and administrate servers, you will often find the need to redirect traffic from one place to another. This guide will discuss the different use-cases for these techniques, and how to accomplish them in Apache and Nginx.
#!/usr/bin/env php | |
<?php | |
//usage: php envato-screenshots-downloader.php /path/to/save/screenshots http://url/to/screenshots/page | |
set_time_limit(0); | |
$dir = $argv[1]; | |
$source = $argv[2]; | |
print_r($argv); | |
mkdir ($dir); | |
$src = file_get_contents($source); | |
$pattern = '/src="(https:\/\/0.s3[a-zA-Z0-9_\-\.\/%]+)"/i'; |