@b0rk@jvns.ca avatar

b0rk

@b0rk@jvns.ca

programming and exclamation marks

I have DMs muted from people I don’t follow.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

b0rk, (edited ) to random
@b0rk@jvns.ca avatar

in git, what ways are there to "lose" a commit in a way that you CAN'T recover using the reflog (so that you need to iterate over every single commit in the repository if you want to find it?

The only ways I know (using git's normal tools) are:

  • using git stash drop or git stash pop to drop a stashed commit
  • waiting 90+ days to try to recover the commit (so that it expires from the reflog)
  • explicitly deleting the reflog in some way (rm -rf .git, git reflog expire, etc)
b0rk, (edited )
@b0rk@jvns.ca avatar

also: have you even run into a situation where git completely deleted a commit that you needed? (where it wasn't recoverable with the reflog or with git fsck)

only interested in things that have actually happened to you, not "this could theoretically happen if…”

I'm trying to think about whether there's any normal way for that to happen except if you completely delete your git repository.

b0rk,
@b0rk@jvns.ca avatar

@DerPumu those should be recoverable with the reflog I think? If they're not I'd be interested to know why not!

b0rk,
@b0rk@jvns.ca avatar

@bnut has that ever happened to you? i'm very aware of git gc but what I'm curious about is whether anyone has ever had a commit deleted by git gc that they cared about

b0rk,
@b0rk@jvns.ca avatar

@gwadej thanks this is a great (and terrifying) example

b0rk,
@b0rk@jvns.ca avatar

@bnut thank you!

b0rk, to random
@b0rk@jvns.ca avatar

pretty happy with how the table of contents for "How Git Works" is looking

(if you want to get an email when the zine comes out, you can sign up here: https://wizardzines.com/zine-announcements/)

b0rk,
@b0rk@jvns.ca avatar

@MartyFouts @airfive it’s for people who have been using git for a while but are still confused by it

b0rk, to random
@b0rk@jvns.ca avatar

I think a lot about how

  1. a lot of command line UIs are kind of bad
  2. building better UIs is great
  3. but taking the time to get comfortable with a bad UI has often really paid off for me
  4. I'll often keep using an older tool with a worse UI because it's more stable, or more actively maintained, or has more features, or has more examples available, or my friends use it
  5. it's still important to acknowledge that the UI is in fact bad even if I'm pretty comfortable with it now
b0rk,
@b0rk@jvns.ca avatar

@dvogel i'm not sure if I enjoy the process of learning them! i spent many years avoiding using tcpdump because I was intimidated by its UI

b0rk,
@b0rk@jvns.ca avatar

anyway i've been trying to summarize my relationship with git (which I love) in a single panel and this is where I landed today

b0rk,
@b0rk@jvns.ca avatar

@Scmbradley the rust compiler? it’s a project that needs to communicate a lot of very complex information and i think does a good job

also I think tools like grep and sort are good, they’re relatively simple and don’t have a lot of gotchas that I can think of

b0rk, to random
@b0rk@jvns.ca avatar

should we include stickers of this little Why Guy with print copies of the git zine?

b0rk,
@b0rk@jvns.ca avatar

@rcriii haha which one is that from?

twiggywan, to random

hi @b0rk , i contact you cuz ilike your blog.

I'm trying to investigate a kubectl port-forward issue going bad with firefox but working with chromium.
The pod i debug has a ssh daemon, and when using ssh portforward instead it works good with both browsers.

I tried asking on kubernetes slack but so far no response (https://kubernetes.slack.com/archives/C09NXKJKA/p1715347467541609)

Because it involves the browser, kubernetes,containerd i'm really lost where I should look for help. Could you pls give me pointers?

thanks

b0rk,
@b0rk@jvns.ca avatar

@twiggywan I'm pretty out of touch with kubernetes these days but I might try tcpdump (+ wireshark) to see how the firefox connections are different from the chromium ones

b0rk,
@b0rk@jvns.ca avatar

@twiggywan oh good point! what I'd try is to get the http request in the network tab with "copy as curl" in both browsers and replay them both on the command line

if one succeeds and one fails, then i'd put each one in a shell script and start removing headers until i can find the culprit

in theory they should be using the same tcp/ip implementation because that’s the OS's job, not the browser's job

b0rk,
@b0rk@jvns.ca avatar

@twiggywan amazing I'm so glad to hear that!

b0rk, (edited ) to random
@b0rk@jvns.ca avatar

if you’ve written code to interact with a USB device (in userspace, not in the kernel), what tools/learning resources did you use?

right now I’m thinking gousb (and Wireshark to spy on USB traffic) but I’ve never done this before

the USB device in question is a USB-to-Ethernet adapter on a Mac

b0rk,
@b0rk@jvns.ca avatar

@mjk thanks so much for the pointer to USB in a nutshell! I don’t know anything about USB so i’m very intimidated by libusb :)

b0rk,
@b0rk@jvns.ca avatar

@mjk my hope is that some of the wrapper libraries come with more beginner friendly examples but I haven’t tested that out yet

b0rk, (edited )
@b0rk@jvns.ca avatar

@mcr314 i want to send packets at layer 2 on Mac OS. In the past i’ve had a lot of problems with the OS intercepting the packets and closing my connections which is why I’m thinking of bypassing the OS as much as possible

b0rk,
@b0rk@jvns.ca avatar

@raggi interesting! the one I have is using NCM with my OS (according to Wireshark)

nasamuffin, to random
@nasamuffin@jorts.horse avatar

God what an overtime, my heart rate is still through the roof. Frankel rolling Intimidation 20s all night long.

b0rk,
@b0rk@jvns.ca avatar

@nasamuffin omg i was at that game in person and it was wild

b0rk, to random
@b0rk@jvns.ca avatar

I never noticed these little summaries systemd prints out when a service stops before, kind of fun.

("Consumed 18.941s CPU time, received 6.1M IP traffic, sent 170.3M IP traffic.”)

b0rk, to random
@b0rk@jvns.ca avatar

just got the technical review of the git zine back!! A few things to fix (and we still need to get the copy edit back) but we're getting so close to being done

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • DreamBathrooms
  • tester
  • InstantRegret
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • megavids
  • provamag3
  • lostlight
  • All magazines