Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
drinking from the firehose...

Rupak Ganguly rupakg

😎
drinking from the firehose...
View GitHub Profile
@rupakg
rupakg / ckad-bookmarks.html
Created Apr 30, 2020 — forked from runlevl4/ckad-bookmarks.html
CKAD Bookmarks (** indicates example source) [originally sourced from https://github.com/nikhilagrawal577/ckad-notes]
View ckad-bookmarks.html
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1576816453" LAST_MODIFIED="1578776782">CKAD</H3>
<DL><p>
@rupakg
rupakg / nano-shorts.md
Created Feb 26, 2020 — forked from franz-josef-kaiser/nano-shorts.md
nano keyboard shortcuts
View nano-shorts.md

^ = Ctrl key M = Alt key

^G      (F1)            Display this help text
^X      (F2)            Close the current file buffer / Exit from nano
^O      (F3)            Write the current file to disk
^J      (F4)            Justify the current paragraph

^R      (F5)            Insert another file into the current one
View Restore backup db to MongoDB Docker Container
docker container id - 8c37a950839a
# Make sure that the `/var/backups` folder is clean inside the container
# 1. Copy Mongo dump to container folder
(Local System)$ docker cp dump/reaction 8c37a950839a:/var/backups
# 2. Connect to mongodb docker container
(Local System)$ docker exec -it 8c37a950839a /bin/bash
@rupakg
rupakg / company_tools_services.md
Created Feb 25, 2019
Various tools and services for a company
View company_tools_services.md
@rupakg
rupakg / sls-fargate-stackery-template.yaml
Created Oct 16, 2018
Stackery template.yml after initial design
View sls-fargate-stackery-template.yaml
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Description: Video processing app with AWS Fargate using Stackery
Resources:
objectStore6A12D98C:
Type: AWS::S3::Bucket
Properties:
BucketName: !Sub ${AWS::StackName}-objectstore6a12d98c
Metadata:
StackeryName: rg-stackery-video-files
@rupakg
rupakg / aws-cf-circular-dependency-issue.yml
Created Oct 12, 2018
AWS CF Circular Dependency Issue
View aws-cf-circular-dependency-issue.yml
AWSTemplateFormatVersion: "2010-09-09"
Outputs:
DeploymentHistoryId:
Description: "Stackery Deployment History ID"
Value: "4148"
Parameters:
StackeryEnvironmentTagName:
Default: development
Type: String
Description: "Environment Name (injected by Stackery at deployment time)"
View stackery-setup-iam-policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"lambda:CreateFunction",
"cloudformation:ListExports",
"cloudformation:CreateChangeSet",
@rupakg
rupakg / api-platform-matrix.md
Last active Aug 31, 2018
API platforms comparison table
View api-platform-matrix.md
Platform Design Code Gen. Docs Testing Management
3Scale Supports Swagger None ActiveDocs (Swagger compliant) Developer Portal Security, Analytics, Monetization, Dashboard, Traffic Mgmt.
Akana Graphical Designer. Supports Swagger, RAML, WADL, WSDL Build Code Document Developer Portal API Gateway, Security, Analytics, Orchestration, Transformation, Traffic Mgmt.
Apigee Edge UI. Supports OpenAPI Specs None Developer Portal Developer Portal API Gateway, Security, Analytics, Monetization, Orchestration, Transformation, Traffic Mgmt., API Proxy Editor
Boomi Mediate None
@rupakg
rupakg / await_delay.js
Created Jun 30, 2018
delay using await
View await_delay.js
// define
const delay = ms => new Promise(res => setTimeout(res, ms))
// call
await delay(5000)
@rupakg
rupakg / automating-ci-for-python-serverless-app-with-circleci.md
Last active Jul 1, 2019
Post: Automating a CI workflow for a Python app with Circle CI
View automating-ci-for-python-serverless-app-with-circleci.md

Automating a CI workflow for a Python app with Circle CI

There are big benefits to using serverless architectures in continuous integration & deployment (CI/CD) processes. We'll show you why, and how to do it.

Published on Dec. 6th, 2017 at https://serverless.com/blog/ci-cd-workflow-serverless-apps-with-circleci/

thumbnail

I had previously written a post defining the CI/CD process, discussing various deployment patterns, creating a NodeJS app and automating the end-to-end CI flow.

In this post, I will jump straight into creating a Python app and go over the end-to-end process for automating the CI flow.

You can’t perform that action at this time.