Skip to content

Instantly share code, notes, and snippets.

@hrittikhere
hrittikhere / SCMS.md
Created October 19, 2020 17:09 — forked from ria18405/SCMS.md
Social Currency Metric System
@hrittikhere
hrittikhere / runcost.md
Last active January 18, 2022 05:37
running cost

Run a NGO for 6$ per year!

  1. DynamoDB for database
  2. Lambda / Vercel for backend
  3. Netlify / Vercel / Surge / Render for frontend
  4. S3 for file/image hosting
  5. Cloudinary for image hosting
  6. IFTTT to webhook for cron
  7. RedisLabs for queues, cache
  8. Figma for designing and prototyping
@hrittikhere
hrittikhere / vscode_remote
Created September 25, 2021 19:07
Gist to help you configure VSCode for Remote Connection via SSH
Host input_server
User input_id
HostName input_IP
IdentityFile input_path_of_key
{
"landscape": [
{
"category": null,
"name": "Provisioning",
"subcategories": [
{
"subcategory": null,
"name": "Automation & Configuration",
"items": [
@hrittikhere
hrittikhere / delete_namespace
Created October 2, 2021 14:10
Delete Terminating Namespace
kubectl get namespace "terminating-namespace" -o json \
| tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" \
| kubectl replace --raw /api/v1/namespaces/terminating-namespace/finalize -f -
@hrittikhere
hrittikhere / install.sh
Last active November 19, 2022 16:17
Pre Flight kubernetes (Ubuntu)
#!/bin/sh
# Update Base System
sudo apt update -y
sudo apt upgrade -y
# Install Docker
echo -e "\e[1;31m Installing Docker \e[0m"
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
# Server configuration
DRONE_SERVER_HOST=20.127.52.110
DRONE_SERVER_PROTO=http
DRONE_GITHUB_CLIENT_ID=338c882b16314d3d0419
DRONE_GITHUB_CLIENT_SECRET=42649d21480fb110745a5cf9ba87d6c30c5e252f
DRONE_RPC_SECRET=881960be55b0522dc6f9a2645828a85b
DRONE_TLS_AUTOCERT=false
DRONE_USER_CREATE=username:pavanbelagatti,admin:true
# Runners configuration
DRONE_RPC_HOST=20.127.52.110
# -*- mode: ruby -*-
# vi: set ft=ruby :
default_box = "generic/opensuse42"
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
Service OpenStack AWS
Virtual Servers Nova Instance EC2
Docker Magnum ECS
Scalability Heat with Scaling AWS Scaling
Load Balancing LBaas Elastic Load Balancing
API OpenStack API EC2 AP
GUI Horizon Console
Storage Object Swift S3
Block Storage Cinder EBS
@hrittikhere
hrittikhere / sign-off.md
Created June 24, 2022 17:53
A sign-off message in the following format appear on each commit in the pull request

If it requires a sign-off message in the following format appear on each commit in the pull request:

This is my commit message

Signed-off-by: Random Developer <random@developer.example.org>

The text can either be manually added to your commit body, or you can add either -s or --signoff to your usual git commit commands.