Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
127.0.0.1 a.stat.xiaomi.com | |
127.0.0.1 abtest.mistat.intl.xiaomi.com | |
127.0.0.1 abtest.mistat.xiaomi.com | |
127.0.0.1 ad.mi.com | |
127.0.0.1 ad.xiaomi.com | |
127.0.0.1 ad1.xiaomi.com | |
127.0.0.1 adv.sec.miui.com | |
127.0.0.1 api.account.xiaomi.com | |
127.0.0.1 api.ad.xiaomi.com | |
127.0.0.1 api.admob.xiaomi.com |
#!/bin/bash | |
# Workaround docker wrapper for git-bash/Msys/Cygwin quirks | |
# Copy this to ~/bin/docker or /usr/local/bin/docker | |
set -euo pipefail | |
export MSYS_NO_PATHCONV=1 | |
export MSYS2_ARG_CONV_EXCL='*' | |
os="$(uname -o)" |
I've recently ran into a pitfall of [React.memo()
][memo] that seems generally overlooked; skimming over the top results in Google just finds it mentioned in passing in a [React issue][regit], but not in the [FAQ] or API [overview][react-api], and not in the articles that set out to explain React.memo()
(at least the ones I looked at). The issue is specifically that nesting children defeats memoization, unless the children are just plain text. To give a simplified code example:
const Memoized = React.memo(({ children }) => (<div>{children}</div>));
// Won't ever re-render
<Memoized>bar</Memoized>
// Will re-render every time; the memoization does nothing
/** | |
* This Gist is part of a medium article - read here: | |
* https://jamiecurnow.medium.com/using-firestore-with-typescript-65bd2a602945 | |
*/ | |
// import firstore (obviously) | |
import { firestore } from "firebase-admin" | |
// Import or define your types | |
// import { YourType } from '~/@types' |