Skip to content

Instantly share code, notes, and snippets.

View kamranahmedse's full-sized avatar

Kamran Ahmed kamranahmedse

View GitHub Profile
@kamranahmedse
kamranahmedse / FileServerWith404.go
Created April 20, 2025 02:47 — forked from lummie/FileServerWith404.go
A wrapper for GOs http.FileServer that allows a custom 404 handler to be assigned
package middleware
import (
"net/http"
"os"
"path"
"strings"
)
// FSHandler404 provides the function signature for passing to the FileServerWith404
@kamranahmedse
kamranahmedse / FileServerWith404.go
Created April 20, 2025 02:47 — forked from lummie/FileServerWith404.go
A wrapper for GOs http.FileServer that allows a custom 404 handler to be assigned
package middleware
import (
"net/http"
"os"
"path"
"strings"
)
// FSHandler404 provides the function signature for passing to the FileServerWith404
@kamranahmedse
kamranahmedse / license-badges.md
Created June 9, 2018 14:07 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
  • Github has a new autodetection of the LICENSE file, which shows up the license at the repo overview