Skip to content

Instantly share code, notes, and snippets.

View fwfurtado's full-sized avatar

Mimi fwfurtado

View GitHub Profile
@fwfurtado
fwfurtado / init.gradle
Created April 20, 2018 15:47
Configure mirror artifacts from nexus
allprojects{
buildscript{
repositories{
maven{ url 'http://localhost:8081/repository/maven-public/' }
}
}
repositories {
maven{ url 'http://localhost:8081/repository/maven-public/' }
}
}
#!/bin/bash
yarn config set registry http://192.168.22.100:8081/repository/npm-group/
echo "registry=http://192.168.22.100:8081/repository/npm-group/" > ~/.npmrc
echo "export ANDROID_HOME=\$HOME/Android/Sdk" >> ~/.bashrc
echo "export PATH=\$PATH:\$ANDROID_HOME/tools" >> ~/.bashrc
echo "export PATH=\$PATH:\$ANDROID_HOME/platform-tools" >> ~/.bashrc
#!/bin/bash
adduser cust7697
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn lib32z1
sudo npm install -g react-native-cli
version: '3'
services:
nexus:
image: sonatype/nexus3:latest
ports:
- "8081:8081"
- "8124:8124"
volumes:
- ./sonatype-work:/nexus-data
h = hammer on
p = pull off
b = bend
r = reverse bend
~ = vibrato
e|-0h2-0h2-0h2------------------------------------------------------------|
B|--------5---5-0h2-0h2-5-0h2---------------------------------------------|
G|-----------------4----------4-2-2h4--4-2-2h4p2--------------------------|
D|-----------------------------------------------4-2-4--2-----------------|
version: '3'
services:
loadBalance:
image: nginx:alpine
volumes:
- ./config:/etc/nginx/conf.d/
ports:
- "8090:80"
networks:
- fj91
@fwfurtado
fwfurtado / docker-compose-dockerized.sh
Created February 22, 2018 17:48
Install dockerized docker-compose
sudo curl -L --fail https://github.com/docker/compose/releases/download/1.19.0/run.sh -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo docker-compose version

Command Query Responsibility Segregation (CQRS)

Data Driven Design

Event Driven

Event Sourcing

Data Centric

Domain Centric


@fwfurtado
fwfurtado / maven-docker-plugin.xml
Created January 25, 2018 18:45
Maven Plugin for docker integration
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.3.6</version>
<configuration>
<repository>${docker.image.prefix}/${project.artifactId}</repository>
<buildArgs>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
@fwfurtado
fwfurtado / TDD.md
Last active December 4, 2018 21:03
TDD Summary

TDD


TDD Patterns

  • O que queremos dizer com testar?
  • Quando testamos?  - Como escolhermos que lógica testar?
  • Como escolhermos quais dados testar?

Noun (Como você testa seu software?)

+-------O------+