profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/Roguelazer/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
James Brown Roguelazer @EasyPost Berkeley, CA https://www.roguelazer.com Software and Systems Engineer. Currently at @EasyPost, formerly at @uber, @Yelp, and @google. Enjoys writing Python, Rust, C, and Puppet manifests.

Roguelazer/einotail 11

Like `tail -F` but with more epoll and inotify

Roguelazer/fakemtpd 7

a simple fake SMTP server for testing purposes

Roguelazer/aabot 6

An IRC bot that detects links to images and writes them back to IRC

Roguelazer/devpi 6

irrationally better

Roguelazer/eppipe 5

An epoll-based wrapper for terminating children when stdin closes

Roguelazer/cloudflare_exposure 2

New tooling to figure out what services I use use CloudFlare for HTTPS

Roguelazer/cwviz 2

Circuit Visualizer

Roguelazer/boto 1

Python interface to Amazon Web Services

Roguelazer/certified 1

Generate and manage an internal CA for your company

Roguelazer/cheetah 1

Cheetah, the Python-powered templating engine

issue openedhtop-dev/htop

htop 3.1.0 bumps required glibc and libcap versions without updating documentation

htop 3.1.0 removes the workaround from 8149823d56653b7d23397a235edb609b358ff17d, so it now requires glibc 2.14 to build for the O_PATH definition. This is easy enough to fix by re-applying that patch (or by noting a glibc 2.14 minimum requirement in the README, I suppose).

It also requires the defined constant CAP_IS_SUPPORTED which requires libcap 2.21 or later. This is also not documented anywhere.

created time in 2 days

issue openedhtop-dev/htop

3.1.0 fails to build: No rule to make target `.deps/htop.Po`

Version 3.1.0 fails to build with the following output:

