Skip to content

Instantly share code, notes, and snippets.


Federico D'Eredità maxiride

View GitHub Profile
maxiride / main.go
Created Jun 8, 2020 — forked from filewalkwithme/main.go
Listening multiple ports on golang http servers
View main.go
package main
import (
func main() {
finish := make(chan bool)
server8001 := http.NewServeMux()

Keybase proof

I hereby claim:

  • I am maxiride on github.
  • I am maxiride ( on keybase.
  • I have a public key ASCDnoCIYDbHqjxxw7D-2gujmqRYs-b-NU0OFdlq_BSzIwo

To claim this, I am signing this object:

maxiride /
Created Jun 21, 2018 — forked from bradwestfall/
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

What this will cover

  • Host a static website at S3
  • Redirect to
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation


View gist:986e5f07c6dd93f82f506074096c7d49
For instance `Request::sendMessage($data)` uses:
$data = [
  'chat_id' => $chat_id, 
  'text' => 'Your utf8 text 😜 ...'
You can’t perform that action at this time.