tpm.msc
template: | |
- sensor: | |
- name: pending_updates | |
unique_id: pending_updates | |
state: | | |
{{ | |
expand(states.update) | |
| selectattr('state', 'eq', 'on') | |
| list | |
| count |
import { ESLintUtils, TSESTree } from '@typescript-eslint/utils'; | |
import * as tsutils from 'tsutils'; | |
import * as ts from 'typescript'; | |
export const rule = ESLintUtils.RuleCreator.withoutDocs({ | |
meta: { | |
docs: { | |
description: 'ban date comparison using ==, ===, !=, !==', | |
recommended: 'warn', | |
}, |
pragma solidity >=0.8.0 <0.9.0; | |
// SPDX-License-Identifier: MIT | |
/// [MIT License] | |
/// @title Base64 | |
/// @notice Provides a function for encoding some bytes in base64 | |
/// @author Brecht Devos <[email protected]> | |
library Base64 { | |
bytes internal constant TABLE = | |
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
function CopyButton({ value }) { | |
let [copied, setCopied] = React.useState(); | |
let hydrated = usePageIsHydrated(); | |
React.useEffect(() => { | |
let id = setTimeout(() => setCopied(false), 2000); | |
return () => clearTimeout(id); | |
}, [copied]); | |
return ( | |
<button |
#! /usr/bin/env node | |
const execSync = require('child_process').execSync; | |
const changeCase = require('change-case'); | |
/* | |
Automates creation of Eurostar PRs. | |
You need to install https://hub.github.com/ for this to work. | |
Auto adds jira link if one is found in branch name. | |
PR name is sourced from branch name. | |
Opens PR in browser for further editing of title / description |
⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,