Skip to content

Instantly share code, notes, and snippets.

View karuppiah7890's full-sized avatar
😄
"When given the choice between being right or being kind, choose kind" Dr Wayne

Karuppiah Natarajan karuppiah7890

😄
"When given the choice between being right or being kind, choose kind" Dr Wayne
View GitHub Profile
@karuppiah7890
karuppiah7890 / test.go
Created October 5, 2021 18:22
Another sample failing test of `TestMachineScope_PublicIPSpecs` test, but with right test report
func TestMachineScope_PublicIPSpecs(t *testing.T) {
tests := []struct {
name string
machineScope MachineScope
want []azure.PublicIPSpec
}{
{
name: "returns nil if AllocatePublicIP is false",
machineScope: MachineScope{
AzureMachine: &infrav1.AzureMachine{
@karuppiah7890
karuppiah7890 / test.go
Created October 5, 2021 18:11
Sample failing test in `TestMachineScope_PublicIPSpecs` test
func TestMachineScope_PublicIPSpecs(t *testing.T) {
tests := []struct {
name string
machineScope MachineScope
want []azure.PublicIPSpec
}{
{
name: "returns nil if AllocatePublicIP is false",
machineScope: MachineScope{
AzureMachine: &infrav1.AzureMachine{
Open House is a house that's Open
@karuppiah7890
karuppiah7890 / terraform.log
Created June 10, 2019 17:47
Terraform Helm Provider issue regarding helm v2.14.0
2019/06/10 23:16:13 [INFO] Terraform version: 0.12.1
2019/06/10 23:16:13 [INFO] Go runtime version: go1.12.4
2019/06/10 23:16:13 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/06/10 23:16:13 [DEBUG] Attempting to open CLI config file: /Users/karuppiahoss/.terraformrc
2019/06/10 23:16:13 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/06/10 23:16:13 [INFO] CLI command args: []string{"apply"}
2019/06/10 23:16:13 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/06/10 23:16:13 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/06/10 23:16:13 [DEBUG] New state was assigned lineage "f449f3ca-c298-5a40-2e3f-e5c4848968d9"
2019/06/10 23:16:13 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@karuppiah7890
karuppiah7890 / firefox-theme
Last active May 23, 2019 06:46
My Firefox Theme
https://color.firefox.com/?theme=XQAAAAIHAQAAAAAAAABBqYhm849SCia2CaaEGccwS-xNKlhMjgHXI2DYk6tUZL6Q64nyQ2hKMbyHrYkskwXqmP0_nMSaQhvUH4ChNbX3dj8zhaMnu3ExOOA13p27upykk_TKJ8eBY0V981ym4Unb14nVeeof-xGj4UJXKCgCDZB1eJwL7ER9GCHsDiO8k8AGcemegdXYgpNv0Y8oTeZ9vC7qiYZTVrL4aTryxvxLQtlcJbk5Hw_Y24ZsO0Iv2P4R3EA
@karuppiah7890
karuppiah7890 / checking-gitlab-ci-raw-output.sh
Created September 25, 2018 03:55
Check GitLab CI job raw output with colors in your console with `less`
less -r gitlab-ci-job-raw-output.log
@karuppiah7890
karuppiah7890 / README-Template.md
Created September 16, 2018 19:12 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@karuppiah7890
karuppiah7890 / script.md
Created July 28, 2018 17:21
Go to any directory containing project source code. Projects are in Gitlab. There are many groups and many repos under each group, tought to navigate, so a small script to navigate
alias godir='cd ~/projects/gitlab/$(fd --max-depth 2 -t d . ~/projects/gitlab/ | xargs -I {} sh -c "echo {} | cut -d / -f 6,7" | fzf --height 15)'

Use the whole command based on the directory structure, especially the cut command. You need fd and fzf installed for this