Skip to content

Instantly share code, notes, and snippets.

View AnanthaRajuC's full-sized avatar
💻
Learning

Anantha Raju C AnanthaRajuC

💻
Learning
View GitHub Profile
import subprocess
import tempfile
import os
def speak_coqui_docker(text, lang='en', speaker_idx=None, model="tts_models/en/ljspeech/tacotron2-DDC"):
# Define local path for models to persist across runs
models_path = os.path.expanduser("~/.coqui-tts/models") # Local directory to store the models
# Create the directory if it doesn't exist
os.makedirs(models_path, exist_ok=True)
@AnanthaRajuC
AnanthaRajuC / github-desktop-ubutnu.sh
Created June 7, 2025 15:05 — forked from 4lxprime/github-desktop-ubutnu.sh
download github desktop on ubuntu
### How to install github desktop on ubuntu:
## download .deb file:
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.2.0-linux1/GitHubDesktop-linux-3.2.0-linux1.deb
## dpkg:
sudo dpkg -i GitHubDesktop-linux-3.2.0-linux1.deb
package io.github.anantharajuc.aes;
import io.github.anantharajuc.aes.constants.ApplicationConstants;
import io.github.anantharajuc.aes.domain.model.User;
import io.github.anantharajuc.aes.domain.repository.UserRepository;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@AnanthaRajuC
AnanthaRajuC / actor_film_actor_join.sql
Last active December 25, 2023 12:16
actor_film_actor_join.sql
/*
Welcome to your first dbt model!
Did you know that you can also configure models directly within SQL files?
This will override configurations stated in dbt_project.yml
Try changing "table" to "view" below
*/
{{ config(materialized='table') }}
@AnanthaRajuC
AnanthaRajuC / docker-compose-non-dev-updated-localhost-connection.yml
Created December 24, 2023 10:39
Apache Superset Default Docker Compose file Updated to connect to localhost in order to connect to locally installed Database (ex: MySQL)
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@AnanthaRajuC
AnanthaRajuC / create_superset_users.py
Created April 4, 2023 13:16 — forked from pajachiet/create_superset_users.py
Scripting on Superset backend to fix bugs or automate tasks
#!/usr/bin/env python
# coding: utf8
# Script to create superset users
import pandas as pd
from sqlalchemy import create_engine
import datetime
import pexpect
import os
==========================
How Software Companies Die
==========================
- Orson Scott Card
The environment that nurtures creative programmers kills management and
marketing types - and vice versa.
Programming is the Great Game. It consumes you, body and soul. When
you're caught up in it, nothing else matters. When you emerge into
@AnanthaRajuC
AnanthaRajuC / jpa-cheatsheet.java
Created November 27, 2022 03:56 — forked from jahe/jpa-cheatsheet.java
JPA Cheatsheet
/*
JPA (Java Persistence API)
Transaction Management with an Entity-Mananger:
---
entityManager.getTransaction().begin();
entityManager.persist(<some-entity>);
entityManager.getTransaction().commit();
entityManager.clear();
@AnanthaRajuC
AnanthaRajuC / Dockerfile
Created November 8, 2022 04:24 — forked from Abhi-Codes/Dockerfile
Dockerfile to build optimized OCI image in Spring Boot
#Multi Stage Docker Build
#STAGE 1 - Build the layered jar
#Use Maven base image
FROM maven-3.8.3-openjdk-17 AS builder
COPY src /home/app/src
COPY pom.xml /home/app
#Build an uber jar
RUN mvn -f /home/app/pom.xml package
WORKDIR /home/app/target
# A Docker Compose must always start with the version tag.
# We use '3' because it's the last version.
version: "3.7"
# You should know that Docker Compose works with services.
# 1 service = 1 container.
# For example, a service, a server, a client, a database...
# We use the keyword 'services' to start to create services.
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest