Better HN
topnewbestaskshowjobs
Log inSign up

p0cc

187 karma · joined Apr 7, 2018 (8y ago) · 47 submissions

Network Engineer and Software Enthusiast

web : swit.sh email : rj[АТ]swit.sh

Submissions

comment 4y ago · link · parent

Cheeky. I love it!

SSL was the latest standard until 1999, when TLS 1.0 was released.

Per RFC 2246 [0], "The differences between this protocol [TLS 1.0] and SSL 3.0 are not dramatic, but they are significant enough to preclude interoperability between TLS 1.0 and SSL 3.0"

SSL/TLS Versions 1995-present: https://en.wikipedia.org/wiki/Transport_Layer_Security#Histo...

[0]: https://datatracker.ietf.org/doc/html/rfc2246

comment 4y ago · link · parent

I was excited to see how they got Cloudflare's origin server IP address:

            if cmd in ["CFIP", "DNS"]:
                print("Soon")
                continue
Looks like I'll have to wait :/

comment 4y ago · link · parent

If you are a techie living in California, contact Diane Feinstein, who is one of the co-sponsors of EARN IT.

You can contact her here: https://www.feinstein.senate.gov/public/index.cfm/contact

---

Senate Press Release on this topic: https://www.judiciary.senate.gov/press/rep/releases/graham-b...

comment 4y ago · link · parent

Check https://www.cloudflarestatus.com/

comment 4y ago · link · parent

This clicks with me more than SICP with Scheme. Skimming through it, I like the example using a recursive summation function to approximate the integral of a cubic.

6.

Geoduck – A burrowing clam that can live 140 years(en.wikipedia.org ↗)

2 points · by p0cc · 4y ago · discuss

comment 4y ago · link · parent

https://en.wikipedia.org/wiki/FSO_Safer

This is a disaster waiting to happen. If it spilled, it would disrupt the Suez Canal and jeopardize the livelihoods of 1.7 million people who depend on fish.

comment 4y ago · link · parent

Thanks for sharing. Hearing it spoken aloud highlights how the numbers flow into each other, almost like the letters LMNO in the alphabet.

9.

Yan tan tethera: A Celtic sheep-counting system(en.wikipedia.org ↗)

12 points · by p0cc · 4y ago · 2 comments

comment 4y ago · link · parent

@zeebeecee In word.js, why do you have a list of `impossibleWords`? Many of them are valid English words, like FEARS.

comment 4y ago · link · parent

These are the five SSL options for a Cloudflare website [0]:

1. No SSL: User <--HTTP--> Cloudflare <--HTTP--> Origin Server

2. Flexible SSL: User <--HTTPS--> Cloudflare <--HTTP--> Origin Server

3. Full SSL: User <--HTTPS--> Cloudflare <--HTTPS--> Origin Server; Self-signed cert ok, expired cert ok

4. Full SSL (strict): User <--HTTPS--> Cloudflare <--HTTPS--> Origin Server; Origin server must use an SSL certificate that Cloudflare provides [1]

5. Strict (SSL-Only Origin Pull): User <--HTTPS--> Cloudflare <--HTTPS--> Origin Server; same as Full SSL (strict), but you pay need to pay Cloudflare more money

---

3 and above will fix this issue as they encrypt from Cloudflare to the Origin Server.

This is the traffic flow from the link:

User -> Cloudflare -> Airtel -> GitHub Pages

Where the connection with flexible SSL is Cloudflare <--HTTP--> GitHub Pages.

Upgrading to Full SSL (or higher) and using HTTPS on GitHub [2] should fix.

---

Alternatively, deploy your static website with Cloudflare Pages [3], which has feature parity with Github Pages.

The flow would then be: User <--HTTPS--> Cloudflare Pages

[0]: https://developers.cloudflare.com/ssl/origin-configuration/s...

[1]: https://developers.cloudflare.com/ssl/origin-configuration/o...

[2]: https://docs.github.com/en/pages/getting-started-with-github...

[3]: https://pages.cloudflare.com/

EDIT: The replies by kentonv, x1110dc, and r1ch all have valid points.

comment 4y ago · link · parent

I live in Humboldt County, so I got one of these notifications. Mine arrived 5 seconds after the earthquake, and several of the people on my discord server got it 2-5s after the earthquake. One person got it a couple seconds before.

Relevant XKCD: https://xkcd.com/723/

13.

Top stackoverflow questions by vote count(stackoverflow.com ↗)

4 points · by p0cc · 5y ago · discuss

14.

Polynesian People Used Binary Numbers 600 Years Ago(scientificamerican.com ↗)

3 points · by p0cc · 5y ago · discuss

comment 6y ago · link · parent

