Skip to content

Instantly share code, notes, and snippets.

View mkovacek's full-sized avatar
🇭🇷

Matija Kovaček mkovacek

🇭🇷
View GitHub Profile
@mkovacek
mkovacek / README.md
Created September 8, 2016 19:36 — forked from pathikrit/README.md
My highly opinionated list of things needed to build an app in Scala
@mkovacek
mkovacek / akamaicachepurge.sh
Created February 7, 2021 08:26 — forked from marutiprasad/akamaicachepurge.sh
Akamai purge in the event of dispatcher / local cache purge
#!/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
@mkovacek
mkovacek / clean_code.md
Last active December 31, 2021 08:48 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

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.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules