Skip to content

Instantly share code, notes, and snippets.

krisnod /
Created Jun 2, 2022 — forked from trisberg/
Using a Local Registry with Minikube

Using a Local Registry with Minikube

Install a local Registry

These instructions include running a local registry accessible from Kubernetes as well as from the host development machine at

  1. Use the docker CLI to run the registry:2 container from Docker, listening on port 5000, and persisting images in the ~/.registry/storage directory.
krisnod / gist:56ff894f400cce7c742fb11fb2fde9cf
Last active Apr 6, 2022
RancherOS on Hetzner using software RAID (RAID 1)
View gist:56ff894f400cce7c742fb11fb2fde9cf
* Activate Hetzner Rescue System (Debian)
* Connect to Hetzner Rescue System using SSH and live boot RancherOS
(thanks goes to William Fleurant for showing how this can be done:
* apt-get update
* apt-get install kexec-tools aria2
krisnod / Auth0.elm
Created Mar 2, 2017 — forked from neoeinstein/Auth0.elm
Elm Example for interoperating with Auth0. Note that much of this was culled out of an existing code-base, so may need some minor edits to work correctly for you. Presumes that Elm.Main is transpiled into elm.js
View Auth0.elm
module Auth0
( AuthenticationState(..), AuthenticationError, AuthenticationResult
, Options, defaultOpts
, LoggedInUser, UserProfile, Token
, showLock, showLockSignal
, mapResult
) where
krisnod /
Created Feb 3, 2016 — forked from paulirish/
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.


Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
krisnod /
Last active Aug 29, 2015 — forked from agendor/
A practical introduction to building a RESTful API with the hapi.js server framework for Node.js
krisnod / gist:197be55ec48aba71d29f
Last active Aug 29, 2015
Walmart Mobile node.js Setup
View gist:197be55ec48aba71d29f


We run multiple server processes in two data centers. Each process listens on two ports, one for HTTP and one for HTTPS. HTTPS is terminated by Apache prior to reaching node.js. HTTP goes directly from the client to node.js (through a master load balancer). We do not use clusters. We slice our physical servers into thin virtual machines running SmartOS, each with about 3GB of memory designed for a single node.js process.

Our node.js servers are hapi.js servers using the composer functionality and plugins architecture. We have three sets of plugins loaded: mobile web front end experience (single page app), legacy API reverse proxy, and monitoring.

We also serve original node.js services off another server zone which runs closed source plugins using hapi.


krisnod / LICENSE
Last active Aug 29, 2015 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
krisnod / SassMeister-input-HTML.html
Created Mar 15, 2015
Generated by
View SassMeister-input-HTML.html
<div class="login-screen">
<h1> &raquo; kirjaudu</h1>
<div class="login-widget">
<div class="facebook-login">
<div class="kratti-login">
krisnod / SassMeister-input-HTML.html
Created Sep 24, 2014
Generated by
View SassMeister-input-HTML.html
<div class="page">
<div class="header">
<div class="main">
<div class="main-left">
<div class="main-left-container">