ab -n 5000 -c 50 127.0.0.1:8000/
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
https://example.com { | |
gzip | |
log stdout | |
# force https | |
header / Strict-Transport-Security "max-age=31536000;" | |
# static files | |
root /app/public |
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
$LOAD_PATH.push File.expand_path("../../lib", __FILE__) | |
require "nio" | |
require "socket" | |
# Echo server example written with nio4r | |
class EchoServer | |
def initialize(host, port) |
0479ffbf0ec273a56400588b50446246a533ff290a879ee2985fafd2e9c242ce1c4d96a780cca058b6fe08c3b9e9d4b0a3ab05bb17fd05faaeb3388b392758cc2e;ioquatix |
fixed length encoding
./configure --host=riscv64-unknown-elf CC=riscv64-unknown-elf-gcc CXX=riscv64-unknown-elf-g++ CFLAGS='-Os -Wl,-static -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-s' CXXFLAGS='-Os -Wl,-static -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-s'
CMAKE_C_COMPILER
to riscv-unknown-elf-gcc
CMAKE_SYSTEM_NAME
to Generic
cmake
from hashlib import sha256 | |
# the seed here is only an example. | |
# The seed for the lottery (of Nervos CKB Minning Competition between 6/15 and 6/28) will be the block hash of the block of height N. | |
# Here is the sha256 hash of the sentence that contains the information of N:0x24f7501665d4f59b7f65c0853f8dd2a68fe528d345ffe63721f391eec711c190 | |
# Update: The message is "N = 77". According to the competition result, the block hash of height 77 is 0x73ba270324ee87ed8990acbc316380c584dea21a1b8b87f4e8c363595e08225f | |
seed = "0x73ba270324ee87ed8990acbc316380c584dea21a1b8b87f4e8c363595e08225f" | |
# This is the number of the participants in total. | |
# The number here should be replaced with the actual number after the competition conclude. |
#![feature(no_core)] | |
#![feature(lang_items)] | |
#![feature(optin_builtin_traits, link_args, start)] | |
#![no_std] | |
#![no_core] | |
// Compiler needs these to proceed | |
#[lang = "sized"] | |
pub trait Sized {} |