This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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') }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # 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 | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ========================== | |
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| JPA (Java Persistence API) | |
| Transaction Management with an Entity-Mananger: | |
| --- | |
| entityManager.getTransaction().begin(); | |
| entityManager.persist(<some-entity>); | |
| entityManager.getTransaction().commit(); | |
| entityManager.clear(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
NewerOlder