463 karma · joined Mar 28, 2019 (7y ago) · 80 submissions
github.com/gh123man/ Blog - sb1.io
Currently hacking on dateit.io
comment 3d ago · link · parent
I experienced this problem with a macbook and a thunderbolt dock. I had tried multiple different brands of docks and ethernet adapters, and various macbooks. One interesting thing I discovered is if I plugged a non-thunderbolt cable between the dock and the laptop, I would achieve full speed with no packet loss, so interestingly the issue doesn't occur over pure USB but only over thunderbolt.
This has got to be a bug on Apple's side right? Would be nice if they fixed it.
comment 3mo ago · link · parent
comment 3mo ago · link · parent
So far, it's survived a few device firmware updates with no visible breaking changes, but I can't guarantee it always will.
comment 3mo ago · link · parent
https://github.com/gh123man/OpenSnek
Similar to other reverse engineering threads ive seen recently, AI is empowering us to replace crappy vendor software with something better.
Also - OpenSnek documents a mostly complete bluetooth spec for the Razer vendor protocol which as far as I know, hasn't been done anywhere else yet!
5.
Show HN: I vibe reverse engineered my Bluetooth mouse to support it on macOS(github.com ↗)
7 points · by gh123man · 8mo ago · 1 comment
comment 2y ago · link · parent
Sure Swift itself has some sharp edges, but not any more (or worse) than many other popular languages.
comment 2y ago · link · parent
comment 2y ago · link · parent
cat 1.txt | sed -E 's/(one)/\11\1/g; s/(two)/\12\1/g; s/(three)/\13\1/g; s/(four)/\14\1/g; s/(five)/\15\1/g; s/(six)/\16\1/g; s/(seven)/\17\1/g; s/(eight)/\18\1/g; s/(nine)/\19\1/g;' | sed -e 's/[^0-9]//g' | awk '{print substr($0,1,1) substr($0,length,1)}' | tr '\n' '+' | sed 's/\(.*\)+/\1\n/' | bccomment 3y ago · link · parent
I blotted up as much coffee as I could with some napkins and kept taking notes on the soaked keyboard. Worked like a charm. After drying it out, a few keys stopped working so I bought a replacement keyboard for ~$20 and swapping it out was rather fast (from memory).
I use an M1 MBP now, but I still have that thing in the basement. It still works, and I loved it. I don't miss carrying it around though (or the hilariously short battery life due to forcing discrete GPU mode so I could dock it for multiple monitors at home).
comment 3y ago · link · parent
I wanted a NUC, but as it turns out a used laptop on Ebay could fetch the same specs (i7-1185G7, 16gb) for less than half the price of the equivalent NUC (without an SSD or memory).
An added bonus is you get a UPS and KVM included!
comment 3y ago · link · parent
Cloud providers are forced to host mac instances on real mac hardware for example (with a lot of strange restrictions).
comment 3y ago · link · parent
The whole UX drives me mad.
comment 3y ago · link · parent
15.
Show HN: Go Concurrency Primitives in Swift(github.com ↗)
3 points · by gh123man · 3y ago · discuss
comment 3y ago · link · parent
I've been thinking about re-writing my raycasting engine in Rust but never really found the time - glad to see someone has done it and documented it so well!
If anyone else is interested in raycasting this page is also worth a read: https://lodev.org/cgtutor/raycasting.html
comment 3y ago · link · parent
One simple example - Serilog enrichment https://github.com/serilog/serilog/wiki/Enrichment
This does however assume your entire application uses the same logger. But this is generally a requirement in services that require tracing like this.
comment 4y ago · link · parent
Swift works great on Linux. You can install it manually, or use the official docker image. I prefer using docker and have had a great experience (both developing and deploying).
comment 4y ago · link · parent
comment 4y ago · link · parent
My app also uses firebase and SwiftUI with hundreds of files (views, view models, and more) with no problems.
comment 4y ago · link · parent
I find that I can deliver features and iterate much faster and that makes up for the time I spend fixing edge case bugs or bridging to UIKit when I need an unsupported feature.
comment 4y ago · link · parent
Date().advanced(by: .hours(2) + .seconds(10))
I'm honestly not sure why TimeInterval doesn't include this representation by default.1. https://developer.apple.com/documentation/dispatch/dispatcht...
comment 4y ago · link · parent
Some of the interesting bits of the engine are open source: https://github.com/gh123man/Portal-Raycaster
comment 4y ago · link · parent
I am also working on an app where hosting photos would be a nice feature - but the risk/undertaking without proper and potentially expensive infrastructure is daunting.
comment 4y ago · link · parent
*example.com/.well-known/acme-challenge/*
Disable Security, SSL: Off, Cache Level: Bypass, Automatic HTTPS Rewrites: Off
and one big gotcha: Under SSL/TLS -> Edge Certificates -> disable Always Use HTTPS
(assuming you are using the HTTP-01 challenge).