I'm writing this up from memory, so errors may appear.
This has been updated to use SHA256 certificates.
- Go to http://www.startssl.com/
- Click on 'Control Panel'
| <?php | |
| /* | |
| Theme functions.php | |
| */ | |
| function change_site_names() { | |
| global $wp_admin_bar; | |
| if ( function_exists('is_multisite') && is_multisite() ) { | |
| foreach ( (array) $wp_admin_bar->user->blogs as $blog ) { |
I'm writing this up from memory, so errors may appear.
This has been updated to use SHA256 certificates.
| Ansible playbook to setup HTTPS using Let's encrypt on nginx. | |
| The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS. | |
| The server pass A rating on [SSL Labs](https://www.ssllabs.com/). | |
| To use: | |
| 1. Install [Ansible](https://www.ansible.com/) | |
| 2. Setup an Ubuntu 16.04 server accessible over ssh | |
| 3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain | |
| 4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder) |
| <?php | |
| /** | |
| * Goat Latin is a made-up language based off of English, sort of like Pig Latin. | |
| * | |
| * The rules of Goat Latin are as follows: | |
| * 1. If a word begins with a consonant (i.e. not a vowel), remove the first letter and append it to the end, then add 'ma'. | |
| * For example, the word 'goat' becomes 'oatgma'. | |
| * | |
| * 2. If a word begins with a vowel, append 'ma' to the end of the word. |
Automatically deletes old emails that match the specified label.
LABELS_TO_DELETE: the label that should be have old messages deleted| package main | |
| import "fmt" | |
| func main() { | |
| ch := make(chan bool) | |
| go func() { | |
| for { | |
| } | |
| }() |
| #!/bin/bash | |
| # Based on the script by Josh Schreuder (https://gist.github.com/JoshSchreuder/882666) | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # |