Skip to content

Instantly share code, notes, and snippets.

View narcisbcn's full-sized avatar

Narcis Pillao narcisbcn

View GitHub Profile
#!/bin/bash
AWS_CREDENTIALS_DIR=~/.aws/
AWS_CREDENTIALS_FILE=credentials
#function profiles() {
# if [ -z "$1" ]
# then
# NUM_PROFILES=$(cat ${AWS_CREDENTIALS_DIR}${AWS_CREDENTIALS_FILE}|grep "^\["|sed "s/\[//"|sed "s/]$//"|wc -l)
# if [ ${NUM_PROFILES} -lt "1" ]
# then
@narcisbcn
narcisbcn / keybase.md
Created October 7, 2019 08:17
foo.md

Keybase proof

I hereby claim:

  • I am narcisbcn on github.
  • I am narcisbcn (https://keybase.io/narcisbcn) on keybase.
  • I have a public key ASDJ-IFW-C5l-U2nEo_ST0iVkoHUYMQq3nwlTBMVwxBm1Ao

To claim this, I am signing this object:

7 2016-06-10-17:53:22 "A quoted string we don't care about" "The string we do
care about." "Another string we don't care about with escaped\" \" quotes. "
8 2016-06-10-17:53:22 Str1 Value Str3
8 2016-06-10-17:53:22 Str1 Value Str3
8 2016-06-10-17:53:22 Str1 Value2 Str3
9 2016-06-10-17:53:22 Str1 Value2 Str3
-1 2016-06-10-17:53:22 "This line is invalid" Str2 Str3
10 2016-06-10 17:53:22 "Also invalid" Str2 Str3
10 2016-06-10-17:53:22 "Also invalid" Str2
Introduction
------------
letgo's the largest app to buy and sell locally. With over 100M downloads and hundreds of millions of listings added by users, letgo’s already been named among the “Hottest Startups” by Wired and “Best Apps” by Google, and it’s the second fastest growing app in America since its 2015 launch. Business Insider calls letgo “the go-to app for selling your stuff” and it’s been featured by The New York Times, The Today Show, Mashable, Fast Company, The Wall Street Journal, Fortune and hundreds of others worldwide. Listing something on letgo is as simple as taking a photo thanks to its advanced technology. It’s the only app of its kind that can automatically title and categorize an item using artificial intelligence. Users can easily browse local listings, chat instantly in the app, and view each other’s profiles, ratings and reviews.
Based in our New York and Barcelona offices, our team of over 230 represents more than 40 nationalities. Fueled by our diverse expertise, letgo’s goal is to
# cat /etc/replication-manager/config.toml |egrep -v '^#|^$'
[Default]
hosts="10.10.62.165,10.10.61.140,10.10.56.209,10.10.63.130,10.10.67.247,10.10.58.185,10.10.95.9,10.10.64.23,10.10.61.20,10.23.188.171,10.23.171.77,10.25.10.208,10.23.176.99,10.23.185.186,10.10.67.34,10.10.92.179,10.10.61.83,10.10.61.181,10.10.61.114,10.10.64.173,10.10.60.167,10.10.93.125,10.10.56.39,10.10.58.136,10.10.61.4,10.10.65.124,10.10.68.177"
user="mrmuser:XXXXX"
rpluser="slaves:XXXXXX"
ignore-servers = "10.10.62.165,10.10.61.140,10.10.56.209,10.10.63.130,10.10.67.247,10.10.58.185,10.10.95.9,10.10.64.23,10.10.61.20,10.23.188.171,10.23.171.77,10.25.10.208,10.23.176.99,10.23.185.186,10.10.67.34,10.10.92.179,10.10.61.181"
working-directory = "/var/lib/replication-manager"
share-directory = "/usr/share/replication-manager"
logfile = "/var/log/replication-manager.log"
log-level = 1
---
apiVersion: v1
kind: Service
metadata:
name: frontend
labels:
app: guestbook
tier: frontend
namespace: web
spec: