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

Keybase proof

I hereby claim:

  • I am saikatharryc on github.
  • I am saikatharryc (https://keybase.io/saikatharryc) on keybase.
  • I have a public key whose fingerprint is D8E5 8BD9 E864 0FFB B0BA EB63 425A B700 95B2 E94A

To claim this, I am signing this object:

@saikatharryc
saikatharryc / index.html
Created December 6, 2016 16:01
Slick fullscreen slider
<div class="container">
<div id="slick">
<div>
<div class="img--holder" style="background-image: url(http://placehold.it/1920x1080);"></div>
</div>
<div>
<div class="img--holder" style="background-image: url(http://placehold.it/1920x1080/849695/ffffff);"></div>
</div>
<div>
<div class="img--holder" style="background-image: url(http://placehold.it/1920x1080/978298/000000);"></div>
@saikatharryc
saikatharryc / index.html
Created December 9, 2016 11:15
Return to Top Arrow
<!-- Return to Top -->
<a href="javascript:" id="return-to-top"><i class="icon-chevron-up"></i></a>
<!-- ICON NEEDS FONT AWESOME FOR CHEVRON UP ICON -->
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<!-- Test the scroll -->
<div style="height:2000px;">
@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>
@saikatharryc
saikatharryc / happy-new-year-css-only.markdown
Created December 31, 2016 15:37
Happy New Year! -- CSS Only
@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 || "",
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 / 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