Skip to content

Instantly share code, notes, and snippets.

View baijum's full-sized avatar
🏠
Working from home

Baiju Muthukadan baijum

🏠
Working from home
  • Red Hat
  • India
View GitHub Profile
@baijum
baijum / irc.md
Created September 6, 2020 04:26 — forked from xero/irc.md
irc cheat sheet

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
#!/usr/bin/sh
#
# An example hook script to check the commit log message.
# Called by "git commit" with one argument, the name of the file
# that has the commit message. The hook should exit with non-zero
# status after issuing an appropriate message if it wants to stop the
# commit. The hook is allowed to edit the commit message file.
#
# To enable this hook, rename this file to "commit-msg".
@baijum
baijum / jsoninline.go
Created January 17, 2020 05:18
JSON struct with inline
package main
import (
"fmt"
"gopkg.in/yaml.v3"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type ApplicationSelector struct {
@baijum
baijum / lightning-talks.md
Created August 2, 2019 01:59
DevConf India 2019 Lightning Talks

Guilde Lines

  1. Topic should be related to open source
  2. Speaker should not be a DevCon India 2019 other tracks speaker
  3. Talk should finish within 5 minutes
package main
import (
"fmt"
"github.com/pkg/errors"
)
func inner() error {
cause := errors.New("Error")
@baijum
baijum / interface-implements.go
Created June 27, 2019 09:35
interface implements
package main
import "fmt"
type myInterace interface {
Hello() string
@baijum
baijum / dynamic_crds.go
Created June 25, 2019 11:49 — forked from tallclair/dynamic_crds.go
Example of using CRDs with the dynamic go client
package main
import (
"fmt"
"log"
"os/user"
"path/filepath"
"strings"
apixv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"