This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # URLs to redirect | |
| /articles | |
| /{anything}/feed | |
| /canonical-announcements | |
| /case-studies | |
| /category/{category} | |
| /category/{category}/year/{year} | |
| /group/{slug} | |
| /group/{slug}?cat=1172 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| grep -v -A1 '^[[:blank:]]*$' $1 | grep -v "^--$" > $1.tmp | |
| mv $1.tmp $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| import re | |
| import dateutil.parser | |
| import glob | |
| import frontmatter | |
| date_re = re.compile(r'(?<=\n[*]).*(?=[*]\n)') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://robinwinslow.uk/2013/01/18/where-do-i-sign-up-for-the-open-access-movement/ (follow-up) | |
| https://robinwinslow.uk/2012/12/13/oss-projects-i-d-love-to-get-involved-with/ (revisit) | |
| https://robinwinslow.uk/2012/12/12/note-to-self-technical-aspirations/ (revisit) | |
| https://robinwinslow.uk/2012/12/07/continuous-improvement-and-tdd-bdd/ (follow-up) | |
| https://robinwinslow.uk/2012/12/07/a-blogs-existential-quest/ (mention) | |
| https://robinwinslow.uk/2012/09/28/i-am-a-published-author-of-a-journal-article/ (rename) | |
| https://robinwinslow.uk/2012/08/06/finding-a-free-version-of-gill-sans/ (delete?) | |
| https://robinwinslow.uk/2012/07/17/installing-vagrant-on-centos-the-more-reliable-way/ (delete?) | |
| https://robinwinslow.uk/2012/04/10/sending-emails-individually-to-many-people-in-php/ (collate?) | |
| https://robinwinslow.uk/2012/03/13/website-front-end-performance-tips/ (follow-up) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import frontmatter | |
| import glob | |
| import urllib | |
| import requests | |
| import mimetypes | |
| import subprocess | |
| import json | |
| import re | |
| for filename in glob.glob('*.md'): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Clear out a model, for Juju 2 | |
| # == | |
| # Destroy all machines and remove applications | |
| # -- | |
| clean_model() { | |
| model_name=${1} | |
| juju status --model ${model_name} --format json | jq '.machines' | jq -r 'keys[]' | xargs -n 1 juju remove-machine --force # Force destroy all machines | |
| juju status --model ${model_name} --format json | jq '.applications' | jq -r 'keys[]' | xargs -n 1 juju remove-application # Remove all applications | |
| watch -c -n 10 juju status --model ${model_name} --color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # [os] OS & editor files | |
| Desktop.ini | |
| Thumbs.db | |
| ._* | |
| *.DS_Store | |
| *~ | |
| \#*\# | |
| __* | |
| .AppleDouble | |
| .LSOverride |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python | |
| # Core packages | |
| import os | |
| # Third party packages | |
| import yaml | |
| # Local packages | |
| from lib.retriever import get_documentation_set |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package_has_script () { | |
| script_name="${1}" | |
| # Check if package.json contains a script of the given name | |
| docker run \ | |
| --volume `pwd`:`pwd` --workdir `pwd` `# Use the current directory` \ | |
| --entrypoint node `# Run plain old node` \ | |
| canonicalwebteam/yarn:v0.2.0 `# Run a short inline node script to check the package.json` \ | |
| --eval " | |
| process.exit( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Documentation</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| /* docs-vanilla-theme */ |