Skip to content

Instantly share code, notes, and snippets.

View yaparlareddy's full-sized avatar

Santosh Reddy yaparlareddy

  • Bangalore
View GitHub Profile
AWSTemplateFormatVersion: 2010-09-09
Resources:
TestLambda:
Type: 'AWS::Lambda::Function'
Properties:
FunctionName: TestLambda
Handler: lambda/index.handler
Role: !GetAtt
- PullMarketsRole
- Arn
from flask import Flask, request, jsonify
import redis
Redis = redis.StrictRedis(host='localhost', port=6379, db=0, charset="utf-8", decode_responses=True)
app = Flask(__name__)
@app.route("/")
def root():
from flask import Flask, request, jsonify
import redis
Redis = redis.StrictRedis(host='localhost', port=6379, db=0, charset="utf-8", decode_responses=True)
app = Flask(__name__)
@app.route("/")
def root():
if [ -z "$2" ]; then
echo "Incorrect arguments passed to Action. Please provide file name and name=value pairs to be replaced." 1>&2
echo "filePath <name1> <value1> <name2> <value2> ... <nameN> <valueN>" 1>&2
exit 1
fi
args="$@"
filePath=
echo "Number of parameters passed are $#"
@yaparlareddy
yaparlareddy / PY0101EN-3-2-Loops.ipynb
Created June 11, 2020 22:28 — forked from BrunoCrypto/PY0101EN-3-2-Loops.ipynb
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yaparlareddy
yaparlareddy / gist:f85d004d1261f4af8f7c998350661896
Created January 25, 2019 12:32 — forked from Aricg/gist:56f1a769cbdcbb93b459
Enable gerrit replication to github
Gerrit version 2.8
Replication plugin extracted from gerrit.war and installed over ssh
Installation method ->
a) Relevant configs:
/var/lib/gerrit/etc/replication.config
[remote "aricg-compliance"]
url = git@github.com:somerepo/${name}.git
@yaparlareddy
yaparlareddy / ansible_variable_precedence.md
Created August 23, 2018 09:35 — forked from ekreutz/ansible_variable_precedence.md
Ansible variable precedence (order, hierarchy)