Skip to content

Instantly share code, notes, and snippets.

View psgganesh's full-sized avatar
🤖
Currently exploring: DS and ML

Shankar Ganesh psgganesh

🤖
Currently exploring: DS and ML
View GitHub Profile
@psgganesh
psgganesh / description.md
Created January 24, 2025 03:25 — forked from juanje/description.md
Connect services with docker-compose at multirepo project

Connect services with docker-compose at multirepo project

Sometimes you have a project with different services (or microservices) and each one of them has its own repository. At those cases, tests the whole project (and its interactions) can be challenging.

With Docker and Docker Compose you can run easily each service from its repo, but for making them to see each other you (usually) need to manually create a network with Docker, assume so facts (as directories names) or do some crazy network configurations.

TL;DR

You have the final configuration here.

@psgganesh
psgganesh / docker-compose.yml
Last active February 20, 2025 06:09
OpenWebUI
# docker-compose.yaml
services:
litellm:
image: ghcr.io/berriai/litellm:main-latest
environment:
AWS_REGION_NAME: "ap-southeast-2"
AWS_PROFILE: "litellm"
entrypoint: "litellm"
command: ["--port", "1025", "--config", "/app/config.yaml", "--detailed_debug"]
volumes:
@psgganesh
psgganesh / K8-TESTING.md
Created July 18, 2024 23:18
Testing tools for Kubernetes
@psgganesh
psgganesh / .zshrc
Created July 17, 2024 02:46
Shell-shortcuts
# Custom functions
assume_role() {
eval $(aws sts assume-role --role-arn "$1" --role-session-name AWSCLI-Session | jq -c '.' | setawsenv.sh)
}
# Custom scripts
export PATH="$PATH:$HOME/bin"
@psgganesh
psgganesh / eksctl-schema.json
Created March 23, 2024 04:14
eksctl-schema.json
{
"$ref": "#/definitions/ClusterConfig",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ARN": {
"$ref": "#/definitions/github.com|aws|aws-sdk-go-v2|aws|arn.ARN"
},
"AZSubnetMapping": {
"additionalProperties": {
@psgganesh
psgganesh / 00-main.go
Last active March 20, 2023 08:01
Containers handbook
package main
import "os"
import "fmt"
// docker run image <cmd> <params>
// go run main.go run <cmd> <params>
func main() {
switch os.Args[1] {
@psgganesh
psgganesh / config
Created September 2, 2021 03:32 — forked from justinpawela/config
AWS CodeCommit Multiple Account Config
# This file is: ~/.ssh/config
# You may have other (non-CodeCommit) SSH credentials stored in this
# config file – in addition to the CodeCommit settings shown below.
# NOTE: Make sure to run [ chmod 600 ~/.ssh/config ] after creating this file!
# Credentials for Account1
Host awscc-account1 # 'awscc-account1' is a name you pick
Hostname git-codecommit.us-east-1.amazonaws.com # This points to CodeCommit in the 'US East' region
@psgganesh
psgganesh / EloquentCheatSheet.md
Created October 14, 2020 02:09 — forked from avataru/EloquentCheatSheet.md
Eloquent relationships cheat sheet
@psgganesh
psgganesh / Dockerfile-cheat-sheet.md
Last active August 16, 2020 12:50
Docker all-in-one

Using Dockerfile

Instructions

  • FROM
  • COPY
@psgganesh
psgganesh / temp.php
Last active May 27, 2020 05:29
temp.php
<?php
use App\Models\Registration;
use App\Models\Subscription;
.
.
.
.
.