See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| #!/usr/bin/env bash | |
| # | |
| # Performs a simple semver comparison of the two arguments. | |
| # | |
| # Original: https://github.com/mritd/shell_scripts/blob/master/version.sh | |
| # Snippet: https://jonlabelle.com/snippets/view/shell/compare-semver-versions-in-bash | |
| # Gist: https://gist.github.com/jonlabelle/6691d740f404b9736116c22195a8d706 | |
| # |
| /* | |
| * Async.gs | |
| * | |
| * Manages asyncronous execution via time-based triggers. | |
| * | |
| * Note that execution normally takes 30-60s due to scheduling of the trigger. | |
| * | |
| * @see https://developers.google.com/apps-script/reference/script/clock-trigger-builder.html | |
| */ |
| {"lastUpload":"2021-11-15T07:51:35.825Z","extensionVersion":"v3.4.3"} |
| from decorator import decorator | |
| def _check_auth(args, pred): | |
| _, _, context, _ = args | |
| if not pred(context): | |
| raise Exception("Unauthorized") | |
| @decorator | |
| def is_user(fn, *args, **kwargs): |
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
Dataclips has a reliable way to construct the URL of a clip's CSV version:
https://dataclips.heroku.com/<hash>-<description>.csv
Thankfully the description is irrelevant, so we can just get the hash from the web interface
(looks like aujqawhjdmlbbwrqxutcpzzqyika) and add -1 at the end. Every time we change the
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
| package main | |
| import ( | |
| "net/http" | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| "os" | |
| ) |