Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bswinnerton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
Help Me with Money
(helpmewith.money)
4 points
by
bswinnerton
3y ago
|
2 comments
2.
▲
Upgrading GitHub.com to MySQL 8.0
(github.blog)
38 points
by
bswinnerton
3y ago
|
12 comments
3.
▲
by
bswinnerton
3y ago
Here's a simpler alternative with IP Guide that doesn't require a CLI: curl -sL ip.guide/AS19551 | jq .routes
4.
▲
by
bswinnerton
3y ago
I'd also suggest filing a correction with MaxMind, which is where most modern geolocation data is derived: https://www.maxmind.com/en/geoip-location-correction .
5.
▲
by
bswinnerton
3y ago
Great idea. This is rolling out right now.
6.
▲
by
bswinnerton
3y ago
It's not available from the API, but there is a "last updated" date when you view it in a browser. It's at most 8 hours old.
7.
▲
by
bswinnerton
3y ago
For the backend, it's written in Rust using a few key crates: axum for the api, bgpkit-parser for parsing the MRT data, and reqwest for fetching data at boot. The site is hosted on Neptune Networks, another side project of mine for peo
8.
▲
by
bswinnerton
3y ago
You'll have to follow the redirects since the site doesn't support HTTP, but just shipped pretty-printing.
9.
▲
by
bswinnerton
3y ago
No rate limits or auth for requests, but as mentioned below the api starts to load shed at 2k concurrent requests.
10.
▲
by
bswinnerton
3y ago
> Will this be open-sourced? I don't think there's a strong reason to keep it closed-source. > Were you already comfortable in Rust or is there a reason you selected Rust for this project? This was a big learning opportunity
11.
▲
by
bswinnerton
3y ago
The country code is the last portion of the networks CSV: $ curl -sL ip.guide/bulk/networks.csv | head -n 2 prefix,asn,organization,country 1.0.0.0/24,13335,"Cloudflare, Inc.",US
12.
▲
by
bswinnerton
3y ago
IP Guide is also using MaxMind, I'm not familiar with many other data sources for that kind of data. Are you seeing discrepancies? No rate limits or auth for requests, but as mentioned below the api starts to load shed at 2k concurrent
13.
▲
by
bswinnerton
3y ago
Yeah, if you click on "bulk data" you'll see the two statically hosted CSVs for ASN and IP data. What else would you find useful in those datasets? It's quite easy to expand on them.
14.
▲
by
bswinnerton
3y ago
Oh cool! Is this a fork of ifconfig.co?
15.
▲
by
bswinnerton
3y ago
Yes! Quite easily, but it requires thinking through the right API design. I'll see if I can work this in this weekend.
16.
▲
by
bswinnerton
3y ago
Great feedback, I'll add a little more to the site to describe how it all works. Until then... At a 30,000ft view, the site works by building an in-memory routing table at boot time that has an entry for every route on the internet and
17.
▲
by
bswinnerton
3y ago
> Having a simple paragraph about RIPE, BGP and ARIN would be helpful (at least for me). That's a great idea. I'll add a tooltip over some of the less obvious fields describing what they are. > Is there any way at all to do
18.
▲
by
bswinnerton
3y ago
I do that every. single. time.
19.
▲
by
bswinnerton
3y ago
Go for it! There's no formal rate limiting or auth, but it does start to load shed at 2k concurrent requests. It's stateless, so it's very easy to scale horizontally after that. LoginLlama looks super helpful, what else would
20.
▲
Show HN: IP Guide – Info on IP addresses, Networks, and ASNs
(ip.guide)
363 points
by
bswinnerton
3y ago
|
99 comments
21.
▲
by
bswinnerton
4y ago
Repository contents aren’t “sent” to China, companies like Tencent specify the shape of tokens to GitHub and GitHub does the scanning and then notifies Tencent to revoke the token if one is found.
22.
▲
by
bswinnerton
4y ago
These are known as GitHub apps and were designed to address this problem. https://docs.github.com/en/developers/apps/getting-started-w...
23.
▲
by
bswinnerton
4y ago
https://docs.github.com/en/developers/apps/getting-started-w...
24.
▲
by
bswinnerton
5y ago
It can be relatively inexpensive, depending on which RIR you’re using. There are providers like [Neptune Networks]( https://neptunenetworks.org/ ) or [Vultr]( https://www.vultr.com/ ) that you can peer with fro
25.
▲
Hunting down the stuck BGP routes
(blog.benjojo.co.uk)
222 points
by
bswinnerton
5y ago
|
32 comments
26.
▲
BIRD’s Journey to Threads
(en.blog.nic.cz)
2 points
by
bswinnerton
6y ago
|
0 comments
27.
▲
by
bswinnerton
6y ago
Before every deploy your branch has master merged into it. There’s some clever work by Hubot while you’re in line to deploy to create a version of your branch that has the potential new master / main branch. If conflicts arise you fix
28.
▲
by
bswinnerton
6y ago
This is known as “GitHub Flow” ( https://guides.github.com/introduction/flow/ ). I was pretty surprised by it when I first joined GitHub but I’ve grown to love it. It makes rolling back changes much faster than havi
29.
▲
by
bswinnerton
6y ago
Not on that page, no, but you could easily fetch this information via the GraphQL API.
30.
▲
by
bswinnerton
6y ago
Oh sorry, I should have clarified it’s GraphQL “under the hood” (backend). Most of GitHub is a Rails app, and in the case of the commits page, the controller makes a GraphQL query, and then takes the results and injects it into the view, al
More ›