Skip to content

Instantly share code, notes, and snippets.

View amwolff's full-sized avatar
:shipit:

Artur M. Wolff amwolff

:shipit:
  • Poland
  • 10:06 (UTC +02:00)
View GitHub Profile
@amwolff
amwolff / README.md
Last active March 1, 2023 12:17
How to register an access grant @ Auth Service via HTTP(S) and DRPC(S)

HTTP(S)

Example with cURL

$ curl \
--header "Content-Type: application/json" \
--data '{"access_grant": "1uW6DdRk8aQ1CAK8H7K34BePSgSNFCy9vsZZgNmGrZBoqLrZS5Lu1pxaoDgyCF4NCY6KdiGyCyfAoNbxYoXMh9wWP6HgxkuQ1PCvC25DvoXjwaAkUqRXtFPhCb4hr5cTrLYLJnqcfKVEmXX6UeXXoBsQoktzXjYLjadzHX58XUWEpcZioqMqFGCUqnyzgRTTRZB2anQpADv1FCpuvombxZxzxTdd8HWEcRXmUAwVsNxavBHeLL7ymZMXihMb4FVrYvwUegmWXEg47f1x", "public": true}' \
-v https://auth.storjshare.io/v1/access
@amwolff
amwolff / Vehicles.hql
Last active April 25, 2020 18:45
Apache Hive test
SET hive.exec.dynamic.partition.mode = nonstrict;
SET hive.exec.max.dynamic.partitions = 2000;
SET hive.exec.max.dynamic.partitions.pernode = 500;
USE wolffartu;
DROP TABLE IF EXISTS temp_Vehicles PURGE;
CREATE TEMPORARY EXTERNAL TABLE IF NOT EXISTS temp_Vehicles (
id BIGINT,
I'm doing this:
func main() {
selenium.SetDebug(false)
browser := selenium.Capabilities{
"browserName": "firefox",
}
wd, err := selenium.NewRemote(browser, "http://127.0.0.1:4444/wd/hub")
if err != nil {
logrus.Panic(err)
}