Skip to content

Commit

Permalink
Update resume, add KUBUS
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogier Lommers authored and Rogier Lommers committed Jan 8, 2025
1 parent 763335d commit fbfa884
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
19 changes: 13 additions & 6 deletions src/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ <h1 class="Title">
Rogier
<br> Lommers
</span>
<span class="Title-sub">Solution Architect / Tech Lead @ Alliander</span>
<span class="Title-sub">Staff Engineer @ KUBUS</span>
</h1>
</a>
</div>
Expand All @@ -575,8 +575,8 @@ <h1 class="Title">
<section class="l-Section">
<h2 class="l-Section-title h3 u-hidden@sm-down">Profile</h2>
<div class="l-Section-content">
<p>I am an experienced solution architect / tech lead working for <a class="u-link"
href="https://www.alliander.com/en/">Alliander</a>. I develop and maintain backend systems
<p>I am an experienced staff engineer working for <a class="u-link"
href="https://www.kubusinfo.nl">KUBUS</a>. I develop and maintain backend systems
with focus on high availability, performance, reliability and scalability. I have 17+ years of
experience in working with multidiciplinairy teams on big projects.</p>
</div>
Expand All @@ -587,9 +587,16 @@ <h2 class="l-Section-title h3 u-hidden@sm-down">Experience</h2>
<div class="l-Section-content">

<div class="l-Section-group">
<h3>Alliander: Solution Architect</h3>
2024 - now
<p>Working as a solution architect in the technical platform domain.</p>
<h3>KUBUS: Staff Engineer</h3>
2025 - now
<p>As a Staff Engineer at <a class="u-link" href="https://www.kubusinfo.nl">KUBUS</a>, I drive
cross-team engineering initiatives to elevate the overall
technical excellence of our engineering department. I focus on identifying and leading efforts
that enhance engineering practices, promote scalability and better collaboration across teams.
By working closely with Lead Engineers and the Architect, I ensure that technical solutions and
processes align with long-term strategic goals. Additionally, I provide technical guidance
across teams, mentor Lead Engineers, and serve as a key contributor to the department's
technical roadmap.</p>
</div>

<div class="l-Section-group">
Expand Down
20 changes: 18 additions & 2 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"net/http"
"os"
"strings"

"github.com/gorilla/mux"
"github.com/sirupsen/logrus"
Expand All @@ -11,16 +12,31 @@ import (
func main() {
router := mux.NewRouter()
router.Use(loggingMiddleware)
router.PathPrefix("/").Handler(http.FileServer(http.Dir("assets")))
router.PathPrefix("/").Handler(http.StripPrefix("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if !isValidPath(r.URL.Path) {
http.NotFound(w, r)
return
}
http.FileServer(http.Dir("assets")).ServeHTTP(w, r)
})))

cwd, _ := os.Getwd()

logrus.Infof("serving on http://localhost:8080, cwd: %s", cwd)
if err := http.ListenAndServe(":8080", router); err != nil {
logrus.Fatal(err)
logrus.WithFields(logrus.Fields{
"address": ":8080",
"router": router,
}).Fatal("Failed to start server: ", err)
}
}

func isValidPath(path string) bool {
// Add security checks to ensure the path is within the "assets" directory
// For example, you can check for ".." to prevent directory traversal attacks
return !strings.Contains(path, "..")
}

func loggingMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Expand Down

0 comments on commit fbfa884

Please sign in to comment.