#Sharing Session
Muhammad Zaky Alvan ([email protected])
BDD is extension of TDD, which write test failing test first, then implement system and/or components under tests, make the tests passes and iterate.
## update machine | |
sudo apt-get update | |
## Install essentials and basic utility | |
sudo apt install -y \ | |
build-essential libssl-dev zlib1g-dev libbz2-dev \ | |
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \ | |
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git | |
#!/bin/sh | |
#################################################################### | |
# Check for Homebrew, install if we don't have it | |
#################################################################### | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi |
############################# Filebeat ###################################### | |
filebeat: | |
prospectors: | |
- | |
paths: | |
- /var/log/<APP>/app.log | |
fields: | |
logzio_codec: plain | |
token: ${token} | |
application: app # Custom field and value (can be filtered in logz.io) |
#Sharing Session
Muhammad Zaky Alvan ([email protected])
BDD is extension of TDD, which write test failing test first, then implement system and/or components under tests, make the tests passes and iterate.
// | |
// DocuSign API Quickstart - Embedded Signing | |
// | |
import java.io.IOException; | |
import java.io.File; | |
import java.net.MalformedURLException; | |
import java.util.Arrays; | |
import java.util.List; |
import java.io.BufferedOutputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; |
import javax.mail.Message; | |
import javax.mail.MessagingException; | |
import javax.mail.Session; | |
import javax.mail.internet.InternetAddress; | |
import javax.mail.internet.MimeBodyPart; | |
import javax.mail.internet.MimeMessage; | |
import javax.mail.internet.MimeMultipart; | |
import java.awt.*; | |
import java.io.File; | |
import java.io.FileOutputStream; |
version: "3" | |
services: | |
sonarqube: | |
image: sonarqube | |
expose: | |
- 9000 | |
ports: | |
- "127.0.0.1:9000:9000" | |
networks: |
import javax.ws.rs.core.Response; | |
import java.util.Optional; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
import java.util.function.Supplier; | |
import static javax.ws.rs.core.MediaType.TEXT_PLAIN_TYPE; | |
import static javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR; | |
import static javax.ws.rs.core.Response.Status.OK; |
// uses Apache commons CSV, IO and Lang | |
import org.apache.commons.csv.CSVFormat; | |
import org.apache.commons.csv.CSVParser; | |
import org.apache.commons.csv.CSVPrinter; | |
import org.apache.commons.io.FileUtils; | |
import org.apache.commons.io.IOUtils; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.List; |