Skip to content

Instantly share code, notes, and snippets.

View saikatharryc's full-sized avatar
🏠
Helming from home

Saikat Chakrabortty saikatharryc

🏠
Helming from home
View GitHub Profile
@saikatharryc
saikatharryc / datalake-warehouse-design.md
Last active February 13, 2025 21:18
Data-lake <> warehouse design possiblity
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1595.896769205729 1439.5754699707031" width="4787.6903076171875" height="4318.726409912109" filter="invert(93%) hue-rotate(180deg)"><!-- svg-source:excalidraw --><metadata><!-- payload-type:application/vnd.excalidraw+json --><!-- payload-version:2 --><!-- payload-start -->eyJ2ZXJzaW9uIjoiMSIsImVuY29kaW5nIjoiYnN0cmluZyIsImNvbXByZXNzZWQiOnRydWUsImVuY29kZWQiOiJ4nO19aXPbSLLt9/lcdTAwMTWIvjde9Ew04dqX+TIhS7I2a1+t51x1MDAxYlxukIRIStzERduN+e8vXHUwMDEztEWAKECkXGJt86iOdthcIlx0olCVmSe3k//7N8/7Y/DQXHL/+Kf3R3hfXHSajWovuPvjL/z9bdjrNzpteIlF/+53hr1K9M76YNDt//PLl/En/EqnNfpU2FxmW2F70If3/V/4t+f9b/QnvNKo4me3a3vru+2N+lx1MDAwZVx1MDAwZpvBj57o3G5XR1x1MDAxZo3e9PtmemFlXHUwMDEwtGvNcPzSPfyeXHUwMDFh4lMrlKCUcmYok08vP8DLJWakL1x0kcxYTblcdTAwMTTs6eW7RnVQxytQ6SvFrOJGaWq0pE9vqYeNWn1cdTAwMDDvkZL7zDBKhLBcZt/z9JbRLf3TI0+/6Vx1MDAwZnqd63C50+z08L7/i4b43/iuy0HlutbrXGbb1af3XGZ6QbvfXHJ68JjG77tsNJuHg4fo6vCo4bH+MfFcdTAwMWSnv1bAJn6f9Sn40lq9XHUwMDFk9nErxovsdINKY4BcdTAwMGaLkvEq8Fx1MDAwZ

Keybase proof

I hereby claim:

  • I am saikatharryc on github.
  • I am saikatharryc (https://keybase.io/saikatharryc) on keybase.
  • I have a public key ASCnCVmxdxUoJuJUSxoF1q3yXLpmAVVb1xjr-PKA3hULEwo

To claim this, I am signing this object:

apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: "2048-deployment"
namespace: "2048-game"
spec:
selector:
matchLabels:
app: "2048"
replicas: 5
const fs = require('fs');
const path = require('path');
//List all your folders you want to merge
// This will create One single merged JSON file named merged.json inside each folder.
// NOTE: this requires all the file must be having Array. incase not you can handle the cases in line 13 Here.
const folders = [
'/Users/saikatharryc/Documents/testing'
]
const init = (dirz)=> {
@saikatharryc
saikatharryc / delete-evicted-pods-all-namespaces.sh
Created March 2, 2020 02:47 — forked from psxvoid/delete-evicted-pods-all-namespaces.sh
Delete evicted pods from all namespaces (also ImagePullBackOff and ErrImagePull)
#!/bin/sh
# based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d
# delete all evicted pods from all namespaces
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
# delete all containers in ImagePullBackOff state from all namespaces
kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
# delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces
CREATE TABLE "Ingredient" (
"name" TEXT NOT NULL,
PRIMARY KEY ("name" ASC)
);
INSERT INTO "Ingredient" VALUES ('Vodka');
INSERT INTO "Ingredient" VALUES ('Rum');
INSERT INTO "Ingredient" VALUES ('Sherry');
INSERT INTO "Ingredient" VALUES ('Whiskey');
@saikatharryc
saikatharryc / hyperpayPayments.js
Last active June 11, 2020 18:23
Hyperpay integration
const saveCardToHyperPay = data => {
var path = "/v1/registrations";
let cardBrand = Payment.fns.cardType(data.number);
if (cardBrand == "visa" || cardBrand == "master" || cardBrand == "mada") {
var cardData = querystring.stringify({
"authentication.userId": config.HYPERPAY.UserId,
"authentication.password": config.HYPERPAY.Password,
"authentication.entityId": config.HYPERPAY.EntityId,
paymentBrand: cardBrand.toUpperCase(),
"card.number": data.number || "",
@saikatharryc
saikatharryc / happy-new-year-css-only.markdown
Created December 31, 2016 15:37
Happy New Year! -- CSS Only
@saikatharryc
saikatharryc / index.html
Created December 18, 2016 05:57
Responsive Login/Signup Modal Window
<body>
<header role="banner">
<div id="cd-logo"><a href="#0"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/148866/cd-logo_1.svg" alt="Logo"></a></div>
<nav class="main-nav">
<ul>
<!-- inser more links here -->
<li><a class="cd-signin" href="#0">Sign in</a></li>
<li><a class="cd-signup" href="#0">Sign up</a></li>
</ul>