- Test on thing
- If that things break,only one test fails
- Repeatable
- Don't rely on run order
- Don't require external resources
This file contains 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 re | |
# Dictionary mapping similar characters include unicode to their normalized form | |
CHAR_MAPPINGS = { | |
# Map variations of 'a' to 'a' | |
'a': r"[a4@àáâäãåαаǎăąāạⱥₐᵃᴀꙺꬱ\u0251\u1D41A\u1D44E\u1D482\u1D4B6\u1D4EA\u1D51E\u1D552\u1D586\u1D5BA\u1D5EE\u1D622\u1D656\u1D68A]", | |
# Map variations of 'b' to 'b' | |
'b': r"[b6ƀɓḃḅḇƃȸ\u1D41\u1D45\u1D79\u1D7D\u1D422\u1D456\u1D48A\u1D4BE\u1D4F2\u1D526\u1D55A\u1D58E\u1D5C2]", | |
This file contains 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
/** | |
* | |
* @param {Object} [constraints={ video: true }] constraints - MediaStreamConstraints | |
* @returns {Promise<MediaStream>} | |
*/ | |
export function getDisplayMedia(constraints = defaultDisplayMediaConstraints) { | |
return global.navigator.mediaDevices | |
.getDisplayMedia(constraints) | |
.then(stream => { | |
// support for Chrome's content hint stuff which prefers detail over fluent video. |
This file contains 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
[Unit] | |
Description=coTURN STUN/TURN Server | |
Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1) | |
After=network.target | |
[Service] | |
AmbientCapabilities=CAP_NET_BIND_SERVICE | |
User=turnserver | |
Group=turnserver | |
Type=forking |
This file contains 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
image: docker:latest | |
variables: | |
REPOSITORY_URL: xxx.dkr.ecr.us-west-2.amazonaws.com/xxx | |
REGION: us-west-2 | |
TASK_DEFINTION_NAME: xxx | |
CLUSTER_NAME: xxx | |
SERVICE_NAME: xxx | |
services: |
This file contains 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
Development Phase: | |
Step 1: Create Certificate .pem from Certificate .p12 | |
Command: openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12 | |
Step 2: Create Key .pem from Key .p12 | |
Command : openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12 | |
Step 3: Optional (If you want to remove pass phrase asked in second step) | |
Command : openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem |
This file contains 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
# This is a basic configuration that can easily be adapted to suit a standard | |
# installation. For more advanced options, see opendkim.conf(5) and/or | |
# /usr/share/doc/opendkim/examples/opendkim.conf.sample. | |
# Log to syslog | |
Syslog yes | |
# Required to use local socket with MTAs that access the socket as a non- | |
# privileged user (e.g. Postfix) | |
UMask 002 |
NewerOlder