Skip to content

Instantly share code, notes, and snippets.

View redis_service_statefulset.yaml
---
apiVersion: v1
kind: Service
metadata:
name: redis-cluster-service
spec:
type: NodePort
selector:
app: redis-cluster
ports:
View redis_pv.yaml
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: redis-pv-01
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
View redis_configmap.yaml
---
kind: ConfigMap
apiVersion: v1
metadata:
name: redis-config
data:
maxmemory: 2mb
---
apiVersion: apps/v1
kind: Deployment
View gcp_cluster_creator.sh
gcloud container clusters create "cluster-1"
--project <PROJECT-ID>
--zone <ZONE-ID>
--no-enable-basic-auth
--cluster-version "1.20.10-gke.1600"
--release-channel "stable"
--machine-type "e2-medium"
--image-type "UBUNTU"
--disk-type "pd-standard"
--disk-size "100"
View project-level-users-list.sh
#!/bin/bash
for project in $(gcloud projects list --format="value(projectId)")
do
echo "============================ Project: $project ============================"
mkdir $(pwd)/users/${project}
for instance in $(gcloud compute instances list --project $project --filter="STATUS=RUNNING" --format="csv[no-heading](name,zone)")
do
zone=(${instance//,/ })
read -p "You need ${zone[0]} ?" yn
case $yn in
View janitor.py
from subprocess import Popen, PIPE
from sys import argv
import platform
import datetime
class Janitor:
start = 0
end = 0
View advent-calendar-magic-drawers.markdown

Advent Calendar Magic Drawers

Inspired by the most common type of Advent Calendar, for the CodePen Christmas challenge, I've created a magical version of it. It's dedicated completely to Christmas festivities. Hope you like it!

A Pen by Eduardo Allegrini on CodePen.

License.

View keybase.md

Keybase proof

I hereby claim:

  • I am indian2020 on github.
  • I am sivagogula (https://keybase.io/sivagogula) on keybase.
  • I have a public key ASB01M7jo4ZebdJod8SNtFM65gqZKkcieWQIWTPVB50tyQo

To claim this, I am signing this object:

@INDIAN2020
INDIAN2020 / how-to-detect-breakpoints-in-bootstrap-using-javascript.markdown
Created Aug 23, 2020
How to detect breakpoints in Bootstrap using JavaScript
View how-to-detect-breakpoints-in-bootstrap-using-javascript.markdown

How to detect breakpoints in Bootstrap using JavaScript

Responsive Bootstrap Toolkit provides an easy way of breakpoint detection in JavaScript, detecting changes in currently active breakpoint, as well as executing any breakpoint-specific JavaScript code.

A Pen by Maciej Gurban on CodePen.

License.