docwhat

docwhat

Member Since 13 years ago

Pittsburgh, PA

Experience Points
80
follower
Lessons Completed
34
follow
Lessons Completed
209
stars
Best Reply Awards
129
repos

1388 contributions in the last year

Pinned
⚡ DEPRECATED: rbenv plugin for ChefDK
⚡ My personal dotfiles
⚡ A tool that hides output unless the command fails; now in Go!
⚡ The missing docker garbage collector
Activity
May
16
2 days ago
push

docwhat push docwhat/dotfiles

docwhat
docwhat

get rg from vscode pre-builts

docwhat
docwhat

zi: do not use command alias

commit sha: 8da4d4d9da2b0a93761a57a0d1eef0f1e1a3d5d2

push time in 1 day ago
Apr
23
3 weeks ago
push

docwhat push docwhat/dotfiles

docwhat
docwhat

fix man pages for fd, exa, and lsd

commit sha: a143d82da7d6a0753954c235b03e65e4145bdfc5

push time in 3 weeks ago
Apr
19
4 weeks ago
push

docwhat push docwhat/docwhat

docwhat
docwhat

commit sha: 7e016757fd9f6cd02f7b6bc2e3bf87cc255623c1

push time in 4 weeks ago
Apr
13
1 month ago
push

docwhat push docwhat/dotfiles

docwhat
docwhat

git: cleaned up aliases a little

commit sha: a44ace885af6cfc62d3528d88554e1f852aacb9c

push time in 1 month ago
Activity icon
issue

docwhat issue comment zdharma-continuum/zinit

docwhat
docwhat

gh-r isn't searching for Apple Silicon compatible binaries correctly.

On my new M1 MacBookPro...

The gh-r ice isn't correctly grabbing the right binary packages that are using platform strings like x86_64-apple-darwin (usually Rust apps in my experience). e.g. ripgrep, git-delta, fd, led, and bat.

It's usually finding the linux arm binaries instead.

Here are my environment variables from zsh installed via Home-brew which is version zsh 5.8 (arm-apple-darwin21.1.0):

CPUTYPE=arm64
MACHTYPE=arm
OSTYPE=darwin21.1.0

When using /bin/zsh which is zsh 5.8 (x86_64-apple-darwin21.0):

CPUTYPE=arm64
MACHTYPE=x86_64
OSTYPE=darwin21.0
# An example command to cause the issue(s) in question.
zinit wait lucid for \
  from'gh-r' \
  as'program' \
  mv'lsd* -> lsd' \
  pick'lsd/lsd' \
  @Peltoche/lsd

I suspect the way to deal with this is to detect that it is an M1 macOS system and do an arm check then an intel type.

I don't think moving the CPUTYPE up in .zinit-get-latest-gh-r-url-part would be enough. Plus MACHTYPE won't check for amd64 unless it is /bin/zsh. A native zsh won't have any indication that it has Rosetta 2 installed and can handle amd64 binaries.

Yes, I can do experiments for you. :smiley:

docwhat
docwhat

Cool. I don't have the time or brain spoons to look into this right now, but I subscribed to #201

Apr
12
1 month ago
push

docwhat push docwhat/docwhat

docwhat
docwhat

fix: hide_server_tokens requires a module I dont have

commit sha: 5eec314a710354d6e9be14210e7241dcc0b6b434

push time in 1 month ago
push

docwhat push docwhat/docwhat

docwhat
docwhat

style: ignore hadolint suggestion to clean yarn cache

docwhat
docwhat

style: remove deprecated docker container labels

commit sha: 6070f6c1355339cac659b2a4028f80f9b16f0327

push time in 1 month ago
Apr
1
1 month ago
Mar
30
1 month ago
Mar
29
1 month ago
pull request

docwhat merge to docwhat/bug-example-dependabot

docwhat
docwhat

Bump gopkg.in/DataDog/dd-trace-go.v1 from 1.32.0 to 1.37.0

Bumps gopkg.in/DataDog/dd-trace-go.v1 from 1.32.0 to 1.37.0.

