Skip to content

Instantly share code, notes, and snippets.

View eddumelendez's full-sized avatar
😬
Just doing my best!

Eddú Meléndez Gonzales eddumelendez

😬
Just doing my best!
View GitHub Profile
@eddumelendez
eddumelendez / sonarqube-maven-conf
Last active August 29, 2015 14:21
SonarQube 5.1 Code Coverage
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<systemPropertyVariables>
<apptest>${project.basedir}/src/test/resources</apptest>
</systemPropertyVariables>
<properties>
<property>
git log --oneline --decorate --graph
git log --oneline origin/master.. master
git pull --rebase origin master
git push origin hash:master
git rebase -i origin/master
git cherry-pick hash
git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d
@eddumelendez
eddumelendez / affirmation
Created November 20, 2015 15:11
MuleSoft Contributor Agreement Acceptance by Eddú Meléndez
I, Eddú Meléndez, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Fri Nov 20 2015 10:11:12 GMT-0500 (SA Pacific Standard Time)

Keybase proof

I hereby claim:

  • I am eddumelendez on github.
  • I am eddumelendez (https://keybase.io/eddumelendez) on keybase.
  • I have a public key ASBytabTvpZ5rpg3Q9Qc4W2RjvqfrnS53HsCr1LCGoJQ8wo

To claim this, I am signing this object:

@eddumelendez
eddumelendez / spring-boot.md
Last active November 2, 2017 08:26
Curso de Spring Boot

Spring Boot

Spring Boot es un proyecto creado bajo el punto de vista del equipo de Spring y los proyectos de su ecosistema. Agiliza el desarrollo de aplicaciones gracias a la infraestructura que brinda y permite la personalización de dichas configuraciones. Durante el curso veremos a detalle cómo funciona, cómo lo podemos extender y su integración con los frameworks más comunes.

Temario

  • Introducción a Spring Framework
  • Introducción a Spring Boot
  • Spring CLI (Command Line Interface)
  • Spring Boot y Maven

Git

git log --oneline --graph v2.3.0..v2.4.0

Since 2.4

git push --atomic origin branch1 branch2

Since 2.5

@RunWith(SpringRunner.class)
public class UserRepositoryTest2 {
Logger logger = LoggerFactory.getLogger(UserRepositoryTest2.class);
private ApplicationContextRunner contextRunner = new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(GcpContextAutoConfiguration.class, GcpSpannerAutoConfiguration.class,
SpannerTransactionManagerAutoConfiguration.class, SpannerRepositoriesAutoConfiguration.class, GcpSpannerEmulatorAutoConfiguration.class))
.withConfiguration(UserConfigurations.of(EmptyConfig.class, Config.class))
.withPropertyValues("spring.cloud.gcp.spanner.project-id=test-project", "spring.cloud.gcp.spanner.instance-id=test-instance",
{:name "Eddú Meléndez"
:from "Perú"
:title "Software Engineer"
:languages #{:clojure :java}
:networks [{:type :github
:account "eddumelendez"}
{:type :twitter
:account "eddumelendez"}]
:hobbies [:reading :coding]}
▶ waypoint up -vv
2020-10-18T12:41:12.623-0500 [INFO] waypoint: waypoint version: full_string="Waypoint v0.1.2 (edf37a09)" version=v0.1.2 prerelease= metadata= revision=edf37a09
2020-10-18T12:41:12.623-0500 [DEBUG] waypoint: home configuration directory: path=/Users/eddumelendez/Library/Preferences/waypoint
2020-10-18T12:41:12.624-0500 [INFO] waypoint.server: attempting to source credentials and connect
2020-10-18T12:41:12.642-0500 [DEBUG] waypoint.server: connection established with sourced credentials
2020-10-18T12:41:12.645-0500 [INFO] waypoint: server version info: version=v0.1.2 api_min=1 api_current=1 entrypoint_min=1 entrypoint_current=1
2020-10-18T12:41:12.645-0500 [INFO] waypoint: negotiated api version: version=1
2020-10-18T12:41:12.645-0500 [DEBUG] waypoint: will operate on app: name=hello-world-pedestal-11
2020-10-18T12:41:12.645-0500 [INFO] waypoint: local mode, starting local runner
2020-10-18T12:41:12.645-0500 [DEBUG] waypoint.runner: registering runner
@eddumelendez
eddumelendez / LocalstackTest.java
Last active May 31, 2022 21:26
Testcontainers and localstack
@Testcontainers
class LocalstackTest {
@Container
private final LocalStackContainer localstack =
new LocalStackContainer(DockerImageName.parse("localstack/localstack").withTag("0.14.2"))
.withCopyFileToContainer(MountableFile.forClasspathResource("/localstack"), "/docker-entrypoint-initaws.d")
.withServices(Service.S3)
.waitingFor(Wait.forLogMessage(".*s3 bucket created\\.\n", 1));