mailhog/MailHog - github.com
mailhog/mailhog - hub.docker.com
MailHogを利用してメール送信テスト環境をdockerコンテナ上に作る
わりとスター数の多い開発用メールサーバ Docker コンテナ。DockerHub で公開されているので Docker 環境でメールの SMTP 送信テストにサクっと利用できる。
# docker-compose.yml
services:
#!/bin/bash | |
# Source: https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html | |
[[ -n "${AWS_ACCESS_KEY_ID}" ]] || { echo "AWS_ACCESS_KEY_ID required" >&2; exit 1; } | |
[[ -n "${AWS_SECRET_ACCESS_KEY}" ]] || { echo "AWS_SECRET_ACCESS_KEY required" >&2; exit 1; } | |
readonly parameterName="SlawekTestParam" | |
readonly method="POST" |
.token.language-regex { | |
color: #4d4d4d; | |
} | |
.token.quantifier { | |
color: #58f; | |
} | |
.token.escape, | |
.token.special-escape { |
$credentials = Get-StoredCredential -Target sshpassphrase | |
$BSTR = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($credentials.Password) | |
$passphrase = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR) | |
C:\Windows\System32\wsl.exe -u [YOUR_WSL_USERNAME] -d [YOUR_DISTRIBUTION] /home/[YOUR_WSL_USERNAME]/wslu/keychain.sh $passphrase |
import { terser } from "rollup-plugin-terser" | |
import path from "path" | |
import resolve from "rollup-plugin-node-resolve" | |
import babel from "rollup-plugin-babel" | |
import glob from "glob" | |
const scriptPattern = path.resolve(__dirname, "_scripts/**/!(_)*.js") | |
const inputs = glob.sync(scriptPattern).reduce((files, input) => { | |
const parts = input.split("/") |
mailhog/MailHog - github.com
mailhog/mailhog - hub.docker.com
MailHogを利用してメール送信テスト環境をdockerコンテナ上に作る
わりとスター数の多い開発用メールサーバ Docker コンテナ。DockerHub で公開されているので Docker 環境でメールの SMTP 送信テストにサクっと利用できる。
# docker-compose.yml
services:
Follow this guide to install WSL:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
#requires -version 5.0 | |
Function ConvertTo-Markdown { | |
<# | |
.Synopsis | |
Convert pipeline output to a markdown document. | |
.Description | |
This command is designed to accept pipelined output and create a markdown document. The pipeline output will formatted as a text block. You can optionally define a title, content to appear before the output and content to appear after the output. | |
The command does not create a text file. You need to pipe results from this command to a cmdlet like Out-File or Set-Content. See examples. | |
.Parameter Title |
<ul style="font-size: 10pt"> | |
<li>Last reviewed and updated: 2017-11-05</li> | |
<li>Comments: <a href="https://www.chess.com/news/view/published-data-api#comments">https://www.chess.com/news/view/published-data-api#comments</a></li> | |
<li>Revisions: <a href="https://gist.github.com/BiviaBen/87bd7f830b6f1a8ba6b537f4e0c87e95/revisions">https://gist.github.com/BiviaBen/87bd7f830b6f1a8ba6b537f4e0c87e95/revisions</a></li> | |
</ul> | |
<hr> | |
<p>The PubAPI is a read-only REST API that responds with JSON-LD data. Our goal is to re-package all currently public data from the website and make it available via the PubAPI. "Public Data" is information available to people who are not logged in, such as player data, game data, and club/tournament information. This excludes private information that is restricted to the logged in user, such as game chat and conditional moves.</p> | |
<p>This is read-only data. You cannot send game-moves or other commands to Chess.com from this system. If you wish to send commands, you will be int |
function svg_to_png(svg, callback) { | |
var svgData = (new XMLSerializer()).serializeToString(svg); | |
var canvas = document.createElement("canvas"); | |
var svgSize = svg.getBoundingClientRect(); | |
canvas.width = svgSize.width; | |
canvas.height = svgSize.height; | |
var ctx = canvas.getContext("2d"); | |
var img = document.createElement("img"); |