Skip to content

Instantly share code, notes, and snippets.

View juanpabloprado's full-sized avatar
🛖
Working From Hut

Juan Pablo Prado juanpabloprado

🛖
Working From Hut
View GitHub Profile
@juanpabloprado
juanpabloprado / clone.sh
Created August 25, 2023 18:47 — forked from mraible/clone.sh
Use JHipster's main branch
git clone https://github.com/jhipster/generator-jhipster.git --depth=1
cd generator-jhipster
npm i
npm link
@juanpabloprado
juanpabloprado / jetbrains-live-templates.md
Last active September 22, 2021 19:22 — forked from kmcquade/jetbrains-live-templates.md
My Intellij Live Templates || VSCode Code snippets for Terraform
@juanpabloprado
juanpabloprado / docker-compose.yml
Created October 28, 2020 14:59 — forked from pantsel/docker-compose.yml
example docker-compose.yml for kong, postgres and konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@juanpabloprado
juanpabloprado / config.xml
Created October 13, 2019 22:36 — forked from g0t4/config.xml
Module 2 - What am I? Get this job loaded into Jenkins and running, there are two problems you'll encounter. Raw
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.5.2">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
@juanpabloprado
juanpabloprado / Dockerfile
Created October 9, 2019 05:57 — forked from ju2wheels/Dockerfile
Docker Dockerfile reference template
# Last updated: 08/24/2916
#
# Total instructions available: 18
#
# https://docs.docker.com/engine/reference/builder/
#
# You can use a .dockerignore file in the same context directory as
# your Dockerfile to ignore files in the context before sending them
# to the Docker daemon for building to speed up building.
@juanpabloprado
juanpabloprado / docker-compose.yml
Created July 9, 2019 01:20
Drupal with Postgres docker-compose for local development
version: "3.7"
services:
drupal:
image: drupal:8.7
ports:
- 8080:80
volumes:
- drupal-modules:/var/www/html/modules
- drupal-profiles:/var/www/html/profiles
- drupal-themes:/var/www/html/themes
@juanpabloprado
juanpabloprado / SpecializedFormattersJShell.java
Last active April 27, 2019 22:04
Specialized Formatters on the Java Shell tool
jshell> LocalDateTime ldt = LocalDateTime.now();
ldt ==> 2019-04-27T16:56:46.267683
jshell> String dateTime = ldt.format(DateTimeFormatter.ofPattern("yyyyMMdd"));
dateTime ==> "20190427"
jshell> import java.nio.file.Path;
jshell> import java.nio.file.Paths;
@juanpabloprado
juanpabloprado / LocalDateTimeLocalizedFormatJShell.java
Last active April 27, 2019 22:05
Localized formatting for LocalDateTime on the Java Shell tool
jshell> // Passing Formatters to LocalDateTime format method
jshell> LocalDateTime ldt = LocalDateTime.now();
ldt ==> 2019-04-27T16:53:28.272418
jshell> ldt.format(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT));
$82 ==> "4/27/19, 4:53 PM"
jshell> ldt.format(DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT));
$83 ==> "4:53 PM"
@juanpabloprado
juanpabloprado / LocalTimeLocalizedFormatJShell.java
Last active April 27, 2019 22:04
Localized formatting for LocalTime on the Java Shell tool
jshell> // Passing Formatter to LocalTime format method
jshell> import java.time.LocalTime;
jshell> LocalTime lt = LocalTime.now();
lt ==> 16:48:31.159343
jshell> "SHORT: " + lt.format(DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT));
$77 ==> "SHORT: 4:48 PM"
@juanpabloprado
juanpabloprado / LocalDateLocalizedFormatJShell.java
Last active April 27, 2019 22:04
Localized formatting for LocalDate on the Java Shell tool
jshell> // Localized formatting for LocalDate
jshell> import java.time.LocalDate;
jshell> LocalDate ld = LocalDate.now();
ld ==> 2019-04-27
jshell> import java.time.format.FormatStyle;
jshell> "SHORT: " + ld.format(DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT));