- Web framework: Play
- Actors: akka
- Authentication: ?
- Authorization: ?
- ORM: doobie (for PostgreSQL)
- Evolutions: flyaway
- I/O: better-files
- JSON: circe + play-circe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Before running this script, plese ensure the following tools are installed. | |
# 1. inotifywait (yum install inotify-tools) | |
# 2. akamai-purge (script https://github.com/akamai/cli-purge) | |
# 3. Keep the CCU API credentials in the .edgerc file in the user home dir. | |
ROOTDIR='/data/www/htdocs/publish/content/site1' | |
HOST_URL='https://www.myhost.com' | |
inotifywait -m -r -e delete $ROOTDIR | | |
while read dir ev file; do |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.