Skip to content

Instantly share code, notes, and snippets.

View rupakg's full-sized avatar
😎
drinking from the firehose...

Rupak Ganguly rupakg

😎
drinking from the firehose...
View GitHub Profile
@bitsnaps
bitsnaps / bootstrap5.md
Last active March 17, 2025 12:53
A cheat sheet for Bootstrap 5

Bootstrap v5 Cheat Sheet:

This cheat sheet provides a comprehensive overview of the Bootstrap v5 CSS framework, including its layout system, typography, colors, components, utilities, JavaScript plugins, customization options, accessibility considerations, responsive utilities, and RTL support.

It also demonstrates with some code usage examples how to use various features in your HTML and CSS code.

1. Layout

  • Container: .container, .container-fluid, .container-{breakpoint}
  • Grid system: .row, .col, .col-{breakpoint}-{size}
  • Responsive breakpoints: sm, md, lg, xl, xxl
@lucasponce
lucasponce / [1.A] Steps for GKE
Last active August 24, 2022 22:01
Istio Cookbook: Kiali Recipe
[1] Open https://console.cloud.google.com/ with your gmail account
[2] Create a Project / Choose a Project you have access to.
[3] Activate "Cloud Shell"
[4] Prepare a GKE cluster using
https://istio.io/latest/docs/setup/platform-setup/gke/
export PROJECT_ID=`gcloud config get-value project` && \
@runlevl4
runlevl4 / ckad-bookmarks.html
Last active February 27, 2023 08:55
CKAD Bookmarks (** indicates example source) [originally sourced from https://github.com/nikhilagrawal577/ckad-notes]
<!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>
docker container id - 8c37a950839a
# 1. Copy Mongo dump to container folder
(Local System)$ docker cp dump/reaction 8c37a950839a:/var/backups/reaction
# 2. Connect to mongodb docker container
(Local System)$ docker exec -it 8c37a950839a /bin/bash
# 3. Check if backup is copied to docker container
@gsans
gsans / gist:5929028e2b41a89e24ad8641638ba983
Last active August 31, 2019 12:33
Delete a batch of items using GraphQL
# GraphQL query
mutation batchDelete($a:ID $b:ID $c:ID $d:ID $e:ID) {
a:deleteItem(input:{ id:$a }) { id }
b:deleteItem(input:{ id:$b }) { id }
c:deleteItem(input:{ id:$c }) { id }
d:deleteItem(input:{ id:$d }) { id }
e:deleteItem(input:{ id:$e }) { id }
}
# Query variables
@thomasmichaelwallace
thomasmichaelwallace / build-serverless-template.js
Last active October 31, 2019 09:41
Serverless Commons Example
#!/usr/bin/env node
/* eslint-disable no-console */
const path = require('path');
const fs = require('fs');
const templateFile = path.join(__dirname, '../../serverless.templates.yml');
const projectFile = path.join(__dirname, '../../serverless.project.yml');
const profileFile = path.join(__dirname, `../../serverless.project.${process.env.AWS_PROFILE}.yml`);
const slsFile = path.join(__dirname, '../../serverless.yml');
@fjudith
fjudith / kubernetes_service_session_affinity.md
Last active February 6, 2025 12:15
Enable Session Affinity (a.k.a Sticky Session) to Kubernetes service
@nicolasdao
nicolasdao / serverless_regions.md
Last active July 2, 2023 08:06
Serverless Regions

AMAZON API GATEWAY REGIONS

US East (Ohio) us-east-2 apigateway.us-east-2.amazonaws.com HTTPS ZOJJZC49E0EPZ

US East (N. Virginia) us-east-1 apigateway.us-east-1.amazonaws.com HTTPS Z1UJRXOUMOOFQ8

US West (N. California) us-west-1 apigateway.us-west-1.amazonaws.com HTTPS Z2MUQ32089INYE

US West (Oregon) us-west-2 apigateway.us-west-2.amazonaws.com HTTPS Z2OJLYMUO9EFXC

@posener
posener / go-shebang-story.md
Last active April 24, 2025 16:41
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

@asukakenji
asukakenji / 0-go-os-arch.md
Last active April 23, 2025 07:37
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android