An interactive alias using fzf that shows most recent branches and gives you the ability to scroll and checkout the one you want (using Enter) or Esc to exit:
- First install
fzf
brew install fzf- Then add the alias to
.gitconfig
An interactive alias using fzf that shows most recent branches and gives you the ability to scroll and checkout the one you want (using Enter) or Esc to exit:
fzfbrew install fzf.gitconfig| import { | |
| Injectable, | |
| NestInterceptor, | |
| ExecutionContext, | |
| CallHandler, | |
| } from '@nestjs/common'; | |
| import { Observable } from 'rxjs'; | |
| import { tap } from 'rxjs/operators'; | |
| // eslint-disable-next-line @typescript-eslint/no-var-requires |
Migrating from one role to another can be very confusing in Postgres. This is a personal guide with a collection of queries to help aid in this effort.
old_role -- Refers to a postgres role that currently owns objects.new_role -- Refers to a postgres role that will soon own previous objects.postgres -- Refers to the admin user role.role_database -- Refers to a database that the old_role currently owns but will soon be owned by new_roleSee all the tables a given role in a db owns:
This query runs against Lambda function logs to get the following information:
Install Dependencies
brew install jq
brew install hubLog into hub (from any repo just do hub pr list)
repo access)If you have a job or step that has many outputs that you would like to set as envs (in the shell), do this:
name:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest| 1. Install oh-my-zsh | |
| sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
| 2. Clone necessary plugins. | |
| git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions | |
| git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search | |
| git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
| 3. Add plugins to ~/.zshrc as | |
| plugins = ( [plugins...] zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting) |
Cloudwatch does not provide metrics on how many workers you are running in a MWAA Environment.
Fortunately we can get this information from Cloudwatch Insights using the MWAA_ENVIRONMENT_NAME-Worker log group.
Every log stream has the ip address of the worker in the @logStream field
MWAA_ENVIRONMENT_NAME-Workerlog groupfields @timestampSee the docs for reference
Replace the values BUCKET_NAME, AWS_ACCOUNT_NUMBER, AWS_REGION, WEB_ACL_NAME accordingly
Replace 'projection.date.range' = '2023/01/01/00/00,NOW', with the date your WAF logging begins (find in S3)
| export interface AlbAccessLogFormat { | |
| /** | |
| * The type of request or connection. The possible values are as follows (ignore any other values): | |
| * | |
| * * http — HTTP | |
| * * https — HTTP over TLS | |
| * * h2 — HTTP/2 over TLS | |
| * * grpcs— gRPC over TLS | |
| * * ws — WebSockets | |
| * * wss — WebSockets over TLS |