let version = (fetch_version --version-id 1.19 --version-type release)
fetch_jar $version --download-type client
This file contains 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
#![feature(async_closure)] | |
use crate::handler::router::handle; | |
use anyhow::Result; | |
use futures::future::FutureExt; | |
use handler::router::DynamicRouter; | |
use hyper::{ | |
service::{make_service_fn, service_fn}, | |
Body, Response, Server, StatusCode, | |
}; | |
use matchit::Router; |
This file contains 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
const std = @import("std"); | |
const builtin = @import("builtin"); | |
const builder = @import("builder/main.zig"); | |
const Features = std.Target.x86.Feature; | |
const kernel_build_mode: std.builtin.Mode = .Debug; | |
const user_build_mode: std.builtin.Mode = .ReleaseSafe; | |
const target = blk: { |
This file contains 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/sh | |
set -e | |
TARGET=${TARGET:-"x86_64-linux-musl"} | |
PREFIX=${PREFIX:-"/usr/local/dev/gcc"} | |
CC=${CC:-"gcc"} | |
CXX=${CXX-"g++"} | |
LANGUAGES=${LANGUAGES:-"c,c++,go"} | |
./configure \ |
This file contains 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
const std = @import("std"); | |
const c = @cImport({ | |
// linux networking headers for modifying interfaces | |
@cInclude("ifaddrs.h"); | |
@cInclude("net/if.h"); | |
@cInclude("sys/ioctl.h"); | |
}); | |
pub const SIOCGIFINDEX = 0x8933; | |
pub const SIOCGIFFLAGS = 0x8934; |
This file contains 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/sh | |
set -e | |
cmake -B build -G Ninja \ | |
-DCMAKE_BUILD_TYPE=MinSizeRel \ | |
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lldb;lld;mlir" \ | |
-DLLVM_DEFAULT_TARGET_TRIPLE="x86_64-unknown-linux-musl" \ | |
-DCMAKE_EXE_LINKER_FLAGS="-static" \ | |
-DLLVM_BUILD_STATIC=ON \ | |
-DLLVM_USE_LINKER=mold \ |
This file contains 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
indent_with_tabs = 2 | |
align_with_tabs = true | |
input_tab_size = 2 | |
output_tab_size = 2 | |
indent_columns = 2 | |
indent_paren_close = 2 | |
indent_continue = 2 | |
nl_func_call_start_multi_line = true | |
nl_func_call_args_multi_line = true | |
nl_func_call_end_multi_line = true |
This file contains 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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 6.0.1 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (GCC) 12.2.0" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=120200 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_AS_IS_GNU=y | |
CONFIG_AS_VERSION=23900 |
This file contains 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
JOBS="12" | |
COMMON_FLAGS="-march=native -O2 -pipe" | |
CFLAGS="${COMMON_FLAGS}" | |
CXXFLAGS="${COMMON_FLAGS}" | |
FCFLAGS="${COMMON_FLAGS}" | |
FFLAGS="${COMMON_FLAGS}" | |
MAKEOPTS="-j${JOBS} -l${JOBS}" | |
EMERGE_DEFAULT_OPTS="--jobs=${JOBS} --load-average=${JOBS}" | |
FEATURES="binpkg-logs buildpkg cgroup collision-protect downgrade-backup ipc-sandbox network-sandbox parallel-install sign" |
This file contains 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
#!/usr/bin/env pypy3 | |
""" Cross-compiler toolchain build script | |
Possible target platforms are: | |
aarch64 ARM64 | |
amd64 AMD64 (x86-64, x64) | |
arm32 ARM | |
ia32 IA-32 (x86, i386) | |
ia64 IA-64 (Itanium) | |
mips32 MIPS little-endian 32b |