Snippets para auxiliar a criação de queries com JSONB no Postgres
SELECT dados->'imagens'
FROM produto p
CROSS JOIN jsonb_array_elements(p.dados->'imagens') WITH ORDINALITY i
import boto3 | |
def lambda_handler(event, context): | |
region = 'us-east-2' | |
volumeId = 'vol-ALTERE-AQUI' | |
# Conectar-se à região | |
ec2 = boto3.client('ec2', region_name=region) | |
# Pegar o ID do volume |
2019/11/08 11:30:26 [INFO] Terraform version: 0.12.13 | |
2019/11/08 11:30:26 [INFO] Go runtime version: go1.12.9 | |
2019/11/08 11:30:26 [INFO] CLI args: []string{"/usr/sbin/terraform", "apply"} | |
2019/11/08 11:30:26 [DEBUG] Attempting to open CLI config file: /home/gus/.terraformrc | |
2019/11/08 11:30:26 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/11/08 11:30:26 [INFO] CLI command args: []string{"apply"} | |
2019/11/08 11:30:27 [DEBUG] checking for provider in "." | |
2019/11/08 11:30:27 [DEBUG] checking for provider in "/usr/sbin" | |
2019/11/08 11:30:27 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64" | |
2019/11/08 11:30:27 [DEBUG] found provider "terraform-provider-azurerm_v1.36.1_x4" |
Forked from claytonrcarter to add a g
flag to the regex, to allow support for GitLab grouped projects.
A super simple bash script to check the status of a GitLab CI pipeline.
$ git push
...
$ git pipeline-status
#!/usr/bin/env bash | |
pid="" | |
function monitor() { | |
inotifywait --exclude '\.swp|.*~$' --event close_write --recursive . | | |
while read -r directory events filename; do | |
if ! echo "$directory" | grep -Eq '^\.\/\.git' && | |
! git check-ignore --non-matching --verbose "${directory}/${filename}" >/dev/null 2>&1; then | |
if [ "${pid}" ]; then |
https://www.youtube.com/watch?v=XGSuK8kyGag