Skip to content

Instantly share code, notes, and snippets.

View rajasgs's full-sized avatar

Raja CSP Raman rajasgs

  • Kwikee Labs
  • Toronto
View GitHub Profile
docker build -t flask-reverse-string:latest .
docker run -d -p 4000:5000 flask-reverse-string:latest
docker commit <containerid> rajakwikee/flask-reverse-string:latest
docker push rajakwikee/flask-reverse-string
AWSTemplateFormatVersion: '2010-09-09'
Description: >
AWS CloudFormation template to create a new VPC
to work with Fargate
in Create Cluster Wizard
Parameters:
EcsClusterName:
Type: String
Description: >
Specifies the ECS Cluster Name with which the resources would be
Sources:
https://neo4j.com/developer/docker-run-neo4j/
docker run \
--name testneo4j \
-p7474:7474 -p7687:7687 \
-d \
-v $HOME/neo4j/data:/data \
-v $HOME/neo4j/logs:/logs \
@rajasgs
rajasgs / minikubedelete
Created November 27, 2019 21:33 — forked from sharepointoscar/minikubedelete
Minikube - Delete all pods from default namespace
# delete all pods
kubectl delete --all pods --namespace=default
# deete all deployments
kubectl delete --all deployments --namespace=default
# delete all services
kubectl delete --all services --namespace=default
@rajasgs
rajasgs / 1_kubernetes_on_macOS.md
Created November 28, 2019 20:35 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@rajasgs
rajasgs / ngrok-installation.md
Created August 1, 2022 17:47 — forked from wosephjeber/ngrok-installation.md
Installing ngrok on Mac

Installing ngrok on OSX

For Homebrew v2.6.x and below:

brew cask install ngrok

For Homebrew v2.7.x and above:

@rajasgs
rajasgs / clean_code.md
Created May 31, 2024 05:31 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules