Skip to content

Instantly share code, notes, and snippets.

🐢
Time to Wakeup

Nirmal nk-gears

🐢
Time to Wakeup
Block or report user

Report or block nk-gears

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nk-gears
nk-gears / React-Hook-Basic.js
Last active Dec 4, 2019
Created with Copy to Gist
View React-Hook-Basic.js
import React from "react";
import logo from "../logo.svg";
import { AuthContext } from "../App";
export const Login = () => {
const { dispatch } = React.useContext(AuthContext);
const initialState = {
email: "",
password: "",
isSubmitting: false,
View docker-monitor.sh
####################
# Create A Cluster #
####################
# Open Docker Preferences, select the Kubernetes tab, and select the "Enable Kubernetes" checkbox
# Open Docker Preferences, select the Advanced tab, set CPUs to 2, and Memory to 3.0
###################
# Install Ingress #
View gke-monitor.sh
######################
# Create The Cluster #
######################
gcloud auth login
REGION=us-east1
MACHINE_TYPE=n1-standard-1
@nk-gears
nk-gears / itglue.gs
Last active Nov 24, 2019
Import Data from ITGlue using Google Apps Script
View itglue.gs
//Configs
var ITGLUE_END_POINT="https://api.eu.itglue.com";
var ITGLUE_API_KEY = "<TOKEN>"
function getITGlueHeaders(){
var actualKey=ITGLUE_API_KEY;
var headers = {
"Content-Type":"application/vnd.api+json",
"x-api-key": actualKey
};
View keybase.md

Keybase proof

I hereby claim:

  • I am nk-gears on github.
  • I am nirmal_kumar (https://keybase.io/nirmal_kumar) on keybase.
  • I have a public key ASAp2VWflBOzEjmVjjGyw44R3lK9lMY_1121IEEq3Cc6iAo

To claim this, I am signing this object:

@nk-gears
nk-gears / 00-hello-world.html
Created Sep 28, 2019 — forked from dulimarta/00-hello-world.html
CS371 React Samples with Dropin Scripts
View 00-hello-world.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Hello React</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.js"></script>
@nk-gears
nk-gears / index.html
Created Sep 28, 2019 — forked from gaearon/index.html
Add React in One Minute
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
View Azure Table Storage - Python Batching Example.py
"""
Azure Table Storage - Python Batching Example
(C) 2016 MediaRealm.com.au
Needs v0.30.0 of the Azure Storage Python SDK
https://github.com/Azure/azure-storage-python/releases/tag/v0.30.0
"""
from azure.storage.table import TableService, Entity, TableBatch
@nk-gears
nk-gears / caminoways-contact.user.js
Created Aug 2, 2019
Caminoways - Contact Icons
View caminoways-contact.user.js
// ==UserScript==
// @name Caminoways - BackOffice - Dialer/Mailer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Adds Phone and Email Icons to Caminoways Backoffice Website
// @author You
// @include https://caminoways.com/*
// @match http://*/*
// @grant GM_info
// @grant GM_getValue
@nk-gears
nk-gears / apache-reverse-proxy.conf
Created Jul 29, 2019 — forked from alexklibisz/apache-reverse-proxy.conf
Apache Port Forward / Reverse Proxy Config
View apache-reverse-proxy.conf
# Running some application on port 8080, want to make it
# available at subdomain.example.com
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName subdomain.example.com
ProxyPreserveHost On
# setup the proxy
<Proxy *>
Order allow,deny
You can’t perform that action at this time.