git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
#!/usr/bin/env python | |
import os | |
import subprocess | |
DOCUMENTATION_SOURCE_DIR = 'documentation/source/' | |
SOURCE_EXTENSION = '.md' | |
OUTPUT_EXTENSION = '.rst' | |
for _, __, filenames in os.walk(DOCUMENTATION_SOURCE_DIR): | |
for filename in filenames: |
server { | |
listen *:443 ssl; | |
listen *:80; | |
ssl_certificate /etc/self-signed-ssl/cert.crt; | |
ssl_certificate_key /etc/self-signed-ssl/cert.key; | |
server_name FQDN; | |
access_log /var/log/nginx/ajenti-web-panel.access.log; | |
error_log /var/log/nginx/ajenti-web-panel.error.log; |
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.
On a mac you can use homebrew by running the command brew install pandoc
.
<?php | |
/** | |
* Get subscribers count via the MailChimp API. | |
*/ | |
function mailchimp_get_subscribers_count() { | |
$cache_key = 'mailchimp-subscribers'; | |
$api_key = ''; | |
$username = ''; | |
$dc = ''; | |
$list_id = ''; |
# Only the relevant parts of config.rb are included here | |
require "extensions/pdf" | |
# ... | |
configure :build do | |
activate :pdf do |pdf| | |
pdf.print_template = "/catalogue/print-template.html" | |
end | |
end |
See the end of this message for details on invoking | |
just-in-time (JIT) debugging instead of this dialog box. | |
************** Exception Text ************** | |
System.BadImageFormatException: Could not load file or assembly 'SimpleIO-M, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format. |
Prerequisites : the letsencrypt CLI tool
This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.
You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge
.
Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.
I redirect all HTTP requests on HTTPS, so my nginx config looks like :
server {