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.
import os | |
import sys | |
from os.path import dirname, realpath | |
# directorio del proyecto | |
SITE_ROOT = dirname(realpath(__file__)) | |
# entorno | |
sys.path = [SITE_ROOT, 'C:\Python27\Lib\site-packages'] + sys.path |
server { | |
listen 80; | |
# server_name base.pe; | |
server_tokens off; | |
root /home/devstaff/webapps/; | |
location /blog { | |
index index.php index.html index.htm; |
<comment-box> | |
<h1>{ opts.title }</h1> | |
<comment-list comments={ comments } /> | |
<comment-form /> | |
this.comments = [] | |
add(comment) { | |
this.comments.push(comment) |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
# non www to www and https | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\. | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] |
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); |
$("#{{ inline_admin_formset.formset.prefix }}-group").grp_inline({ | |
prefix: "{{ inline_admin_formset.formset.prefix }}", | |
//////////Función agregada para precargar y ejecutar el complemento tinyMCE | |
onBeforeAdded:function(form) { | |
if (tinyMCE != undefined) { | |
django.jQuery('.grp-empty-form').find('textarea').each(function() { | |
var tid = django.jQuery(this).attr("id"); | |
tinyMCE.execCommand("mceRemoveControl",false,tid); | |
}); |
Nginx no-www to www | |
------------------- | |
server { | |
#listen 80 is default | |
server_name www.example.com; | |
return 301 $scheme://example.com$request_uri; | |
} | |
server { | |
#listen 80 is default |
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.
"""A basic database set-up for Travis CI. | |
The set-up uses the 'TRAVIS' (== True) environment variable on Travis | |
to detect the session, and changes the default database accordingly. | |
Be mindful of where you place this code, as you may accidentally | |
assign the default database to another configuration later in your code. | |
""" | |
import os |
ps -ef | grep myProcessName | grep -v grep | awk '{print $2}' | xargs kill -9 |