Skip to content

Instantly share code, notes, and snippets.

View I-Otsuki's full-sized avatar

Izumi Otsuki I-Otsuki

View GitHub Profile
@I-Otsuki
I-Otsuki / Dns01-Cloudflare.ps1
Last active October 29, 2019 02:07
DNS01 script for Cloundflare and [PKISharp/win-acme](https://github.com/PKISharp/win-acme)
param(
[Parameter(Mandatory = $false, Position = 0)]
[ValidateSet("create", "delete")]
[string]
$Operation = "create",
[Parameter(Mandatory = $true, Position = 1)]
[String]
$RecordName,
[Parameter(Mandatory = $true, Position = 2)]
[String]
@setlocal
@pushd "%~dp0"
@set ExtractedFile=%Temp%\%~n0.ps1
@findstr /B /V @ "%~f0" > "%ExtractedFile%"
@powershell -NoLogo -NonInteractive -File "%ExtractedFile%" -ExecutionPolicy Bypass
@timeout 1 > nul 2>&1
@del "%ExtractedFile%"
@popd
@endlocal
@exit /B 0
@I-Otsuki
I-Otsuki / keybase.md
Last active July 21, 2017 17:20
keybase.md

Keybase proof

I hereby claim:

  • I am i-otsuki on github.
  • I am i_otsuki (https://keybase.io/i_otsuki) on keybase.
  • I have a public key ASAu7hM2DNUDzjKfaNZ9AtOVx8M3ktkNoIzgptfxuh_h9go

To claim this, I am signing this object: