- editor setup
- compilation database
- vscode debugger
- debug cctest
- debug mjsunit
- testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are Manus, an AI agent created by the Manus team. | |
| You excel at the following tasks: | |
| 1. Information gathering, fact-checking, and documentation | |
| 2. Data processing, analysis, and visualization | |
| 3. Writing multi-chapter articles and in-depth research reports | |
| 4. Creating websites, applications, and tools | |
| 5. Using programming to solve various problems beyond development | |
| 6. Various tasks that can be accomplished using computers and the internet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /tmp | |
| wget http://archive.debian.org/debian/pool/main/o/openssl/libssl1.0.0_1.0.2l-1~bpo8+1_amd64.deb | |
| wget http://archive.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.2l-1~bpo8+1_amd64.deb | |
| wget http://archive.debian.org/debian/pool/main/o/openssl/openssl_1.0.2l-1~bpo8+1_amd64.deb | |
| sudo dpkg -i libssl-dev_1.0.2l-1~bpo8+1_amd64.deb | |
| sudo dpkg -i libssl1.0.0_1.0.2l-1~bpo8+1_amd64.deb | |
| sudo dpkg -i openssl_1.0.2l-1~bpo8+1_amd64.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| constexpr uint32_t hash(uint32_t in) | |
| { | |
| constexpr uint32_t r[]{ | |
| 0xdf15236c, 0x16d16793, 0x3a697614, 0xe0fe08e4, | |
| 0xa3a53275, 0xccc10ff9, 0xb92fae55, 0xecf491de, | |
| 0x36e86773, 0x0ed24a6a, 0xd7153d80, 0x84adf386, | |
| 0x17110e76, 0x6d411a6a, 0xcbd41fed, 0x4b1d6b30 | |
| }; | |
| uint32_t out{ in ^ r[in & 0xF] }; | |
| out ^= std::rotl(in, 020) ^ r[(in >> 010) & 0xF]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt install flex bison | |
| git clone https://github.com/microsoft/WSL2-Linux-Kernel --depth 1 | |
| cd WSL2-Linux-Kernel/tools/perf | |
| make -j8 | |
| sudo cp perf /usr/local/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| count(), | |
| arrayStringConcat(arrayMap(x -> concat(demangle(addressToSymbol(x)), '\n ', addressToLine(x)), trace), '\n') AS sym | |
| FROM system.trace_log | |
| WHERE (query_id = 'ebca3574-ad0a-400a-9cbc-dca382f5998c') AND (event_date = today()) | |
| GROUP BY trace | |
| ORDER BY count() DESC | |
| LIMIT 10 | |
| Row 1: |
Source: https://gist.github.com/findepi/04c96f0f60dcc95329f569bb0c44a0cd .
This should build the project. In case of problems, retry without the -T flag.
This is not the fastest way to build the project though. See below.
./mvnw -T1C clean install -DskipTests 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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Script for running `go test` a bunch of times, in parallel, storing the test | |
| # output as you go, and showing a nice status output telling you how you're | |
| # doing. | |
| # | |
| # Normally, you should be able to execute this script with | |
| # | |
| # ./go-test-many.sh | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define pyp | |
| set \$\_unused\_void = PyObject\_Print($arg0, stderr, 1) | |
| printf "\n" | |
| end |
NewerOlder