Skip to content

Instantly share code, notes, and snippets.

View WyekS's full-sized avatar
🎯
Focusing

WyekS WyekS

🎯
Focusing
View GitHub Profile
@WyekS
WyekS / hybris_code_conventions_for_eclipse.xml
Created October 5, 2022 11:03
Hybris Code Conventions for Eclipse
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="22">
<profile kind="CodeFormatterProfile" name="Hybris Code Convention" version="22">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="do not insert"/>
@WyekS
WyekS / hybris_code_conventions.xml
Last active July 28, 2022 12:40
Hybris code conventions (custom - max line to 130)
<code_scheme name="hybris code conventions" version="173">
<option name="RIGHT_MARGIN" value="130" />
<JavaCodeStyleSettings>
<option name="GENERATE_FINAL_LOCALS" value="true" />
<option name="GENERATE_FINAL_PARAMETERS" value="true" />
</JavaCodeStyleSettings>
<codeStyleSettings language="JAVA">
<option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="10" />
<option name="KEEP_BLANK_LINES_IN_CODE" value="10" />
<option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="10" />
@WyekS
WyekS / start-mysql-hybris.sh
Last active April 27, 2021 13:17
Script para lanzar un contenedor de Docker con MySQL con la configuración óptima para su uso en un desarrollo local. Personalizar las variables para su correcto funcionamiento.
MYSQL_ROOT_PASSWORD=root
MYSQL_DATABASE=hybris
MYSQL_USER=hybris
MYSQL_PASSWORD=hybris
DOCKER_CONTAINER=name_project_container
DOCKER_VOL_CONFIG=$HOME/project/$DOCKER_CONTAINER/etc/mysql/conf.d
DOCKER_VOL_DATA=$HOME/project/$DOCKER_CONTAINER/var/lib/mysql
docker run --rm --name $DOCKER_CONTAINER \