Skip to content

Instantly share code, notes, and snippets.

View harshanarayana's full-sized avatar
🐍
🍒⛏

Harsha Narayana harshanarayana

🐍
🍒⛏
View GitHub Profile
@harshanarayana
harshanarayana / nri-plugin.go
Last active March 1, 2023 16:50
NRI based Container ID Injection
package main
import (
"context"
"flag"
"fmt"
"os"
"github.com/sirupsen/logrus"
"sigs.k8s.io/yaml"
# Generated by Powerlevel10k configuration wizard on 2020-07-30 at 10:27 IST.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 46734.
# Wizard options: nerdfont-complete + powerline, large icons, classic, unicode, dark,
# 12h time, angled separators, sharp heads, blurred tails, 2 lines, disconnected,
# no frame, sparse, many icons, fluent, instant_prompt=quiet.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@harshanarayana
harshanarayana / dump.log
Created November 25, 2019 12:02
kill -SIGUSR1 $(cat /var/run/docker.pid)
goroutine 43 [running]:
github.com/docker/docker/pkg/signal.DumpStacks(0x55c6cb61e446, 0xf, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/docker/docker/pkg/signal/trap.go:83 +0xbb
github.com/docker/docker/daemon.(*Daemon).setupDumpStackTrap.func1(0xc000a45ec0, 0x55c6cb61e446, 0xf)
/go/src/github.com/docker/docker/daemon/debugtrap_unix.go:19 +0x7a
created by github.com/docker/docker/daemon.(*Daemon).setupDumpStackTrap
/go/src/github.com/docker/docker/daemon/debugtrap_unix.go:17 +0xc1
goroutine 1 [semacquire, 2417 minutes]:
sync.runtime_Semacquire(0xc000c3c338)
diff --git a/staging/src/k8s.io/apiserver/pkg/registry/generic/rest/proxy.go b/staging/src/k8s.io/apiserver/pkg/registry/generic/rest/proxy.go
index e6ef8cb..dc4eead 100644
--- a/staging/src/k8s.io/apiserver/pkg/registry/generic/rest/proxy.go
+++ b/staging/src/k8s.io/apiserver/pkg/registry/generic/rest/proxy.go
@@ -17,6 +17,8 @@ limitations under the License.
package rest
import (
+ "bufio"
+ "bytes"
@harshanarayana
harshanarayana / install_py.sh
Created October 20, 2016 13:26
Python Installation
#!/bin/bash
INSTALL_PATH="$HOME/python"
TEMP_PATH="$INSTALL_PATH/tmp"
display_message() {
printf "\n $1 \n"
}
check_status() {
@harshanarayana
harshanarayana / VMPlayer As Service
Created February 24, 2016 06:13
VMPlayer As Service URLs
https://support.microsoft.com/en-us/kb/137890 10:41 AM
https://technet.microsoft.com/en-us/sysinternals/bb897553 10:42 AM
http://www.timdavis.com.au/general/creating-a-user-defined-service-in-windows-7/ 10:51 AM
https://irsukal.wordpress.com/2011/09/24/running-vmware-player-as-a-windows-service/ 11:00 AM
http://superuser.com/questions/438153/add-registry-key-via-batchfile 11:03 AM
http://www.robvanderwoude.com/regedit.php