Skip to content

Instantly share code, notes, and snippets.

###########################################################
# Automation of Everything #
# How To Combine Argo Events, Workflows, CD, and Rollouts #
# https://youtu.be/XNXJtxkUKeY #
###########################################################
# Requirements:
# - k8s v1.19+ cluster with nginx Ingress
# Replace `[...]` with the GitHub organization or the username
application {
config {
baseName store
applicationType gateway
packageName com.sat.projectx.store
serviceDiscoveryType no
authenticationType jwt
prodDatabaseType mysql
cacheProvider hazelcast
@krishnaarava
krishnaarava / slugUrl.sql
Created September 8, 2018 12:58 — forked from jotapepinheiro/slugUrl.sql
SLUG URL POSTGRE FUNCTION
CREATE OR REPLACE FUNCTION url_slug (
s_texto text
)
RETURNS varchar AS
$body$
DECLARE
total integer;
BEGIN
s_texto := regexp_replace(translate(replace(lower(s_texto), ' ', '-'),
'áàâãäåāăąÁÂÃÄÅĀĂĄèééêëēĕėęěĒĔĖÉĘĚìíîïìĩīĭÌÍÎÏÌĨĪĬóôõöōŏőÒÓÔÕÖŌŎŐùúûüũūŭůÙÚÛÜŨŪŬŮçÇÿ&,.ñÑ',
@krishnaarava
krishnaarava / rds_vpc_pg_multi-zone_launch.yml
Created April 22, 2016 02:52 — forked from kennwhite/rds_vpc_pg_multi-zone_launch.yml
Ansible Playbook: Create multi-zone Postgres on RDS in a VPC
# Ansible RDS Multi-AZ Postgres
#
# Assumes existing Security Group, VPC, and RDS Subnet Groups.
#
# To install Ansible on OSX:
# sudo easy_install pip
# sudo pip install paramiko PyYAML jinja2 (might be prompted to install XCode & re-run)
# sudo pip install ansible
# sudo pip install boto
# sudo mkdir /etc/ansible