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 / redis-dbaas-digital-ocean.md
Last active October 29, 2021 01:31
Redis DBaaS with Digital Ocean

Ideas

  • Web GUI with options to show where to deploy - location, which VM to deploy to - different VM kinds and sizes, which Redis version to deploy
  • Web GUI will be served as a static website, using a CDN or some simple web server
  • Data shown in the GUI will be dynamic and will come from the backend API, a separate server
  • Use Digital Ocean tokens to interact with Digital Ocean
  • Use prebuilt Digital Ocean machine images to deploy Redis

Redis deployment

  • Install Redis and have a systemd unit to run it
  • Configure Redis with a strong (long, complex, random) password
@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 / softwares.txt
Last active May 23, 2019 07:12
New computer Installations
Ideally there should be a way to automate these installations
1. Firefox
2. Chrome
3. Visual Studio Code. Get settings sync extension and sync extensions from github gist
4. Insomnia (brew)
5. iTerm. Get iTerm color schemes too
6. Postgres App (https://postgresapp.com/)
7. Keybase
8. Alfred
@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