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
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; |
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
| FROM centos:8 | |
| LABEL MAINTAINER Tchello Mello <[email protected]> | |
| # install main packages: | |
| RUN yum -y update && \ | |
| yum -y install wget python38 && \ | |
| wget https://bintray.com/ookla/rhel/rpm -O /etc/yum.repos.d/bintray-ookla-rhel.repo && \ | |
| yum -y install speedtest && \ | |
| yum clean all |
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
| # Copyright (c) 2015 Ansible, Inc. | |
| # All Rights Reserved. | |
| # Python | |
| import datetime | |
| import time | |
| import json | |
| import logging | |
| import re | |
| import copy |
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
| # This file is generated by Ansible. Changes will be lost. | |
| # Update templates under ansible/templates/ | |
| --- | |
| apiVersion: apiextensions.k8s.io/v1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: awxs.awx.ansible.com | |
| spec: | |
| group: awx.ansible.com | |
| names: |
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
| https://github.com/kubernetes/minikube/issues/7923#issuecomment-701921931 | |
| # check the logs to identify which device is missing | |
| [mdemello@x1 awx]$ minikube logs | grep 'stat failed on /d' | |
| Jul 15 19:39:58 minikube kubelet[18138]: W0715 19:39:58.825712 18138 fs.go:588] stat failed on /dev/mapper/luks-de09a217-bae0-45b0-8210-40b6023ee125 with error: no such file or directory | |
| ! unable to fetch logs for: describe nodes | |
| Jul 15 19:39:59 minikube kubelet[18479]: W0715 19:39:59.631737 18479 fs.go:214] stat failed on /dev/mapper/luks-de09a217-bae0-45b0-8210-40b6023ee125 with error: no such file or directory | |
| # in another terminal, create a symlink |
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
| # ansible-playbook -i deploy-vm.yml -e vm_name=test | |
| --- | |
| - name: Deploy VM on Libvirt | |
| hosts: localhost | |
| vars: | |
| qemu_connection: "qemu:///system" | |
| vm_domain: tatu.lab | |
| vm_memory: 1024 | |
| vm_network: default |
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
| # Build stage | |
| FROM golang:1.23-alpine AS builder | |
| # Install build dependencies | |
| RUN apk add --no-cache gcc musl-dev sqlite-dev | |
| WORKDIR /app | |
| # Copy source code | |
| COPY main.go ./ |
OlderNewer