From 1d2f661bb0d29a6aa55b0d435be6240c1490e402 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Mon, 10 Apr 2023 11:17:23 -0600 Subject: [PATCH] good enough --- broker/broker.go | 6 +++--- broker/broker_test.go | 4 ++-- broker/fastexact.go | 6 +++--- broker/fastexact_test.go | 6 +++--- broker/job.go | 4 ++-- broker/ntgvision.go | 6 +++--- broker/ntgvision_mock.go | 2 +- broker/ntgvision_test.go | 2 +- config/config.go | 4 ++-- go.mod | 27 +++++++-------------------- go.sum | 25 ++++++------------------- main.go | 10 +++++----- main_test.go | 2 +- message/images.go | 4 ++-- message/images_test.go | 2 +- message/matrix.go | 4 ++-- message/matrix_test.go | 2 +- todo.yaml | 4 ++-- zip/zip.go | 2 +- 19 files changed, 48 insertions(+), 74 deletions(-) diff --git a/broker/broker.go b/broker/broker.go index 35d490c..3896bb6 100644 --- a/broker/broker.go +++ b/broker/broker.go @@ -3,9 +3,9 @@ package broker import ( "context" "encoding/json" - "local/storage" - "local/truckstop/config" - "local/truckstop/logtr" + "gogs.inhome.blapointe.com/local/storage" + "gogs.inhome.blapointe.com/local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/logtr" "net/http" "strings" "time" diff --git a/broker/broker_test.go b/broker/broker_test.go index 3897bb8..c341a78 100644 --- a/broker/broker_test.go +++ b/broker/broker_test.go @@ -2,8 +2,8 @@ package broker import ( "fmt" - "local/storage" - "local/truckstop/logtr" + "gogs.inhome.blapointe.com/local/storage" + "gogs.inhome.blapointe.com/local/truckstop/logtr" "net/http" "net/http/httptest" "strconv" diff --git a/broker/fastexact.go b/broker/fastexact.go index 6b815a8..ad67c88 100644 --- a/broker/fastexact.go +++ b/broker/fastexact.go @@ -7,9 +7,9 @@ import ( "fmt" "io" "io/ioutil" - "local/storage" - "local/truckstop/config" - "local/truckstop/logtr" + "gogs.inhome.blapointe.com/local/storage" + "gogs.inhome.blapointe.com/local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/logtr" "net/http" "sort" "strconv" diff --git a/broker/fastexact_test.go b/broker/fastexact_test.go index 6e16d9a..3a7e02c 100644 --- a/broker/fastexact_test.go +++ b/broker/fastexact_test.go @@ -1,9 +1,9 @@ package broker import ( - "local/storage" - "local/truckstop/config" - "local/truckstop/logtr" + "gogs.inhome.blapointe.com/local/storage" + "gogs.inhome.blapointe.com/local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/logtr" "os" "path" "testing" diff --git a/broker/job.go b/broker/job.go index 31100ea..4cdd244 100644 --- a/broker/job.go +++ b/broker/job.go @@ -3,8 +3,8 @@ package broker import ( "encoding/base64" "fmt" - "local/truckstop/config" - "local/truckstop/zip" + "gogs.inhome.blapointe.com/local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/zip" "strings" "time" ) diff --git a/broker/ntgvision.go b/broker/ntgvision.go index 95a10c6..07b7619 100644 --- a/broker/ntgvision.go +++ b/broker/ntgvision.go @@ -7,9 +7,9 @@ import ( "fmt" "io" "io/ioutil" - "local/truckstop/config" - "local/truckstop/logtr" - "local/truckstop/zip" + "gogs.inhome.blapointe.com/local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/logtr" + "gogs.inhome.blapointe.com/local/truckstop/zip" "net/http" "time" ) diff --git a/broker/ntgvision_mock.go b/broker/ntgvision_mock.go index 7a08769..75370b6 100644 --- a/broker/ntgvision_mock.go +++ b/broker/ntgvision_mock.go @@ -4,7 +4,7 @@ import ( "bytes" "io" "io/ioutil" - "local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/config" "os" "path" ) diff --git a/broker/ntgvision_test.go b/broker/ntgvision_test.go index 474a8a8..e55ada5 100644 --- a/broker/ntgvision_test.go +++ b/broker/ntgvision_test.go @@ -1,7 +1,7 @@ package broker import ( - "local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/config" "os" "testing" "time" diff --git a/config/config.go b/config/config.go index fc40b5c..9164da8 100644 --- a/config/config.go +++ b/config/config.go @@ -3,8 +3,8 @@ package config import ( "encoding/json" "io/ioutil" - "local/storage" - "local/truckstop/logtr" + "gogs.inhome.blapointe.com/local/storage" + "gogs.inhome.blapointe.com/local/truckstop/logtr" "os" "sync" "time" diff --git a/go.mod b/go.mod index 2cdca10..e819815 100644 --- a/go.mod +++ b/go.mod @@ -1,38 +1,26 @@ -module local/truckstop +module gogs.inhome.blapointe.com/local/truckstop go 1.17 -replace local/storage => ../storage - -replace local/logb => ../logb - -replace local/sandbox/contact/contact => ../sandbox/contact/contact - require ( + github.com/PuerkitoBio/goquery v1.8.0 + github.com/google/uuid v1.3.0 github.com/matrix-org/gomatrix v0.0.0-20210324163249-be2af5ef2e16 - local/sandbox/contact/contact v0.0.0-00010101000000-000000000000 - local/storage v0.0.0-00010101000000-000000000000 + gogs.inhome.blapointe.com/local/storage v0.0.0-20230410162102-db39d7b02e29 + golang.org/x/time v0.0.0-20181108054448-85acf8d2951c ) require ( cloud.google.com/go v0.33.1 // indirect - github.com/PuerkitoBio/goquery v1.8.0 // indirect github.com/Unknwon/goconfig v0.0.0-20181105214110-56bd8ab18619 // indirect github.com/abbot/go-http-auth v0.4.0 // indirect github.com/andybalholm/cascadia v1.3.1 // indirect github.com/aws/aws-sdk-go v1.15.81 // indirect github.com/boltdb/bolt v1.3.1 // indirect - github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b // indirect - github.com/buraksezer/consistent v0.9.0 // indirect - github.com/bytbox/go-pop3 v0.0.0-20120201222208-3046caf0763e // indirect - github.com/cespare/xxhash v1.1.0 // indirect - github.com/emersion/go-imap v1.2.0 // indirect - github.com/emersion/go-sasl v0.0.0-20200509203442-7bfe0ed36a21 // indirect github.com/go-stack/stack v1.8.0 // indirect github.com/golang/protobuf v1.2.0 // indirect github.com/golang/snappy v0.0.1 // indirect github.com/gomodule/redigo v1.8.5 // indirect - github.com/google/uuid v1.3.0 // indirect github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af // indirect github.com/json-iterator/go v1.1.9 // indirect github.com/klauspost/compress v1.9.5 // indirect @@ -57,17 +45,16 @@ require ( github.com/xdg-go/stringprep v1.0.2 // indirect github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect go.mongodb.org/mongo-driver v1.7.2 // indirect + gogs.inhome.blapointe.com/local/logb v0.0.0-20230410154319-880efa39d871 // indirect golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 // indirect golang.org/x/net v0.0.0-20211216030914-fe4d6282115f // indirect golang.org/x/oauth2 v0.0.0-20181120190819-8f65e3013eba // indirect golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect - golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect + golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect golang.org/x/text v0.3.7 // indirect - golang.org/x/time v0.0.0-20181108054448-85acf8d2951c // indirect google.golang.org/api v0.0.0-20181120235003-faade3cbb06a // indirect google.golang.org/appengine v1.3.0 // indirect gopkg.in/ini.v1 v1.42.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect - local/logb v0.0.0-00010101000000-000000000000 // indirect ) diff --git a/go.sum b/go.sum index 7bcb81b..08690b0 100644 --- a/go.sum +++ b/go.sum @@ -5,8 +5,6 @@ github.com/Azure/azure-pipeline-go v0.1.8/go.mod h1:XA1kFWRVhSK+KNFiOhfv83Fv8L9a github.com/Azure/azure-storage-blob-go v0.0.0-20181023070848-cf01652132cc/go.mod h1:oGfmITT1V6x//CswqY2gtAHND+xIP64/qL7a5QJix0Y= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/PuerkitoBio/goquery v1.8.0 h1:PJTF7AmFCFKk1N6V6jmKfrNH9tV5pNE6lZMkG0gta/U= github.com/PuerkitoBio/goquery v1.8.0/go.mod h1:ypIiRMtY7COPGk+I/YbZLbxsxn9g5ejnI2HSMtkjZvI= github.com/Unknwon/goconfig v0.0.0-20181105214110-56bd8ab18619 h1:6X8iB881g299aNEv6KXrcjL31iLOH7yA6NXoQX+MbDg= @@ -22,14 +20,6 @@ github.com/aws/aws-sdk-go v1.15.81/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3A github.com/billziss-gh/cgofuse v1.1.0/go.mod h1:LJjoaUojlVjgo5GQoEJTcJNqZJeRU0nCR84CyxKt2YM= github.com/boltdb/bolt v1.3.1 h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= -github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b h1:L/QXpzIa3pOvUGt1D1lA5KjYhPBAN/3iWdP7xeFS9F0= -github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA= -github.com/buraksezer/consistent v0.9.0 h1:Zfs6bX62wbP3QlbPGKUhqDw7SmNkOzY5bHZIYXYpR5g= -github.com/buraksezer/consistent v0.9.0/go.mod h1:6BrVajWq7wbKZlTOUPs/XVfR8c0maujuPowduSpZqmw= -github.com/bytbox/go-pop3 v0.0.0-20120201222208-3046caf0763e h1:mQTN05gz0rDZSABqKMzAPMb5ATWcvvdMljRzEh0LjBo= -github.com/bytbox/go-pop3 v0.0.0-20120201222208-3046caf0763e/go.mod h1:alXX+s7a4cKaIprgjeEboqi4Tm7XR/HXEwUTxUV/ywU= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/coreos/bbolt v0.0.0-20180318001526-af9db2027c98/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/cpuguy83/go-md2man v1.0.8/go.mod h1:N6JayAiVKtlHSnuTCeuLSQVs75hb8q+dYQLjr7cDsKY= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -38,12 +28,6 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/djherbis/times v1.1.0/go.mod h1:CGMZlo255K5r4Yw0b9RRfFQpM2y7uOmxg4jm9HsaVf8= github.com/dropbox/dropbox-sdk-go-unofficial v5.4.0+incompatible/go.mod h1:lr+LhMM3F6Y3lW1T9j2U5l7QeuWm87N9+PPXo3yH4qY= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/emersion/go-imap v1.2.0 h1:lyUQ3+EVM21/qbWE/4Ya5UG9r5+usDxlg4yfp3TgHFA= -github.com/emersion/go-imap v1.2.0/go.mod h1:Qlx1FSx2FTxjnjWpIlVNEuX+ylerZQNFE5NsmKFSejY= -github.com/emersion/go-message v0.15.0/go.mod h1:wQUEfE+38+7EW8p8aZ96ptg6bAb1iwdgej19uXASlE4= -github.com/emersion/go-sasl v0.0.0-20200509203442-7bfe0ed36a21 h1:OJyUGMJTzHTd1XQp98QTaHernxMYzRaOasRir9hUlFQ= -github.com/emersion/go-sasl v0.0.0-20200509203442-7bfe0ed36a21/go.mod h1:iL2twTeMvZnrg54ZoPDNfJaJaqy0xIQFuBdrLsmspwQ= -github.com/emersion/go-textwrapper v0.0.0-20200911093747-65d896831594/go.mod h1:aqO8z8wPrjkscevZJFVE1wXJrLpC5LtJG7fqLOsPb2U= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= @@ -178,8 +162,6 @@ github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1 github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c/go.mod h1:XDJAKZRPZ1CvBcN2aX5YOUTYGHki24fSF0Iv48Ibg0s= github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a h1:pa8hGb/2YqsZKovtsgrwcDH1RZhVbTKCjLp47XpqCDs= github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= @@ -209,6 +191,10 @@ github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7Jul github.com/yunify/qingstor-sdk-go v2.2.15+incompatible/go.mod h1:w6wqLDQ5bBTzxGJ55581UrSwLrsTAsdo9N6yX/8d9RY= go.mongodb.org/mongo-driver v1.7.2 h1:pFttQyIiJUHEn50YfZgC9ECjITMT44oiN36uArf/OFg= go.mongodb.org/mongo-driver v1.7.2/go.mod h1:Q4oFMbo1+MSNqICAdYMlC/zSTrwCogR4R8NzkI+yfU8= +gogs.inhome.blapointe.com/local/logb v0.0.0-20230410154319-880efa39d871 h1:cMGPiwvK/QGg4TfW8VasO6SsS/O7UQmwyKDErV/ozoA= +gogs.inhome.blapointe.com/local/logb v0.0.0-20230410154319-880efa39d871/go.mod h1:E0pLNvMLzY0Kth1W078y+06z1AUyVMWnChMpRFf4w2Q= +gogs.inhome.blapointe.com/local/storage v0.0.0-20230410162102-db39d7b02e29 h1:SPSz7yQsEfScqyLlBS5uNSOGeT203BkIkFCL8jrm/FA= +gogs.inhome.blapointe.com/local/storage v0.0.0-20230410162102-db39d7b02e29/go.mod h1:zk8Fe2Ezc2f6oOe2yllsbEhXqssUU1K2faoS0eQ9alY= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -247,8 +233,9 @@ golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7VEz+7w9tdXTPOZ7+l4= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 h1:nonptSpoQ4vQjyraW20DXPAglgQfVnM9ZC6MmNLMR60= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/main.go b/main.go index e9edbfb..437221a 100644 --- a/main.go +++ b/main.go @@ -4,11 +4,11 @@ import ( "bytes" "encoding/json" "fmt" - "local/storage" - "local/truckstop/broker" - "local/truckstop/config" - "local/truckstop/logtr" - "local/truckstop/message" + "gogs.inhome.blapointe.com/local/storage" + "gogs.inhome.blapointe.com/local/truckstop/broker" + "gogs.inhome.blapointe.com/local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/logtr" + "gogs.inhome.blapointe.com/local/truckstop/message" "net/http" "net/url" "regexp" diff --git a/main_test.go b/main_test.go index 9cd3381..5d39b50 100644 --- a/main_test.go +++ b/main_test.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/config" "os" "testing" ) diff --git a/message/images.go b/message/images.go index 7dfd609..0860d70 100644 --- a/message/images.go +++ b/message/images.go @@ -6,8 +6,8 @@ import ( "errors" "fmt" "io/ioutil" - "local/truckstop/config" - "local/truckstop/logtr" + "gogs.inhome.blapointe.com/local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/logtr" "mime/multipart" "net/http" "net/url" diff --git a/message/images_test.go b/message/images_test.go index 894e077..4b2adc2 100644 --- a/message/images_test.go +++ b/message/images_test.go @@ -2,7 +2,7 @@ package message import ( "io/ioutil" - "local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/config" "os" "testing" ) diff --git a/message/matrix.go b/message/matrix.go index f608d9f..9dcb5e1 100644 --- a/message/matrix.go +++ b/message/matrix.go @@ -5,8 +5,8 @@ import ( "crypto/tls" "fmt" "io/ioutil" - "local/truckstop/config" - "local/truckstop/logtr" + "gogs.inhome.blapointe.com/local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/logtr" "net/http" "regexp" "strings" diff --git a/message/matrix_test.go b/message/matrix_test.go index 4f4c687..22a8e77 100644 --- a/message/matrix_test.go +++ b/message/matrix_test.go @@ -2,7 +2,7 @@ package message import ( "io/ioutil" - "local/truckstop/config" + "gogs.inhome.blapointe.com/local/truckstop/config" "os" "path" "testing" diff --git a/todo.yaml b/todo.yaml index f7af19a..0b2a99f 100644 --- a/todo.yaml +++ b/todo.yaml @@ -45,7 +45,7 @@ done: - pause until => !busy until - todo: maps of to+from to get location within state via api details: | - curl 'https://maps.googleapis.com/maps/api/staticmap?center=Advance,NC&markers=label=A|Advance,NC&zoom=5&size=250x250&scale=2&format=jpeg&maptype=roadmap&key=AIzaSyBkACm-LQkoSfsTO5_XAzBVZE9-JQzcNkg' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0' -H 'Accept: image/avif,image/webp,*/*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'DNT: 1' -H 'Alt-Used: maps.googleapis.com' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: image' -H 'Sec-Fetch-Mode: no-cors' -H 'Sec-Fetch-Site: cross-site' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: trailers' > whatever.jpg; open whatever.jpg~/Go/src/local/truckstop + curl 'https://maps.googleapis.com/maps/api/staticmap?center=Advance,NC&markers=label=A|Advance,NC&zoom=5&size=250x250&scale=2&format=jpeg&maptype=roadmap&key=AIzaSyBkACm-LQkoSfsTO5_XAzBVZE9-JQzcNkg' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0' -H 'Accept: image/avif,image/webp,*/*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'DNT: 1' -H 'Alt-Used: maps.googleapis.com' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: image' -H 'Sec-Fetch-Mode: no-cors' -H 'Sec-Fetch-Site: cross-site' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: trailers' > whatever.jpg; open whatever.jpg~/Go/src/gogs.inhome.blapointe.com/local/truckstop subtasks: - DONE; yandex; key 9baa3e42-c6e5-4eb5-a891-05ffcede6a25 yandex maps - google; key AIzaSyBkACm-LQkoSfsTO5_XAzBVZE9-JQzcNkg @@ -75,4 +75,4 @@ done: - parse jobs - gather jobs - read states -- read email to state file from local/sandbox/contact/contact +- read email to state file from gogs.inhome.blapointe.com/local/sandbox/contact/contact diff --git a/zip/zip.go b/zip/zip.go index 1dbba4f..760ce88 100644 --- a/zip/zip.go +++ b/zip/zip.go @@ -2,7 +2,7 @@ package zip import ( _ "embed" - "local/truckstop/logtr" + "gogs.inhome.blapointe.com/local/truckstop/logtr" "math" "strconv" "strings"