Now at https://github.com/rattrayalex/fastify-openapi-typescript-demo
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
# usage: | |
# | |
# export BUCKET='my-bucket-name' | |
# b2-archive-files myfile mydirectory myotherfile | |
# | |
# You can find large files in a directory with "du -ahx . | sort -h". | |
archive() ( | |
set -eo pipefail |
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
version: 2.1 | |
setup: true | |
orbs: | |
continuation: circleci/continuation@0.1.2 | |
jobs: | |
determine-workflow: | |
machine: true |
Say you want to search for a certain string, but exclude files which match another pattern.
PATTERN_TO_EXCLUDE="bad.+words"
DIR_TO_SEARCH=foo/bar
PATTERN_TO_FIND="good.+good"
rg $PATTERN_TO_FIND --stats $(rg $PATTERN_TO_EXCLUDE --files-without-match $DIR_TO_SEARCH)
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
source "$HOME/.env" | |
jira-branch() ( | |
set -eo pipefail | |
local jira_instance jq_template query username api_key ticket_id jira_title commit_title | |
username="$JIRA_USERNAME" | |
api_key="$JIRA_API_KEY" | |
jira_instance="$JIRA_INSTANCE" |
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
[contenteditable][placeholder="Type '/' for commands"]:empty:after, | |
[contenteditable][placeholder="List"]:empty:after { | |
content: ' ' !important; | |
} | |
.notion-focusable[role="button"] > svg.plus { | |
display: none !important; | |
} | |
.notion-focusable[role="button"]:hover > svg.plus { | |
display: block !important; |
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
puts RUBY_VERSION | |
def foo(params={}, x: nil, **kwargs) | |
puts({params: params, x: x, kwargs: kwargs}) | |
end | |
foo(a: 1) | |
foo(a: 1, x: 2) | |
foo(x: 1) | |
foo({a: 1}) |
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
jira-branch() ( | |
set -eo pipefail | |
local jira_instance jq_template query username api_key ticket_id jira_title commit_title | |
username="$JIRA_USERNAME" | |
api_key="$JIRA_API_KEY" | |
jira_instance="$JIRA_INSTANCE" | |
query="project=MAIN AND statusCategory!=Done AND assignee=currentUser()" |
This is some text. It has inline code
and links.
- hello world.
- lists work
- Nested numbered.
- Go deep.
- Numbers in numbers.
- Hooray.
NB: This section may be outdated, I can't remember what the current status is since I wrote this originally a long time ago.
Personally, I feel pretty good about shipping this largely as-is (modulo any bugs or code review issues) and I don't consider the below issues to be blockers – if anything, they might be best addressed in follow-on PR's. But, I raise them here since I anticipate they may garner discussion and I'm not so sure that my current answer is one that I'll like later on.
As written, the PR uses "case-style" when the consequent is visually short (under ten characters long), eg: