client.index({
index: 'example_index',
type: 'posts',
id: '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
package test | |
import scala.concurrent.duration._ | |
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import io.gatling.jdbc.Predef._ | |
class LoginTest extends Simulation { |
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
version: '3.7' | |
services: | |
# https://hub.docker.com/_/postgres | |
postgres: | |
image: postgres:12-alpine | |
restart: unless-stopped | |
environment: | |
- POSTGRES_USER=mirthdb | |
- POSTGRES_PASSWORD=mirthdb | |
- POSTGRES_DB=mirthdb |
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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: filebeat-config | |
namespace: kube-system | |
labels: | |
k8s-app: filebeat | |
data: | |
filebeat.yml: |- |
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
import React, { useEffect } from "react"; | |
import { StyleSheet, Text, View } from "react-native"; | |
import * as BackgroundFetch from "expo-background-fetch"; | |
import * as TaskManager from "expo-task-manager"; | |
import * as Permissions from "expo-permissions"; | |
import * as Location from "expo-location"; | |
import { Notifications } from "expo"; | |
import { Button } from "react-native"; | |
const LOCATION_FETCH_TASK = "upload-job-task-with-location"; |
With expo-sqlite
it's not possible to execute few depending statements inside single transaction - db.transaction
does not work with async/promise and tx.executeSql
just enqueues sql statement but does not execute it.
Database
class has two methods - execute
(to execute single statement without transaction) and transaction(cb)
to execute few statements inside a transaction
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
- hosts: all | |
user: admin | |
tasks: | |
- name: Criando uma pasta na home do usuário | |
command: mkdir ~/exemplo | |
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) 2021-present, Bruno Carvalho de Araujo. | |
* All rights reserved. | |
* | |
* This source code is licensed under the license found in the LICENSE file in | |
* the root directory of this source tree. | |
*/ | |
import fetch from 'cross-fetch' |
I had a bit of trouble figuring out how to use bitnami's sealed secrets with helm
Here's a definition of done to help you see what I was trying to achieve.
Definition of done
- Single secret available for a release in a namespace, listing all secret variables
- Regular helm workflow, with no extra kubeseal commands for developers
- Encrypted secrets clearly visible in git
- Sealedsecret managed by helm
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
#!groovy | |
pipeline { | |
agent any | |
//These params will be displayed for user input when running a build, They are also accepted by the API | |
parameters { | |
string(name: 'BUILD_HOSTNAME', description: 'The name of the server to build (from Mdb)') | |
string(name: 'ILO_IP', description: 'The IP address for the server ilo') | |
booleanParam(name: 'skipOneView', description: 'Skip the OneView stage?', defaultValue: false) |