Skip to content

Instantly share code, notes, and snippets.

View bilhackmac's full-sized avatar

Jérôme Billiras bilhackmac

  • CTO at OpenStudio
  • Clermont-Ferrand, France
View GitHub Profile
@bilhackmac
bilhackmac / acme-dns01-cloudflare
Created August 3, 2021 08:29
ACME DNS01 challenge script for HTTPD mod_md MDChallengeDns01 directive — CloudFlare
#!/usr/bin/env sh
# Env vars CLOUDFLARE_API_TOKEN is required in any case
# Script require cURL an jq
CLOUDFLARE_API_URL=${CLOUDFLARE_API_URL:-"https://api.cloudflare.com/client/v4/"}
request() {
curl -sX${1} \
@bilhackmac
bilhackmac / acme-dns01-ovh-tld
Last active February 23, 2023 11:06
ACME DNS01 challenge script for HTTPD mod_md MDChallengeDns01 directive — OVH
#!/usr/bin/env sh
# Env vars OVH_API_APP_KEY is required in any case
# Env vars OVH_API_APP_SECRET and OVH_API_CONSUMER_KEY are required for setup and teardown
OVH_API_URL=${OVH_API_URL:-"https://api.ovh.com/1.0"}
ovhTS() {
curl -s "${OVH_API_URL}/auth/time"
Bil$ HOMEBREW_MAKE_JOBS=1 brew install -v node 2>&1
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/node-0.10.26.mavericks.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/node-0.10.26.mavericks.bottle.tar.gz
==> Verifying node-0.10.26.mavericks.bottle.tar.gz checksum
==> Pouring node-0.10.26.mavericks.bottle.tar.gz
tar xf /Library/Caches/Homebrew/node-0.10.26.mavericks.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Finishing up