Skip to content

Instantly share code, notes, and snippets.

Avatar
😃

Federico D'Eredità maxiride

😃
View GitHub Profile
@maxiride
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 (
"net/http"
)
func main() {
finish := make(chan bool)
server8001 := http.NewServeMux()
View keybase.md

Keybase proof

I hereby claim:

  • I am maxiride on github.
  • I am maxiride (https://keybase.io/maxiride) on keybase.
  • I have a public key ASCDnoCIYDbHqjxxw7D-2gujmqRYs-b-NU0OFdlq_BSzIwo

To claim this, I am signing this object:

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

S3 Static Sites

What this will cover

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

Resources

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.