- Shall i implement it?
- No ...
I've been reading the metrics related issues and I must admit it's a little hard to follow.
Performance and metric quality #4644
We instrument every handler in the chain, this is both expensive and at the same time not that useful for complex setups.
As someone who recently had to configure metrics and dashboards for a caddy instance I was underwhelmed.
The core issue (for me) is that a handler's metrics don't provide much value. On one hand, as was mentioned before, with deep chains they tend to be very redundant, on the other, they're not granular enough - I can see I'm serving N qps on file_server, but, which one?
I posit that there are 2 main use cases for http metrics:
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| // Handler that calls generate | |
| func ok(w http.ResponseWriter, r *http.Request) { | |
| // res := make([]int64, 0, 100000) | |
| var res [100000]int64 | |
| fibonacci.Generate(&res) | |
| // fmt.Println(suc) | |
| // fmt.Printf("%T", res) | |
| // fmt.Println(res[50]) | |
| fmt.Fprintf(w, "OK") |
| package test | |
| //A very simple example of using user defined structures with instance functions with cel-go | |
| import ( | |
| "github.com/google/cel-go/cel" | |
| "github.com/google/cel-go/checker/decls" | |
| "github.com/google/cel-go/common/types" | |
| "github.com/google/cel-go/common/types/ref" | |
| "github.com/google/cel-go/common/types/traits" |
Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.
@broros
otherwise why would he hand over a popular package to a stranger?
If it's not fun anymore, you get literally nothing from maintaining a popular package.
One time, I was working as a dishwasher in a restu
| :80 { | |
| root /serve | |
| } |
Recently, Let's Encrypt launched free wildcard certificates. While this is good news in and of itself, as it removes one of the last remaining reasons for expensive commercial certificates, I've unfortunately seen a lot of people dangerously misunderstand what wildcard certificates are for.
Therefore, in this brief post I'll explain why you probably shouldn't use a wildcard certificate, as it will put your security at risk.
It's generally pretty poorly understood (and documented!) how TLS ("SSL") works, so let's go through a brief explanation of the parts that are important here.
The general (simplified) idea behind how real-world TLS deployments work, is that you:
Download the appropriate Kali Linux .iso
- Download site: https://www.kali.org/downloads/
I used a 64 bit .iso image, downloaded via HTTP. I downloaded the amd64 weekly version, as the pool linux headers (needed below for installation of wireless drivers) were ahead of the stable release kernel.
Download the SHA256SUMS and SHA256SUMS.gpg files from the same location.
| package main | |
| import ( | |
| "github.com/kardianos/service" | |
| "log" | |
| "flag" | |
| ) | |
| type Service struct {} |