Skip to content

Instantly share code, notes, and snippets.

View pascalgrimaud's full-sized avatar
🌱

Pascal Grimaud pascalgrimaud

🌱
View GitHub Profile
//**************************************************
// Gateway
//**************************************************
application {
config {
baseName gateway
applicationType gateway
packageName io.github.pascalgrimaud.gateway
serviceDiscoveryType consul

Logs with OFF

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.github.jhipster.sample.config.WebConfigurerTest
2018-11-04 19:40:42.724  INFO   --- [           main] i.g.j.sample.config.WebConfigurer        : Web application configuration, using profiles: prod
2018-11-04 19:40:42.741  INFO   --- [           main] i.g.j.sample.config.WebConfigurer        : Web application fully configured
2018-11-04 19:40:42.892  INFO   --- [           main] i.g.j.sample.config.WebConfigurer        : Web application configuration, using profiles: dev

Logs with INFO

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.github.jhipster.sample.config.WebConfigurerTest
2018-11-04 19:38:42.023  INFO   --- [           main] i.g.j.sample.config.WebConfigurer        : Web application configuration, using profiles: prod
2018-11-04 19:38:42.037  INFO   --- [           main] i.g.j.sample.config.WebConfigurer        : Web application fully configured
2018-11-04 19:38:42.233  INFO   --- [           main] i.g.j.sample.config.WebConfigurer        : Web application configuration, using profiles: dev

Current logs

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.github.jhipster.sample.config.WebConfigurerTest
2018-11-04 19:33:56.933  INFO   --- [           main] i.g.j.sample.config.WebConfigurer        : Web application configuration, using profiles: prod
2018-11-04 19:33:56.949  INFO   --- [           main] i.g.j.sample.config.WebConfigurer        : Web application fully configured
2018-11-04 19:33:57.108  INFO   --- [           main] i.g.j.sample.config.WebConfigurer        : Web application configuration, using profiles: dev
@pascalgrimaud
pascalgrimaud / pr.md
Created April 11, 2018 08:05 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@pascalgrimaud
pascalgrimaud / docker commands
Last active November 3, 2016 13:04
Docker commands
# docker ps -a with short display
docker ps -a --format "table {{.ID}}\t{{.Status}}\t{{.Names}}"
# remove none image
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
# remove dangling volume
docker volume rm $(docker volume ls -qf dangling=true)
# docker stats