Skip to content

Instantly share code, notes, and snippets.

@AlejandroSoftwareDeveloper
AlejandroSoftwareDeveloper / pom.xml
Last active May 18, 2024 20:45
My pom.xml spring boot dependencies
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
@AlejandroSoftwareDeveloper
AlejandroSoftwareDeveloper / justfile
Last active May 18, 2024 21:02
Justfile configuration for java
set shell := ["powershell.exe", "-c"]
default: build run
build:
mvn install
run: build
java -jar ./target/SpringApi-0.0.1-SNAPSHOT.jar
@AlejandroSoftwareDeveloper
AlejandroSoftwareDeveloper / application.properties
Last active June 9, 2024 19:17
Configuracion de proyecto spring boot con mysql mysql
spring.application.name=crudapi
spring.datasource.url=jdbc:mysql://localhost:3306/Nombre_de_mi_base_de_datos?createDatabaseIfNotExist=true
spring.datasource.username=root
spring.datasource.password=
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.show-sql:true
spring.jpa.hibernate.ddl-auto:create-drop
@AlejandroSoftwareDeveloper
AlejandroSoftwareDeveloper / gist:00ae07f1839098538953a5453fc168d1
Created January 13, 2025 01:05
Configuracion de git para subir archivos en un repositorio con un access token
git remote set-url origin https://HASH_DEL_ACCESS_TOKEN@github.com/AlejandroSoftwareDeveloper/Nombre_de_proyecto_en_github
git push origin main
@AlejandroSoftwareDeveloper
AlejandroSoftwareDeveloper / makefile
Created January 21, 2025 03:11
Basic linux makefile config
BIN = ./bin/project_name
SRC=./src
OBJ=./obj
CFLAGS= -g -Wall
SRCS=$(wildcard $(SRC)/*.c)
OBJS=$(patsubst $(SRC)/%.c,$(OBJ)/%.o,$(SRCS))
CC=gcc
$(BIN): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $@
@AlejandroSoftwareDeveloper
AlejandroSoftwareDeveloper / makefile
Created January 21, 2025 03:15
Basic window makefile config and sdl2
BIN = ./bin/
SRC=./src
OBJ=./obj
CFLAGS= -g -Wall
SRCS=$(wildcard $(SRC)/*.c)
OBJS=$(patsubst $(SRC)/%.c,$(OBJ)/%.o,$(SRCS))
CC=gcc
LINKS= -lmingw32 -lgdi32
$(BIN): $(OBJS)
git remote set-url origin https://mipersonalaccesskey@github.com/AlejandroSoftwareDeveloper/Nombre_de_proyecto_en_github
git push origin main
@AlejandroSoftwareDeveloper
AlejandroSoftwareDeveloper / application.properties
Created June 2, 2025 16:56
application properties for postgresql
spring.application.name=ProjectName
spring.datasource.url=jdbc:postgresql://localhost:5432/DataBaseName?createDatabaseIfNotExist=true
spring.datasource.username=root
spring.datasource.password=
# Hibernate Configuration
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=create-drop
@AlejandroSoftwareDeveloper
AlejandroSoftwareDeveloper / justfile
Last active June 11, 2025 18:30
Gist for laravel development config
set shell := ["powershell.exe", "-c"]
sms1 := '***EJECUTANDO_CORRECCION_DE_CODIGO***'
inits := "Iniciando_servidor_artisan."
ends := "Se_cerro_el_servidor_artisan."
initn := "Iniciando_servidor_npm"
endn := "Se_cerro_servidor_npm"
# lista de comandos
[windows]
default:
npm config set proxy http://myuser:mypassword@proxy:8080
npm config set https-proxy https://myuser:mypassword@proxy:8080