Skip to content

Instantly share code, notes, and snippets.


Sudar Abisheck SudarAbisheck

Block or report user

Report or block SudarAbisheck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
SudarAbisheck /
Created Mar 22, 2018
Signing AWS API requests using temp credentials obtained using the role attached to an EC2 instance
import sys, os, base64, datetime, hashlib, hmac, json
import requests # pip install requests
# ************* REQUEST VALUES *************
method = 'GET'
service = 'execute-api'
host = '
region = 'us-east-1'
endpoint = ''
request_parameters = ''
SudarAbisheck / base.yml
Last active Mar 21, 2018
Combining multiple Swagger+APIGW using jq
View base.yml
swagger: 2.0
basePath: /prod
title: AwsSamExample
- https
SudarAbisheck / schedule-lambda-asl.json
Created Feb 25, 2018
Amazon State Language (ASL) for created a state machine to schedule a one-time invocation of a Lambda function.
View schedule-lambda-asl.json
"Comment": "Invoking Lambda at arbitrary time.",
"StartAt": "CountDownTimer",
"States": {
"CountDownTimer": {
"Type": "Wait",
"TimestampPath": "$.invocationTime",
"Next": "InvokeLambda"
"InvokeLambda": {
SudarAbisheck / CustomGenesis.json
Created Jul 8, 2017
Custom Genesis file to initialize ethereum using geth init
View CustomGenesis.json
"config": {
"chainId": 13,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
"difficulty": "200000000",
"gasLimit": "2100000",
"alloc": {
SudarAbisheck / 51-android.rules
Created Jan 27, 2016
udev rules for android device
View 51-android.rules
# udev rule to detect android devices
# These rules refer to
# Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev"
# Archos
SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", MODE="0666", GROUP="plugdev"
# Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev"
# Azpen Onda
SudarAbisheck / px
Last active May 14, 2019
Shell Script to set proxy in Ubuntu
View px
You can’t perform that action at this time.