Work-in-pogress
Ref: cloudflare/homebrew-cloudflare#21
# Clean up any old version of curl you may have already tried to install
brew remove -f curl
# Download the curl ruby install script provided by cloudflare
Work-in-pogress
Ref: cloudflare/homebrew-cloudflare#21
# Clean up any old version of curl you may have already tried to install
brew remove -f curl
# Download the curl ruby install script provided by cloudflare
| #!/bin/bash | |
| # Check if the correct number of arguments is provided | |
| if [ "$#" -ne 2 ]; then | |
| echo "Usage: $0 <repository> <username>" | |
| echo "Example: $0 octocat/Hello-World johndoe" | |
| exit 1 | |
| fi | |
| # Variables from command-line arguments |
| gh cache list | awk '/[0-9]{5}/{print substr($0,match($0,/[0-9]{5}/),5)}' | xargs -I {} gh cache delete {} |
| // requestInterceptor.js | |
| const hostnameWhitelist = ['api.example.com', 'another.api.com']; | |
| // Original functions | |
| const originalFetch = window.fetch; | |
| const originalXMLHttpRequest = window.XMLHttpRequest; | |
| const originalSendBeacon = navigator.sendBeacon.bind(navigator); | |
| const originalWebSocket = window.WebSocket; |
| import styled from "styled-components"; | |
| const StyledField = styled.div``; | |
| const StyledErrorMessage = styled.span``; | |
| const StyledHintText = styled.span`` | |
| function Field({ hintText, errors, children, ...rest }) { | |
| // Function as Child Component (FaCC - pretty render prop) |
| #!/bin/sh | |
| git filter-branch --env-filter ' | |
| OLD_EMAIL="your-old-email@example.com" | |
| CORRECT_NAME="Your Correct Name" | |
| CORRECT_EMAIL="your-correct-email@example.com" | |
| if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
| then |
| Tips | |
| Generating Initial Changelogs | |
| If you start using the --conventional-commits option after the monorepo has been active for awhile, you can still generate changelogs for previous releases using conventional-changelog-cli and lerna exec: | |
| # Lerna does not actually use conventional-changelog-cli, so you need to install it temporarily | |
| npm i -D conventional-changelog-cli | |
| # Documentation: `npx conventional-changelog --help` | |
| # fixed versioning (default) | |
| # run in root, then leaves |
| transformIgnorePatterns node_module | |
| https://github.com/facebook/jest/issues/6229#issuecomment-403539460 |
| sudo tar -xf some-node-tarball.tar.gz --directory /usr/local --strip-components 1 |