| Title | Description
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
source: https://savedlog.com/uncategorized/letsencrypt-ssl-certificate-namecheap-hosting/
The “Positive SSL” certificate I bought along with my domain is invalid with any of my subdomains and cannot be used with wildcards. One annoying thing is that namecheap doesn’t offer auto installation of free let’s encrypt certificates, even though, they are saying “Namecheap is dedicated to data security and privacy for all internet users. We believe the movement to encrypt nearly all web traffic is a positive direction. As more sites embrace HTTPS and use of security products, providers of free SSL are beginning to come online.”
Let me show you what it needs to be done in order to “encrypt nearly all web traffic”.
First, not required but it’s helpful to enable ssh access, it is not enabled by default on the base hosting plans, just go an start a live chat and request ssh access.
| #!/usr/bin/env perl -T | |
| use strict; | |
| use warnings; | |
| use Getopt::Std; | |
| my $VERSION = "0.0.5"; | |
| $Getopt::Std::STANDARD_HELP_VERSION = 1; | |
| #=============================================================================== |
If you hate git submodule, then you may want to give git subtree a try.
When you want to use a subtree, you add the subtree to an existing repository where the subtree is a reference to another repository url and branch/tag. This add command adds all the code and files into the main repository locally; it's not just a reference to a remote repo.
When you stage and commit files for the main repo, it will add all of the remote files in the same operation. The subtree checkout will pull all the files in one pass, so there is no need to try and connect to another repo to get the portion of subtree files, because they were already included in the main repo.
Let's say you already have a git repository with at least one commit. You can add another repository into this respository like this:
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "net/url" |
The Hugo static site generator sadly still uses the obsolete and badly standardized RSS format.
Here's how to set it up to generate an Atom feed instead. Pretty much all feed readers which understand RSS also understand Atom, except iTunes, and Atom is a better format.
- Define an appropriate media type and corresponding output format in
config.toml:
| * CloudFare IP list: https://www.cloudflare.com/ips/ | |
| * Google's IP addresses: | |
| nslookup -q=TXT _netblocks.google.com 8.8.8.8 | |
| nslookup -q=TXT _netblocks2.google.com 8.8.8.8 | |
| nslookup -q=TXT _netblocks3.google.com 8.8.8.8 | |
| Each of the above line will display a CIDR block or Google’s IP addresses. | |
| * Amazon IP addresses: https://ip-ranges.amazonaws.com/ip-ranges.json |

