Skip to content

Instantly share code, notes, and snippets.

View d-rk's full-sized avatar
🏠
Working from home

d-rk

🏠
Working from home
View GitHub Profile
@sanketsudake
sanketsudake / kind-kubernetes-metrics-server.md
Last active April 16, 2025 14:18
Running metric-server on Kind Kubernetes

I have created a local Kubernetes cluster with kind. Following are changes you need to get metric-server running on Kind.

Deploy latest metric-server release.

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.0/components.yaml

Within existing arguments to metric-server container, you need to add argument --kubelet-insecure-tls.

@JReinhold
JReinhold / global-error-boundary.js
Last active May 3, 2023 18:36
example of a top-level ErrorBoundary component in React that handles React errors, event errors and async rejections.
import React from 'react';
/**
* A default ErrorBoundary that renders children, or if they produce an error, renders the passed
* onError() function, optionally with the error as a prop.
*/
export class GlobalSentryBoundary extends React.Component {
state = { reactError: undefined };
componentDidCatch(error, errorInfo) {
@joyrexus
joyrexus / README.md
Last active December 30, 2024 01:37
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@joaopizani
joaopizani / .screenrc
Created May 17, 2012 11:55
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off