Skip to content

Instantly share code, notes, and snippets.

View parthpower's full-sized avatar
:shipit:

Parth Parikh parthpower

:shipit:
View GitHub Profile
@etiennetremel
etiennetremel / create-user.sh
Last active February 1, 2024 20:22
Create Kubernetes user using kubectl csr and cfssl
#!/bin/bash
#
# Create Kubernetes user. Require cfssl.
#
# Usage:
# ./create-user.sh <kubernetes api host> <fulle name> <clusterrole>
#
# Example:
# ./create-user.sh k8s-api.my-domain.com "Jane Doe" my-project:admin
@zerbitx
zerbitx / lambarya
Created January 3, 2018 17:27
Too much effort for a joke.
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
"github.com/erikdubbelboer/gspt"
)
@C5H8NNaO4
C5H8NNaO4 / whatsapp-web-online-notifier.js
Last active August 10, 2023 23:30
WhatsApp Web - Displays Desktop Notifications when a user gets online [console]
(function (window) {
var DOUBLE_CLICK_DELAY = 550;
var OnlineNotifier = (function () {
var LOG_LEVEL = 01;
var POLL_TIMEOUT = 1E3;
var MIN_TIMEOUT = 60E3;
var MIN_TIMEOUT_TYPING = 5E3
var DEBUG_CHECK_ALL = false;
var DEBUG_CHECK_ONLINE = false;
var DEBUG_CHECK_TYPING = false;
@bkaradzic
bkaradzic / orthodoxc++.md
Last active November 17, 2024 00:54
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@paullryan
paullryan / MimeTypes.js
Last active February 18, 2024 10:51 — forked from lsauer/gist:5196979
MimeTypes es6 Object with kind determination for CMS's
const applicationTypesExt = {
'a' : 'application/octet-stream',
'ai' : 'application/postscript',
'bin' : 'application/octet-stream',
'cdf' : 'application/x-cdf',
'csh' : 'application/x-csh',
'dll' : 'application/octet-stream',
'doc' : 'application/msword',
'dot' : 'application/msword',