This week, I want to share a quick shell trick to check if a port open or not without using any external tool like telnet
or nc
.
And it’s a one liner: echo > /dev/tcp/host/port
. Example: echo > /dev/tcp/127.0.0.1/1605/
. If the port is open, no outout, otherwise it will say:
-bash: connect: Connection refused
-bash: /dev/tcp/127.0.0.1/1605: Connection refused
It only works on Linux though, so if you are on Mac, don’t bother to try it.
Have ever feel frustrated reading a whitepaper without code? So either you have to re-implement to verify or use the research theory? This site is a directory of paper with its code, as in they have a github repository.
A software developers guide to writing and migrating networked applications for use on ipv6 networks. Discuss strategies for apps supporting both ipv4 and ipv6 during the transition. Not just in term of network, it also discussed how to store ipv6 into database effectively. How to deal with ipv6 in your programing language etc. So a great guide both in term of networking and programming.
Is writing to a file from multiple processes safe? As in they won’t corrupted the file or overwride each other? and will all get append properly.
Jepsen is a framework to test distrubuted system. It uncovered many bugs in system like MongoDB, Riak, Redis, ElasticSearch. But what do you do if you are a developer and your app failed at Jepsen test. This is a journey of a dgraph developer try to fix one of the most complicated Jepsen test using distributed tracing. The test is so hard that you cannot just think of theory to quickly try fixing out blindly.
Recently Apple has a Zero-Day in thir Sign In with Apple system, which allow a way to login as anybody. The core issue is not validating user input data. If a single thing you can learn from this article is this: always validate user input data, especially in a multi steps flow, validate at every steps.
All code examples are JavaScript/Node but generally all good rule: never use GET to modify state, csrf token, check origin header, Use SameSite cookies, write nagtive test cases.
There are many ways of addressing performance bottlenecks, but for the sake of discussion here are several ways we can look at this issue: Tuning Performance Parameters, Session Connections, Bloat, Autovacuum, Data Hotspots, Competing Application Processes
A series about Postgres locks. This part is about dead lock, object-level locks and predicate locks.
Awk crunches massive data; a High Performance Computing (HPC) script calls hundreds of Awk concurrently. Fast and scalable in-memory solution on a fat machine.
Leverage ffmpeg. ffmpeg is awesome but it’s huge so knowing how to put thing together is a nice first step to get into video programming.
The code example is in Go but it introduce you to structure of JVM and how much you can achieve with a short amount of code. Also a good chance to understand some aspect of JVM, regardless you like Java or not, I think this is a great artcile and will level up your knowledge.
Ever wonder how to generate YouTube-like ids from numbers? Here you go, in 400 lines of TypeScript
TypeScriptSelf-hosted, Node.js based analytics tool for those who care about privacy. Ackee runs on your own server, analyses the traffic of your websites and provides useful statistics in a minimal interface
Explore your data with SQL. Easily create charts and dashboards, and share them with your team
A simple and efficient HTTP mock server
Detecting Logic Bugs in DBMS. It discovered 179 bugs in SQLite
Run near native OSX-KVM in Docker! X11 Forwarding!
A Text-to-Speech Transformer in TensorFlow 2
Modern, privacy-friendly, and detailed web analytics that works without cookies or JS
a distributed event bus broker that implements a RESTful API abstraction on top of Kafka-like queues, which can be used to send, receive, and analyze streaming data in real time, in a reliable and highly available manner.
Password-based Uniform-Random-Equivalent Encryption
BetterDev Link
Every Monday