They may have happened in the same region, but it looks like Operation Sunrise happened in spring 1945 in the Northern Italian region. Whereas, the Free Territory of Treiste was a microstate artifact of a WWII.

16.

The Free Territory of Trieste (1947–1954)(en.wikipedia.org ↗)

1 points · by p0cc · 6y ago · 2 comments

comment 6y ago · link · parent

  Location: San Francisco
  Remote: Yes
  Willing to relocate: Anywhere
  Technologies: Python, Go, Bash, Typescript, Javascript, HTML, CSS, Deep knowledge of TCP/IP stack, Wireshark, Scapy
  Résumé/CV: https://swit.sh/resume
  Email: rj АT swit.sh
  Github: github.com/pocc
  Stack Overflow: https://stackoverflow.com/users/1596750
  
  I have 4 years of experience as as network engineer and want to focus more on programming/automation. 
  I have several websites and chrome/firefox extensions. 
  Ideal role involves using go or typescript.

comment 6y ago · link · parent

Not really. It's kind of like going to Project Gutenberg and zipping together the first chapter of every work. And then advertising it as "This is a sampling of literature!"

I mean it is, but most people wouldn't read literature that way.

comment 6y ago · link · parent

DM me. Also, take a look at tshark.dev.

comment 6y ago · link · parent

This is like asking for a "universal vehicle". Some people want a truck while others want a forklift. It would also not be economical to make a truck extensible so that forklift components could be later tacked on. What vehicle you use depends on the goods you carry.

Likewise, the protocols do different things at different layers. Some are nested like Ethernet/IP/TCP/HTTP. TCP ensures delivery while UDP does not.

comment 6y ago · link · parent

If you work in the networking industry, pcaps are used to troubleshoot networks. I see guys walking around with t-shirts with "pcaps or it didn't happen". The behavior of protocols or the data in their fields can point exactly to what is failing, and a pcap captures this.

If you want to search for protocols in packet captures, I created tshark.dev/search/pcaptable/ for this exact purpose. Search 1000+ protocols from 6000+ packet captures.

---

Per capinfos, the author merged a bunch of pcap files with `mergecap` from Wireshark's sample captures. It has 38 interfaces, which is the highest I've ever seen!

  $ tshark -r ultimate.pcapng -T fields -e frame.protocols | sed -e 's/:/\n/g' | sort | uniq | wc -l
  69
Looks like it's actually 69 protocols, which makes it quite novel as a packet capture.

comment 6y ago · link · parent

> The choice to store two lengths in the packet header means that you can record both the actual wire length--the number of bytes that came in--and a bigger number that says where the next record starts, and any metadata you like in the gap.

> There is a very complicated "NG" pcap format, but nobody uses it.

This is the reason that pcapng was created - to formalize the structure of this metadata. pcapng "Pcap Next Generation" (2006) is an update to the pcap format (which originated with libpcap/tcpdump in the 90s). It's used in the networking industry as it's the default output file of wireshark, tshark, and tcpdump to capture traffic. If you use these tools, chances are that you have pcapng files.

The biggest reason to use it over pcap (in networking) is that you can save packets from multiple network interfaces. If you have a wireless access point and want to capture both ethernet and 802.11 traffic in the same capture, pcapng would be necessary.

comment 6y ago · link · parent

I love this map of mathematics, but in explaining concepts, the website shows unfurling images that scrolljack[0]. The inability to scroll back up makes me feel trapped in the content.

[0]: https://medium.com/@paonecreative_87456/scrolljacking-the-us...

comment 6y ago · link · parent

Are you sure? I am not seeing the same behavior.

comment 6y ago · link · parent

It may be helpful if you link to the specific API export you are referencing.

comment 6y ago · link · parent

Insider Trading [0] is a crime in the US.

[0]: https://en.wikipedia.org/wiki/Insider_trading

comment 7y ago · link · parent

How does this compare to similar products in this space?

I'm thinking of diagramming tools that are based on text, like Graphviz, Mermaid, PlantUML, and Webgraphviz.

comment 7y ago · link · parent

Yeah this article is about processing text data and not any form of statistics, modeling, etc. I'm guessing they added "data science" because it's in vogue? In any case, the provided title does not reflect the article.

comment 7y ago · link · parent

These extensions have been registered:

  * Firefox: https://addons.mozilla.org/en-US/firefox/addon/disable-slack-wysiwyg/
  * Chrome: https://chrome.google.com/webstore/detail/jenojkbpialbgpbgokiakifhpmoponjn
Based on the script by Kevin Fahy [1] and multiple discussions [2] [3] about Slack's new interface.

Let me know if you have any questions.

  [1]: https://github.com/kfahy/slack-disable-wysiwyg-bookmarklet
  [2]: https://news.ycombinator.com/item?id=21589647
  [3]: https://news.ycombinator.com/item?id=21591950
12