Release notes

Sourced from gopkg.in/DataDog/dd-trace-go.v1's releases.

1.37.0

This release comes with the new AppSec capability to monitor the parsed HTTP body thanks to a new public appsec package. This package provides a function - appsec.MonitorParsedHTTPBody() - that should be called from within your http request handlers with the parsed http body payload, such as returned by json.Unmarshal(), proto.Unmarshal() or any other parser. It also introduces support for the web framework gin, as well as the latest AppSec security rules which include the new OGNL & Cassandra injection detections.

Additionally, this update provides a new user monitoring tracing function - tracer.SetUser() - allowing to associate user attributes to a trace. This allows to add user context to traces which can then be leveraged by Datadog's monitoring, for example by identifying the user of an AppSec attack.

The profiler's code hotspots and endpoints is now enabled by default in order to connect APM traces and profiles.

Note that dd-trace-go's go.mod file has been updated to now include every dependency required by dd-trace-go and its integrations. It now lists the minimum secure versions required, according to the Go module registry of vulnerabilities.

Features

  • all: commit full go.mod and go.sum files (#1188)

APM

  • contrib/database/sql: fix support for drivers using deprecated interfaces (#1167)
  • contrib/database/sql: trace connection time (#1154)
  • contrib/gorilla/mux: provide a new function wrapper for gorilla router (#1175)
  • contrib/segmentio/kafka-go: add tracing for kafka writer and reader (#1152)
  • ddtrace/tracer: overall CPU & memory performance improvements (#1184, #1160, #1186, #1134, #1183)
  • ddtrace/tracer: Add B3 flag to PropagatorConfig (#1148)
  • ddtrace/tracer: provide a new user monitoring tracing function to associate a user to a trace (#1196)
  • ddtrace/tracer: disable Datadog internal tag propagation (#1182)
  • ddtrace/tracer: fix a bug with the x-datadog-tags header parser (#1155)
  • ddtrace/tracer: fix top_level computation with DD_SERVICE_MAPPING (#1150)

AppSec

  • contrib/gin-gonic: add AppSec monitoring of http requests and responses (#1165)
  • contrib/google.golang.org/grpc: monitor grpc metadata headers (#1190)
  • contrib/labstack/echo.v4: fix http response monitoring (#1177)
  • appsec: provide a new function to monitor the parsed http body (#1178)
  • internal/appsec/waf: fix the parsing of AppSec security rules (#1189)
  • internal/appsec: update the security rules to v1.2.6, including new OGNL & Cassandra injections and various improvements (#1191)

Profiler

  • profiler, ddtrace/tracer: enable code hotspots & endpoints by default with 100% CPU profiling (#1169)
  • profiler: don't upload full profiles if delta profiling is enabled (#1187)
  • profiler: Inc DefaultBlockRate from 10µs to 100ms (#1192)

v1.36.2

This release contains a small patch that disables service propagation in the Tracer.

ddtrace/tracer: disable Datadog internal tag propagation (#1182)

To view the changes check out the list of commits

v1.36.0

This version comes with the Application Security (AppSec) public beta which includes a broader security coverage of HTTP servers, now also extended to gRPC servers. It is powered by new security rules that allow monitoring the OWASP Top 10 attack attempts, such as SQL injections, Log4Shell and Server-Side Request Forgeries.

It also includes many APM tracing improvements, along with a fix for a regression introduced in v1.35.0.

... (truncated)

Commits
  • 2f579f3 appsec: use std context package (#1214)
  • 58fe681 FAQ.md: add link to PR about measuring spans (#1113)
  • 0c1b381 go.mod: downgrade to sqlx v1.2.0 (#1208)
  • 133f3d9 contrib/google.golang.org/grpc: monitor grpc metadata headers (#1190)
  • 9d4a5d1 go.mod: update github.com/gin-gonic/gin to v1.7.0 (#1204)
  • 5b43087 ddtrace/tracer: don't use UTC() when getting time (#1134)
  • c47da55 ddtrace/tracer.StartSpan: Use setMeta instead of SetTag (#1160)
  • 5b114be ddtrace/tracer: Remove log.Debug from hot path (-2 allocs; -5% CPU) (#1186)
  • 7c11ba8 contrib/google.golang.org/grpc: Reduce allocs in interceptor (#1183)
  • 7d066c1 ddtrace/tracer.Measured(): Cache a global instance (save 1 alloc/call) (#1184)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
push

docwhat push docwhat/dotfiles

docwhat
docwhat

kubectl: cp needed for cross-device

commit sha: bc38f708eb215adbafad925fd6040805352810cb

push time in 1 month ago
Mar
25
1 month ago
push

docwhat push docwhat/dotfiles

docwhat
docwhat

doc: explain why someone should use whats_listening

commit sha: 184e205f37e49d9aa4524c00a46bc7379900e904

push time in 1 month ago
Mar
24
1 month ago
push

docwhat push docwhat/dotfiles

docwhat
docwhat

feat: whats_listening now works on Ubuntu 20.x

commit sha: 3d208ca3a4e5dbb90e00e661d1484d6efe8418de

push time in 1 month ago
push

docwhat push docwhat/dotfiles

docwhat
docwhat

feat: whats_listening tool for listing network listeners

commit sha: 7a2955ed2220f5df5dedafe1f7bc7aae6ad30c63

push time in 1 month ago
Mar
21
1 month ago
pull request

docwhat merge to starship/starship

docwhat
docwhat

feat(directory): Directory enhancements

Description

This pull request provides a number of enhancements to the display of directory strings.

Full Disclosure: This pull request depends on the stylish-stringlike crate, of which I am the author.

Directory Fitting

Directories can be shrunk to fit in an available terminal width. For example, the path some-random-arbitrarily-long-path/with/segments can be automatically shrunk to some-ran…ng-path/with/segments. New configuration variables fit_width, fit_style, and fit_symbol are introduced to control this behavior.

Styled Substitution

Style strings in [directory.substitutions] are expanded.

Regular Expression Substitution

Regular expressions (with back-referencing) are supported through [directory.substitution_regexes], and style strings in the replacement text are expanded.

Path Delimiter Specification

A new configuration variable delimiter is provided. This is required in order for the directory fitting to not truncate on path delimiters.

Motivation and Context

Closes #1837 Closes #1840 Closes #2452.

Styled substitutions make path delimiters easier to see. Automatic fitting of paths can provide more flexibility if users want as much context as possible without overflowing the terminal, or if they have unfortunately long folder names.

Screenshots (if appropriate):

image image

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux
  • I have tested using Windows

I have tested this on Linux Mint using the Tilix terminal running zsh. I have also run the test suite on Windows.

I have updated the call signature for the modules::utils::directory::truncate function to be generic over objects that are Splittable and Pushable (which String implements), and to require a delimiter argument. Corresponding function calls in the conda module have been updated for this reason.

Checklist:

  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.
docwhat
docwhat

Lots of good stuff in here.

Mar
16
2 months ago
push

docwhat push docwhat/temple

docwhat
docwhat

docs: reformat badges again

commit sha: c73344b285f1bb649061f3f6a6491262bb82ac8e

push time in 2 months ago
push

docwhat push docwhat/temple

docwhat
docwhat

docs: re-order badges in readme

commit sha: 4c0ec82a1fd771777475ffd337ef0b2e84d36581

push time in 2 months ago
Activity icon
delete

docwhat in docwhat/temple delete branch renovate/actions-checkout-3.x

deleted time in 2 months ago
Activity icon
delete

docwhat in docwhat/temple delete branch vgo

deleted time in 2 months ago
Activity icon
delete

docwhat in docwhat/temple delete branch renovate/actions-setup-go-3.x

deleted time in 2 months ago
Activity icon
delete

docwhat in docwhat/temple delete branch pr/modernize

deleted time in 2 months ago
Activity icon
delete

docwhat in docwhat/temple delete branch feature/goreleaser

deleted time in 2 months ago
Previous