This file contains 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
// Change database | |
use mydb | |
// Create user | |
db.createUser( | |
{ | |
user: "john", | |
pwd: "123567", | |
roles:["readWrite"] | |
} |
This file contains 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 | |
######################################## | |
##### USE THIS WITH AMAZON LINUX 2 ##### | |
######################################## | |
# get admin privileges | |
sudo su | |
# install httpd (Linux 2 version) |
This file contains 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
// Backup | |
db.createUser({ | |
user: "bkp", | |
pwd: "PASSWORD-123", | |
roles: [ | |
{ role: "readAnyDatabase", db: "admin" }, | |
{ role: "backup", db: "admin" } | |
] | |
}) |
This file contains 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
/* eslint-disable no-undef */ | |
import { jest } from '@jest/globals' | |
// run before all tests (setup) | |
beforeAll(async () => { | |
// setup the test environment | |
// mock | |
}) | |
// run before each test |
This file contains 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
#!/usr/bin/env bash | |
list=( | |
atena-api, | |
atena-client | |
) | |
for i in ${list[@]}; | |
do | |
helm upgrade --install $i . -n production -f values-usa-master.yaml |
This file contains 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
# Annotation Value Description | |
# | |
# pre-install Executes after templates are rendered, but before any resources are created in Kubernetes | |
# post-install Executes after all resources are loaded into Kubernetes | |
# pre-delete Executes on a deletion request before any resources are deleted from Kubernetes | |
# post-delete Executes on a deletion request after all of the release's resources have been deleted | |
# pre-upgrade Executes on an upgrade request after templates are rendered, but before any resources are updated | |
# post-upgrade Executes on an upgrade request after all resources have been upgraded | |
# pre-rollback Executes on a rollback request after templates are rendered, but before any resources are rolled back | |
# post-rollback Executes on a rollback request after all resources have been modified |
This file contains 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
# amqp://rabbitmq:rabbitmq@localhost | |
rabbitmq: | |
container_name: rabbitmq | |
image: rabbitmq:3.7.8-management | |
hostname: "rabbitmq" | |
environment: | |
RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG" | |
RABBITMQ_DEFAULT_USER: "rabbitmq" | |
RABBITMQ_DEFAULT_PASS: "rabbitmq" |
This file contains 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
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
lerna-debug.log* | |
.pnpm-debug.log* | |
# Diagnostic reports (https://nodejs.org/api/report.html) |
This file contains 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 | |
ACTION=$1 | |
function help(){ | |
echo -e \ | |
"Usage: | |
1. Export ESSENTIAL_VARIABLE varible with... | |
$ export ESSENTIAL_VARIABLE=<KEY_PATH> | |
This file contains 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
image: python:3.10 | |
pipelines: | |
pull-requests: | |
'**': | |
- step: | |
name: Linter | |
script: | |
- echo Linting... | |
branches: |
NewerOlder