+ /usr/bin/make -j4
Makefile:1196: .deps/htop.Po: No such file or directory
make: *** No rule to make target `.deps/htop.Po'.  Stop.
error: Bad exit status from /var/tmp/rpm-tmp.KcAnPo (%build)

This is from just downloading the release tarball, running ./autogen.sh, running ./configure and running make.

I notice that the file .deps/$(myhtopplatprogram).Po does exist, and running mv .deps/$(myhtopplatprogram).Po .deps/htop.Po after ./configure fixes the error, so maybe there's some issue where a variable isn't being interpolated correctly?

created time in 2 days

push eventEasyPost/query_builder

James Brown

commit sha d54c51aa28ffa569dd04a2d0c8c600c140ed5590

fix query_builder to encode timestamps correctly

view details

push time in 7 days

push eventEasyPost/query_builder

James Brown

commit sha 18db1b0ea6d51e7cd45cac6309e0ea9b42f39755

fix query_builder to encode timestamps correctly

view details

push time in 7 days

PR opened nepalez/query_builder

fix query_builder to encode timestamps correctly

In Cassandra 4, the parser for time values (for TIMESTAMP columns) is stricter and no longer allows a space between the seconds part and the zone offset.

+15 -1

0 comment

3 changed files

pr created time in 7 days

create barnchEasyPost/query_builder

branch : timey-wimey-upstream

created branch time in 7 days

PR opened EasyPost/query_builder

Reviewers
fix query_builder to encode timestamps correctly

In Cassandra 4, the parser for timestamps is stricter and no longer allows a space between the seconds part and the zone offset.

+17 -1

0 comment

3 changed files

pr created time in 7 days

create barnchEasyPost/query_builder

branch : timey-wimey

created branch time in 7 days

PR opened datastax/ruby-driver

fix time encoding

The default Ruby .to_s method for a Time results in output of %Y-%m-%d %H:%M:%S %z; note the space between the seconds and the time offset.

In Cassandra 4.0, the validator for the TIMESTAMP column type is stricter and there cannot be a space between the fractional part and the timezone offset and it must match the format yyyy-mm-dd[(T| )HH:MM:SS[.fff]][(+|-)NNNN].

+1 -1

0 comment

1 changed file

pr created time in 7 days

create barnchEasyPost/ruby-driver

branch : fix_time

created branch time in 7 days

pull request commentgrafana/grafana

Auth: implement auto_sign_up for auth.jwt

@pkolyvas it looks like this is blocked on your review?

Roguelazer

comment created time in 7 days

issue openedkeybase/keybase-issues

Keybase for Mac arm64 build?

Are there any plans to have an arm64 / Apple Silicon build for the Keybase Mac app? Particularly for KBFS it would be nice to have a native arm64 Finder extension instead of an x86-64 FUSE module...

created time in 12 days

pull request commentEasyPost/easypost-csharp

add basic github workflow using dotnet 2.2.*

Now that github supports windows instances for Actions, we should be able to build this with the native SDKs.

Roguelazer

comment created time in 15 days

issue openedonsails/vimway-lsp-diag.nvim

Auto-open quickfix list on errors?

Forgive me if I'm missing something obvious, but is there an easy way when using this plugin to have the quickfix list open automatically when there are errors? Something like neomake's behavior?

created time in 20 days

PR opened ckarageorgkaneen/pystatx

add pypi packaging
+50 -1

0 comment

2 changed files

pr created time in 22 days

create barnchEasyPost/pystatx

branch : issue-2

created branch time in 22 days

issue openedckarageorgkaneen/pystatx

PyPI

Any objections to putting this on PyPI? I'm glad to send over a pull request with a setup.py if you'd like

created time in 22 days

pull request commentdaboross/fern

Add feature for syslog5

Any way we can help move this forward? I would very much like this feature.

Cogitri

comment created time in a month

pull request commentEasyPost/ezpool

feat: allow connection users to expire connections

Changing this to a delegator is a breaking change in case any conn had a shadowed method (like shutdown!)...

lanej

comment created time in a month

issue closedtower-rs/tower-http

SetResponseHeaderLayer et al are hard to use with literal HeaderValues

Bug Report

Version

0.1.1

Platform

Linux

Description

SetResponseHeaderLayer (and associated functions) use the MakeHeaderValue trait for the value. This is implemented on HeaderValue itself (for setting a constant) but I'm at a loss for how to use it because of the unrestricted type T in its generic signature

Given this Axum code:

    let hostname = HeaderValue::from_static("example");

    let app = Router::new()
        .route("/v1/ok", get(handle_ok))
        .layer(tower_http::set_header::SetResponseHeaderLayer::overriding(
            "x-hostname".parse().unwrap(),
            hostname,
        ));

Compilation fails with:

error[E0282]: type annotations needed
   --> src/main.rs:198:16
    |
198 |         .layer(tower_http::set_header::SetResponseHeaderLayer::overriding(
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `T`

I have no idea how to pass this type. It's not constrained in the docs and I don't even know what it //is//.

closed time in a month

Roguelazer

issue commenttower-rs/tower-http

SetResponseHeaderLayer et al are hard to use with literal HeaderValues

I almost think it might make sense to just have a non-generic version of the Layer that takes a constant?

Roguelazer

comment created time in a month

issue openedtower-rs/tower-http

SetResponseHeaderLayer et al are hard to use with literal HeaderValues

Bug Report

Version

0.1.1

Platform

Linux

Description

SetResponseHeaderLayer (and associated functions) use the MakeHeaderValue trait for the value. This is implemented on HeaderValue itself (for setting a constant) but I'm at a loss for how to use it because of the unrestricted type T in its generic signature

Given this Axum code:

    let hostname = HeaderValue::from_static("example");

    let app = Router::new()
        .route("/v1/ok", get(handle_ok))
        .layer(tower_http::set_header::SetResponseHeaderLayer::overriding(
            "x-hostname".parse().unwrap(),
            hostname,
        ));

Compilation fails with:

error[E0282]: type annotations needed
   --> src/main.rs:198:16
    |
198 |         .layer(tower_http::set_header::SetResponseHeaderLayer::overriding(
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `T`

I have no idea how to pass this type. It's not constrained in the docs and I don't even know what it //is//.

created time in a month

Pull request review commentEasyPost/ezpool

feat: allow connection users to expire connections

 def initialize(conn, connection_manager)     @raw_conn = conn     @created_at = EzPool.monotonic_time     @manager = connection_manager+    @expired = false   end    # Shut down the connection. Can no longer be used after this!   def shutdown!     @manager.disconnect(@raw_conn)   end +  def expire!+    @expired = true+  end+   def age-    EzPool.monotonic_time - @created_at+    EzPool.monotonic_time - @created_at || @expired == true

this doesn't make much sense to me; age returns an integer which is compared against max_age.

Maybe you want to change the expired? method in EzPool to check the expired property of the connection wrapper?

lanej

comment created time in a month

PullRequestReviewEvent

pull request commentcloudhead/nonempty

implement DoubleEndedIterator, ExactSizeIterator, and FusedIterator for the return value of NonEmpty::iter()

Renamed as requested

It would perhaps make sense at some point to move this to nonempty::vec::{Iter,NonEmpty} and re-export it from lib.rs...

Roguelazer

comment created time in a month

push eventRoguelazer/nonempty

James Brown

commit sha 512f6365082c4f2e6c646fc82174f75d26ae55c5

NonEmptyIter -> Iter

view details

push time in a month

push eventRoguelazer/nonempty

James Brown

commit sha 6b55daedf30cac0353cbb1b69e63383518b8559f

apply review feedback; fix clippies and rustfmt

view details

push time in a month

push eventEasyPost/rust-forwarded-header-value

James Brown

commit sha 5da7789b73de7494bb34af846c8a051597fbe26b

bump to v0.1.1

view details

push time in a month

created tagEasyPost/rust-forwarded-header-value

tagv0.1.1

Parser for the Forwarded HTTP header

created time in a month

push eventEasyPost/rust-forwarded-header-value

James Brown

commit sha ad77f7ba6ae3dd32544ca3e7cd093491f78bcda2

fix some clippies

view details

James Brown

commit sha dc9bfd2f8eac513139c4f77fd3f9d76e89239daf

add more badges to README

view details

push time in a month