Skip to content

Instantly share code, notes, and snippets.

import requests
import lxml.html
from lxml.cssselect import CSSSelector
import re
import requests
def check_url(url):
try:
return requests.head(url, timeout=1).status_code == 200
except:
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.
package extgrpc
import (
"context"
"fmt"
"sync"
diff --git a/pkg/store/proxy_heap.go b/pkg/store/proxy_heap.go
index d354d4db..5161930b 100644
--- a/pkg/store/proxy_heap.go
+++ b/pkg/store/proxy_heap.go
@@ -9,6 +9,7 @@ import (
"fmt"
"io"
"sort"
+ "strings"
"sync"