Skip to content

Commit

Permalink
Fix typos (Velocidex#3757)
Browse files Browse the repository at this point in the history
Also remove outdated description from Server.Information.Clients
artifact.
  • Loading branch information
predictiple authored Sep 14, 2024
1 parent bdd8164 commit 8346ac1
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ UpdateCerts:
cp /etc/ssl/certs/ca-certificates.crt crypto/ca-certificates.crt
fileb0x crypto/b0x.yaml

# Use this to propare artifact packs at specific versions:
# Use this to prepare artifact packs at specific versions:
# First git checkout origin/v0.6.3
archive_artifacts:
zip -r release_artifacts_$(basename "$(git status | head -1)").zip artifacts/definitions/ -i \*.yaml
Expand Down
5 changes: 0 additions & 5 deletions artifacts/definitions/Server/Information/Clients.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ description: |
This artifact returns the total list of clients, their hostnames and
the last times they were seen.
We also include a list of usernames on this machine, as gathered by
the last Windows.Sys.Users artifact that was collected. Note that
the list of usernames may be outdated if that artifact was not
collected recently.
type: SERVER

sources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Server.Internal.ToolDependencies
description: |
An internal artifact that defines some tool
depenencies. Velociraptor releases for offline collector
dependencies. Velociraptor releases for offline collector

NOTE: Do not modify - this artifact is generated during build in magefile.go

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Server.Internal.ToolDependencies
description: |
An internal artifact that defines some tool
depenencies. Velociraptor releases for offline collector
dependencies. Velociraptor releases for offline collector
NOTE: Do not modify - this artifact is generated during build in magefile.go
Expand Down
4 changes: 2 additions & 2 deletions artifacts/definitions/Server/Slack/Clients/Online.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sources:
FROM clients(search="label:" + LabelGroup)
WHERE LastSeen < 300
LET send_massage = SELECT * FROM foreach(row=hits,
LET send_message = SELECT * FROM foreach(row=hits,
query={
SELECT client_id, Hostname, LastSeen, Content, Response
FROM http_client(
Expand All @@ -44,4 +44,4 @@ sources:
// Check every minute
SELECT * FROM foreach(
row={SELECT * FROM clock(period=60)},
query=send_massage)
query=send_message)
2 changes: 1 addition & 1 deletion bin/config_interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ What OS will the server be deployed on?
Websocket is a bidirectional low latency communication protocol supported by
most modern proxies and load balancers. This method is more efficient and
portable than plain HTTP. Be sure to test this in you environment.
portable than plain HTTP. Be sure to test this in your environment.
`,
}

Expand Down
8 changes: 4 additions & 4 deletions vql/functions/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ import (
)

type PatchFunctionArgs struct {
Item vfilter.Any `vfilter:"required,field=item,doc=The item to path"`
Patch vfilter.Any `vfilter:"optional,field=patch,doc=A JSON Patch to apply"`
Merge vfilter.Any `vfilter:"optional,field=merge,doc=A merge-patch to apply"`
Item vfilter.Any `vfilter:"required,field=item,doc=The item to patch"`
Patch vfilter.Any `vfilter:"optional,field=patch,doc=A JSON patch to apply"`
Merge vfilter.Any `vfilter:"optional,field=merge,doc=A merge patch to apply"`
}

type PatchFunction struct{}

func (self PatchFunction) Info(scope vfilter.Scope, type_map *vfilter.TypeMap) *vfilter.FunctionInfo {
return &vfilter.FunctionInfo{
Name: "patch",
Doc: "Patch a JSON object with a json patch.",
Doc: "Patch a JSON object with a JSON patch.",
ArgType: type_map.AddType(scope, PatchFunctionArgs{}),
}
}
Expand Down

0 comments on commit 8346ac1

Please sign in to comment.