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 / note-freq-map.json
Created March 5, 2024 09:32 — forked from sahithyen/note-freq-map.json
Map of the frequencies of musical notes (A4 = 440 Hz)
{
"C0": 16.35,
"C#0": 17.32,
"D0": 18.35,
"Eb0": 19.45,
"E0": 20.6,
"F0": 21.83,
"F#0": 23.12,
"G0": 24.5,
"Ab0": 25.96,
@baijum
baijum / autossh.service
Created October 12, 2023 08:50 — forked from thomasfr/autossh.service
Systemd service for autossh
[Unit]
Description=Keeps a tunnel to 'remote.example.com' open
After=network.target
[Service]
User=autossh
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
@baijum
baijum / README-setup-tunnel-as-systemd-service.md
Created October 12, 2023 08:41 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@baijum
baijum / petclinic-rds-ack.md
Last active September 15, 2022 18:03
Spring PetClinic with Amazon Relational Database Service using AWS Controllers for Kubernetes

Spring PetClinic with Amazon Relational Database Service using AWS Controllers for Kubernetes

Spring PetClinic is a sample Spring Boot web application. This article shows how to connect the application to an Amazon Relational Database Service using AWS Controllers for Kubernetes and an operator that implements the Service Binding Specification for Kubernetes.

Prerequisites

Keybase proof

I hereby claim:

  • I am baijum on github.
  • I am baijum (https://keybase.io/baijum) on keybase.
  • I have a public key whose fingerprint is CD3F F128 5397 68FB 1543 780D 5279 1C84 B003 881F

To claim this, I am signing this object:

Spring PetClinic Application with AWS RDS PostgreSQL

First I created a container image repository in quay.io.

$ git clone https://github.com/spring-projects/spring-petclinic.git
$ spring-petclinic
$ sudo apt-get install openjdk-11-jdk -y
$ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
$ ./mvnw spring-boot:build-image
package secret
import (
"encoding/base64"
"github.com/asaskevich/govalidator"
corev1 "k8s.io/api/core/v1"
)
func decode(msg []byte) string {
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: percona-server-mongodb-operator
namespace: percona
spec:
channel: stable
installPlanApproval: Automatic
name: percona-server-mongodb-operator
source: community-operators