SELECT * EXCEPT (last)
FROM (
SELECT application_status_id,
customer_id,
application_submission_id,
LAST_VALUE(cpf_check_status IGNORE NULLS) OVER (
PARTITION BY application_submission_id
This file contains hidden or 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
-- Demonstrates using `LAST_VALUE` to replace null values with the last defined value | |
-- Simulated data is for 2 applications following the happy path | |
-- It might make sense to separate the `overall_status` value from the `SCREENING_CHECK` status record | |
WITH application_status AS ( | |
SELECT | |
'abc' as application_status_id, | |
'xyz' as customer_id, | |
'123' as application_submission_id, | |
null as cpf_check_status, | |
null as selfie_check_status, |
This file contains hidden or 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
#! sh | |
kubectl config set-context gke_development-dbe50c4d_europe-west2_development | |
kubectl port-forward deploy/cdd-grpc 9000:9000 --namespace=development |
This file contains hidden or 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
Show hidden characters
{ | |
// Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
This file contains hidden or 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
# Print the date every second, forever | |
while true; do date; sleep 1; done |
Create new filters and create new labels.
from:([email protected]) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed 1 commit." "pushed 2 commits." "pushed 3 commits."}
label: gh-pull-request
- Grab certificate content
- Enter content on the site: https://certlogik.com/decoder/
- This will convert it to PEM encoding, save as cert.pem
- Get the issuer and root certificates in PEM format and save as issuer.pem and root.pem
- Create a chain.pem file, adding the issuer.pem content followed by the root.pem content
- Verify the issuer.pem signature:
This file contains hidden or 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
#! /bin/bash | |
echo "Cleaning Docker images" | |
# Stops all docker containers | |
docker stop $(docker ps -aq) | |
# Remove all containers | |
docker rm $(docker ps -aq) | |
# Remove all images | |
docker rmi $(docker images -q) --force |
NewerOlder