python --version
python3 --version
| location /blog/ { | |
| #auth_basic "Restricted"; | |
| #auth_basic_user_file /etc/nginx/.htpasswd; | |
| proxy_pass https://test-blog.bitstarz.com/; | |
| proxy_set_header X-Forwarded-Host $host; | |
| proxy_set_header X-Forwarded-Proto $scheme; | |
| } |
These are the steps I went through to set up an SSL cert. Purchase the cert
Prior to purchasing a cert, you need to generate a private key, and a CSR file (Certificate Signing Request). You’ll be asked for the content of the CSR file when ordering the certificate:
openssl req -new -newkey rsa:2048 -nodes -keyout example_com.key -out example_com.csr
| // Lista | |
| AC, Acre | |
| AL, Alagoas | |
| AP, Amapá | |
| AM, Amazonas | |
| BA, Bahia | |
| CE, Ceará | |
| DF, Distrito Federal | |
| ES, Espirito Santo |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config to:
| public protocol ResponseJSONObjectSerializable { | |
| init?(json: SwiftyJSON.JSON) | |
| } |
| # copied from https://www.e-rave.nl/create-a-self-signed-ssl-key-for-postfix | |
| openssl genrsa -des3 -out mail.domain.tld.key 2048 | |
| chmod 600 mail.domain.tld.key | |
| openssl req -new -key mail.domain.tld.key -out mail.domain.tld.csr | |
| openssl x509 -req -days 365 -in mail.domain.tld.csr -signkey mail.domain.tld.key -out mail.domain.tld.crt | |
| openssl rsa -in mail.domain.tld.key -out mail.domain.tld.key.nopass | |
| mv mail.domain.tld.key.nopass mail.domain.tld.key | |
| openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650 | |
| chmod 600 mail.domain.tld.key |
NOTE: This Gist concerns the old Linode KVM Beta, NOT the current Manager. Please see linode/docs#501 (comment) for more up-to-date instructions.
You will need:
On the KVM source, run the following to create a VM:
| ;(function($){ | |
| /* | |
| Script Name: WP Auto Installer | |
| Author: Mohan Dere | |
| Version: 1.0 | |
| Description : This script install new wordpress setup, create database with tables with content & run search replace database for new urls. | |
| Last Update: 13 Mar 15 | |
| */ |