Skip to content

Instantly share code, notes, and snippets.

@yfchiuaa
yfchiuaa / .bashrc
Last active April 1, 2024 02:01
bash configuration file
eval "$(starship init bash)"
# For color directory ls with ruby gem colorls
source $(dirname $(gem which colorls))/tab_complete.sh
alias ls='colorls -lA --sd'
# For using neovim
alias vim='nvim'
# For setting the command history
@yfchiuaa
yfchiuaa / BDD.md
Last active December 17, 2020 03:30

BDD (Behavior Driven Development)

Synthesis and refinement of Test Driven Development (TDD) and Acceptance Test Driven Development (ATDD)

Way of closing gap between business people and technical people by focusing on collaborative work around concrete, real-world examples that illustrates how we want the system to behave, we use those examples to guide us from concept through to implementation, in a process of continous collaboration

Practice

A day-to-day BDD activity is a three-step, interative process:

  1. Take small upcoming change to the system, as a User Story, with concret examples of t
@yfchiuaa
yfchiuaa / .dockerignore
Created September 8, 2020 15:08 — forked from ksmithut/.dockerignore
Node Docker Compose nodemon
node_modules
@yfchiuaa
yfchiuaa / postgres-install.md
Last active August 29, 2020 04:07
PostgreSQL install on macOS

For installing postgreSQL on MacOS

Mac OS:

# If you do not have brew on your mac
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Install PostgreSQL through brew
brew install postgresql
@yfchiuaa
yfchiuaa / docker-compose.yml
Last active September 8, 2020 15:10
Production-proof docker-compose file template for frontend to backend to db with basic traefik setup
version: "3.3"
services:
traefik:
image: "traefik:v2.2"
container_name: "traefik"
command:
# Logging settings
- "--log.level=DEBUG"