Step-by-step guide for building the Claude Code CLI from the alesha-pro/claude-code repository — leaked Anthropic Claude Code source code.
- Linux (Ubuntu 22.04+) or macOS
- 4GB RAM, 4 CPU cores, 30GB disk
- Bun >= 1.3
- Git
Step-by-step guide for building the Claude Code CLI from the alesha-pro/claude-code repository — leaked Anthropic Claude Code source code.
| # | |
| # Extract a JSON value in an object: | |
| # | |
| # items = get_json_value(json, "payload.tree.items") | |
| # | |
| # Or in an array: | |
| # | |
| # while ((item = get_json_value(items, i++))) | |
| # name = decode_json_string(get_json_value(item, "name")) | |
| # |
| package cz.tejnora.pokusy; | |
| import static org.hamcrest.CoreMatchers.is; | |
| import static org.hamcrest.MatcherAssert.assertThat; | |
| import java.util.Arrays; | |
| import java.util.Collections; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.concurrent.atomic.AtomicInteger; |
| #!/bin/bash | |
| set -e | |
| UPDATES_URL="http://updates.jenkins-ci.org/download/plugins/" | |
| if [ $# -lt 2 ]; then | |
| echo "USAGE: $0 plugin-list-file destination-directory" | |
| exit 1 | |
| fi |
| http://www.theotherian.com/2013/11/non-blocking-cache-with-guava-and-listenable-futures.html |
| -- |
| #!/bin/bash | |
| ############################################################################### | |
| ## ## | |
| ## Build and package OpenSSL static libraries for OSX/iOS ## | |
| ## ## | |
| ## This script is in the public domain. ## | |
| ## Creator : Laurent Etiemble ## | |
| ## ## | |
| ############################################################################### |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| # **postinstall.sh** is a script executed after Debian/Ubuntu has been | |
| # installed and restarted. There is no user interaction so all commands must | |
| # be able to run in a non-interactive mode. | |
| # | |
| # If any package install time questions need to be set, you can use | |
| # `preeseed.cfg` to populate the settings. | |
| ### Setup Variables | |
| # The version of Ruby to be installed supporting the Chef and Puppet gems |
| # Apt-install various things necessary for Ruby, guest additions, | |
| # etc., and remove optional things to trim down the machine. | |
| apt-get -y update | |
| apt-get -y remove apparmor | |
| apt-get -y install linux-headers-$(uname -r) build-essential | |
| apt-get -y install zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline5-dev | |
| apt-get clean | |
| # Remove this file to avoid dhclient issues with networking | |
| rm -f /etc/udev/rules.d/70-persistent-net.rules |