Skip to content

Instantly share code, notes, and snippets.

View Francisco-Castillo's full-sized avatar
🐈

Francisco Castillo Francisco-Castillo

🐈
View GitHub Profile
@Francisco-Castillo
Francisco-Castillo / git.sh
Created October 4, 2023 15:53
Volver a un commit anterior
git reset --hard <full_hash_of_commit_to_reset_to>
git push --force
@Francisco-Castillo
Francisco-Castillo / application.properties
Last active September 2, 2023 12:34
Importar certificado SSL en keystore
server.port=8443
security.require-ssl=true
server.ssl.key-store-type=PKCS12
server.ssl.key-store=/home/../springboot.p12 (Esto es la ubicacion en donde esta la llave .p12)
server.ssl.key-store-password=password
server.ssl.key-alias=nombreAlias
/**
*
* @param page
* @param size
* @param search
* @param orderBy
* @param orientation
* @param includeInactive
* @return
*/
@Francisco-Castillo
Francisco-Castillo / installTheme
Created August 11, 2023 21:52
Instalar tema de primefaces
mvn install:install-file -Dfile=<path-to-file/icarus-theme-1.1.3.jar> -DgroupId=org.primefaces.themes -DartifactId=icarus -Dversion=1.1.3 -Dpackaging=jar
@Francisco-Castillo
Francisco-Castillo / gist:c22c7b9b6bca616b8ba569f3e5a20f7d
Created January 13, 2023 00:01
Instalar tema de primefaces en proyecto maven
mvn install:install-file -Dfile=<path-to-file/icarus-theme-1.1.3.jar> -DgroupId=org.primefaces.themes -DartifactId=icarus -Dversion=1.1.3 -Dpackaging=jar
@Francisco-Castillo
Francisco-Castillo / create_aws_secret.txt
Last active May 29, 2022 01:57
Crear bucket s3 y funcion lambda desde AWS CLI
aws --endpoint-url=http://localhost:4566 secretsmanager create-secret --name testSecret --secret-string 'secret'
@Francisco-Castillo
Francisco-Castillo / index.html
Created May 26, 2022 16:40
Angular JSON pipe to print object array
<div>
{{employees |json}}
</div>
@Francisco-Castillo
Francisco-Castillo / nombre_dominio.conf
Created March 24, 2022 02:17
Archivo conf para hacer forwarding-requests entre Apache y Payara Server
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName nombre_dominio
ServerAlias nombre_dominio
DocumentRoot /var/www/nombre_dominio
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} = nombre_dominio
@Francisco-Castillo
Francisco-Castillo / paginacion.sql
Created March 22, 2022 16:26
Paginacion en DB2
SELECT * FROM COBERTURAS c
ORDER BY c.ID
LIMIT (:current_page - 1) * :rows_per_page,:rows_per_page;
@Francisco-Castillo
Francisco-Castillo / alternatives.sh
Last active March 11, 2024 20:43
Instalar alternativas para java
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/jdk8/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/jdk8/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/jdk8/bin/javaws" 1
# Seleccionar version de java a utilizar
update-alternatives --config java