The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
| The logic is actually quite simple, when /v1/messages api is called through claude code, backend server returns something like | |
| ``` | |
| anthropic-ratelimit-unified-5h-reset: 1765944000 | |
| anthropic-ratelimit-unified-5h-status: allowed | |
| anthropic-ratelimit-unified-5h-utilization: 0.042598363636363636 | |
| anthropic-ratelimit-unified-7d-reset: 1766030400 | |
| anthropic-ratelimit-unified-7d-status: allowed | |
| anthropic-ratelimit-unified-7d-utilization: 0.3068459187383675 | |
| anthropic-ratelimit-unified-fallback-percentage: 0.5 | |
| ``` |
This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.
There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.
$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log > requests.txt
Moved to Shopify/graphql-design-tutorial
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| apt update && apt upgrade | |
| apt install ruby vim git nodejs | |
| apt install ruby-dev libxml2-dev libxslt-dev pkg-config make clang | |
| gem install nokogiri -- --use-system-libraries | |
| apt install libsqlite-dev | |
| gem install sqlite3 |
The position is filled, thanks!
Heroku operates the world’s largest PaaS cloud, continuously delivering millions of apps with a high volume of deploys per day. Our vision is for developers to focus on their applications, and leave operations to us.
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.