Skip to content

Instantly share code, notes, and snippets.

View maxisandoval37's full-sized avatar
:octocat:
Lorem ipsum dolor sit amet

Maximiliano Sandoval maxisandoval37

:octocat:
Lorem ipsum dolor sit amet
View GitHub Profile
@maxisandoval37
maxisandoval37 / UsingHamcrest.java
Created April 18, 2025 00:27 — forked from abadongutierrez/UsingHamcrest.java
Examples using Hamcrest
import static org.junit.Assert.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.equalToIgnoringCase;
import static org.hamcrest.Matchers.hasItem;
import static org.hamcrest.Matchers.hasItems;
import static org.hamcrest.Matchers.isOneOf;
import static org.hamcrest.Matchers.not;
" T E R M I N A T O R "
by
James Cameron
A1 TITLE SEQUENCE - SLITSCAN EFFECT A1
@maxisandoval37
maxisandoval37 / Dockerfile
Last active October 11, 2024 03:48
Dockerfile for Maven Java WAR (jdk 17)
# --Dockerfile for Maven Java WAR (jdk 17)---
FROM maven:3.8.5-openjdk-17 AS build
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN mvn clean package -DskipTests
FROM tomcat:10.1-jdk17
WORKDIR /usr/local/tomcat/webapps/
@maxisandoval37
maxisandoval37 / DB en memoria H2 con Spring Boot (Datos precargados y Consola).md
Last active February 11, 2025 01:42
DB en memoria H2 con Spring Boot (Datos precargados y Consola)

DB en memoria H2 con Spring Boot

1) Configurar application.properties

#arrancar con datos SQL precargados -> agregar data.sql en /resources

spring.sql.init.mode=always
spring.jpa.defer-datasource-initialization=true
@maxisandoval37
maxisandoval37 / prepare-commit-msg
Last active May 14, 2024 15:22
Ejemplo de Github Hooks - Nombre de la rama actual en el mensaje de commit
#!/bin/sh
#
# An example hook script to prepare the commit log message.
# Called by "git commit" with the name of the file that has the
# commit message, followed by the description of the commit
# message's source. The hook's purpose is to edit the commit
# message file. If the hook fails with a non-zero status,
# the commit is aborted.
#
# To enable this hook, rename this file to "prepare-commit-msg".
@maxisandoval37
maxisandoval37 / Dockerfile
Last active January 29, 2025 20:22
Dockerfile for Maven java
# --Dockerfile for Maven java---
FROM ubuntu:latest AS build
RUN apt-get update
RUN apt-get install openjdk-17-jdk -y
COPY . .
RUN chmod +x mvnw
RUN chmod +x ./mvnw
@maxisandoval37
maxisandoval37 / maven.yml
Last active March 4, 2025 00:01
Build and Test Maven - Github Action Example
# --------------------# --------------------# --------------------# --------------------# --------------------
# 1) Crear rama: gh-pages
# 2) Generar Tokens
# PROFILE -> settings -> Developer Settings -> Tokens (classic)
# ghp_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# REPO -> settings -> Secrets and variables -> Actions -> New repository secret
@maxisandoval37
maxisandoval37 / .gitignore
Created December 4, 2023 13:47
Java .gitignore
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### STS ###
.apt_generated
.classpath
.factorypath
@maxisandoval37
maxisandoval37 / .txt
Last active April 6, 2023 16:14
COMANDOS DRIVERS/MODULOS LINUX
##############INSTALAR HEADERS##############
uname -r
apt search linux-headers-$(uname -r)
##############IMPLEMENTACIΓ“N###############
//Compilar .c
make clean & make;
γ€‚γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€οΎŸγ€€γ€€γ€€.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.
,γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.γ€€ .γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.
γ€€γ€€γ€€γ€€γ€€γ€‚γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€οΎŸγ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€‚
γ€€γ€€.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.γ€€γ€€γ€€γ€€γ€€.          。  .γ€€
γ€€.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€ γ€€ 𝐻𝒢𝓋𝑒 𝒢 𝑔𝓇𝑒𝒢𝓉 π’Ήπ’Άπ“Ž γ…€γ…€γ…€γ€€γ€€γ€€γ€€γ€€γ…€γ…€γ…€γ…€γ…€ γ€€ 。  .
γ€€ γ€€γ€€γ€€γ€€γ€€γ€€γ€‚γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€οΎŸγ€€γ€€γ€€.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.
,γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.γ€€ .γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.
γ€€γ€€γ€€γ€€γ€€γ€‚γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€οΎŸγ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€‚
γ€€γ€€.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.γ€€γ€€γ€€γ€€γ€€.          。  .