A collection of tools for NCAIC competitors.

Overview

NCAIC CLI Toolkit

A collection of tools for NCAIC competitors.

Installation

There are multiple ways to use the toolkit.

Install globally by using NPM

Requirements: Node.js

This method only install the toolkit, without any language support (but JS support should be already satisfied).

npm i -g ncaic

You can then use ncaic check to check the language support on your system.

Directly run from npx or pnpm dlx

Requirements: Node.js, PNPM (optional)

You can also run it directly using a single npx or pnpm dlx command.

npx -y ncaic

or

pnpm dlx ncaic

Using Docker Image

Requirements: Docker

This methods provides a Docker image including the toolkit and all the language support.

docker run --rm jacoblincool/ncaic

You can run command like this:

docker run --rm jacoblincool/ncaic check

If you want to run the local server, you will need to bind both volume and port.

docker run --rm -v "$(pwd)/config.yml:/app/config.yml" -p 52022:52022 -it jacoblincool/ncaic run

or using -e to expose a secure tunnel.

docker run --rm -v "$(pwd)/config.yml:/app/config.yml" -it jacoblincool/ncaic run -e

Understand what -v and -p do: https://docs.docker.com/engine/reference/commandline/run/#options

Note: Images are hosted on Docker Hub: jacoblincool/ncaic

Commands

Checkout the help menu

ncaic --help

You can use ncaic <command> --help to get the help for a specific command.

Check the language support on your system

ncaic check

Verify the team.json file

ncaic verify

Test the agent program

ncaic test

Create and initialize a config file

ncaic init

Run the local competition server

ncaic run

Run a performance test

It is useful to find the performance gap between your computer and the competition server.

ncaic perf
You might also like...

Client-Side Prototype Pollution Tools

Client-Side Prototype Pollution Tools

Client-Side Prototype Pollution Tools Match rules for Burp Software Version Reporter extension Match rules that passively detect vulnerable libraries

Oct 4, 2022

Tools for the openHAB JavaScript Automation Add-On.

openHAB JS Automation Tools This library provides some utilites for the openHAB JS Scripting Add-On. The JavaScript Add-On is using the NodeJS version

Oct 18, 2022

Components and tools for building DeFi dapps on Solana + Anchor. Public domain license.

Solana DeFi Framework Components and tools for building DeFi dapps on Solana + Anchor. Public domain license. Status Pre-pre-pre-alpha. Contributing A

Mar 28, 2022

Annotation tools for the web. Select text, images, or (nearly) anything else, and add your notes.

Annotator Annotator is a JavaScript library for building annotation applications in browsers. It provides a set of interoperable tools for annotating

Dec 23, 2022

Tools to help you improve performance of your Vue application.

Tools to help you improve performance of your Vue application.

Why did you update Tools to help you improve performance of your Vue application. Usage If we want to know how many times that (one of or all of) watc

Nov 3, 2022

@nodesecure/ci brings together a set of tools to identify dependencies vulnerabilities and track most common malicious code and patterns

@nodesecure/ci brings together a set of tools to identify dependencies vulnerabilities and track most common malicious code and patterns

NodeSecure CI Action @nodesecure/ci brings together a set of tools to identify dependencies vulnerabilities and track most common malicious code and p

Jul 29, 2022

📄 UI clone from vercel old site (Using basic tools)

📄 UI clone from vercel old site (Using basic tools)

vercel old site A portfolio site, made using the latest technologies. In the construction of the site using Sass. Quality: 1) Benchmark test using a s

Mar 1, 2022

Different set of tools with the Polkadot API.

xcmTools Different set of tools with the Polkadot API. Use at your own risk! Getting Started Install packages: yarn Then, run script with ts-node dep

Dec 15, 2022

Code Scanning/SAST/Static Analysis/Linting using many tools/Scanners with One Report - Scanmycode Community Edition (CE)

Code Scanning/SAST/Static Analysis/Linting using many tools/Scanners with One Report - Scanmycode Community Edition (CE)

Star it If you like it, please give it a GitHub star/fork/contribute. This will ensure continous development ⭐ TLDR; To install it. Install docker and

Dec 29, 2022
Comments
  • Using C language and crash when starting debugging on the website

    Using C language and crash when starting debugging on the website

    Description

    Use command npx -y ncaic run and push the start button on the website It crashes immediately

    System Informations

    ncaic 0.5.2 Checking for language support ... JavaScript : OK (node 16.16.0) TypeScript : X C : OK (gcc 9.4.0) C++ : OK (g++ 9.4.0) Python : OK (python 3.10.5) Go : X Rust : X

    Reproduction

    1. npx -y ncaic run
    2. start(on the website)
    3. error message appear(below)

    node:events:505 throw er; // Unhandled 'error' event ^

    Error: write EPIPE at afterWriteDispatched (node:internal/stream_base_commons:160:15) at writeGeneric (node:internal/stream_base_commons:151:3) at Socket._writeGeneric (node:net:817:11) at Socket._write (node:net:829:8) at writeOrBuffer (node:internal/streams/writable:389:12) at _write (node:internal/streams/writable:330:10) at Socket.Writable.write (node:internal/streams/writable:334:10) at file:///home/raylin/.npm/_npx/766da37dcd1e43b9/node_modules/ncaic/dist/index.js:502:48 at new Promise () at run2 (file:///home/raylin/.npm/_npx/766da37dcd1e43b9/node_modules/ncaic/dist/index.js:466:10) Emitted 'error' event on Socket instance at: at emitErrorNT (node:internal/streams/destroy:157:8) at emitErrorCloseNT (node:internal/streams/destroy:122:3) at processTicksAndRejections (node:internal/process/task_queues:83:21) { errno: -32, code: 'EPIPE', syscall: 'write' }

    Config File

    title: æžŹè©ŠæšĄćŒ Test Mode teams: Team A: source: "agent3.c" color: "#1d4ed8" Team B: source: "" color: "#e11d48" delay: step: 200 set: 2000 competition: rule: double-sided matches: - type: empty - type: random count: 4 - type: random count: 8 ext: true timeout: step: 999999999 set: 999999999

    bug windows 
    opened by Raylin0722 3
  • feat: program memory limit

    feat: program memory limit

    This PR add an utility to run program with memory limit.

    This method has been tested to be valid on M1 macOS with https://github.com/JacobLinCool/memory-occupier.

    opened by JacobLinCool 0
  • feat: performance test command

    feat: performance test command

    This PR introduces perf command to the toolkit, which allows user to find the performance gap between their computer and the competition server.

    This PR also adds the document of using npx or pnpm dlx as an alternative way.

    opened by JacobLinCool 0
  • feat: list/delete created environments

    feat: list/delete created environments

    This PR introduces a new command env and its option -r (--remove), which is able to locate the created temp environments and optionally deletes them.

    This PR also fix the bug of C / C++ language support detection on Windows.

    opened by JacobLinCool 0
Releases(v0.5.2)
Owner
NCAIC
We develop open source tools, host contests, and bring educations of information to people.
NCAIC
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till mÀnniskor pÄ flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
🛠 Solana Web3 Tools - A set of tools to improve the user experience on Web3 Solana Frontends.

?? Solana Web3 Tools - A set of tools to improve the user experience on Web3 Solana Frontends.

Holaplex 30 May 21, 2022
A comprehensive collection of useful tools developed with the help of Ethers.js to interact with the Ethereum Blockchain to develop great DeFi apps as quickly and easily as possible.

hudi-packages-ethersfactory How to install Installing with npm For more information on using npm check out the docs here. npm i @humandataincome/ether

HUDI 6 Mar 30, 2022
tooldb is a (soon) massive collection of frameworks and tools. It's build on Flowbite, Next.js, Tailwind CSS and uses Supabase.

tooldb is a (soon) massive collection of frameworks and tools. It's build on Flowbite, Next.js, Tailwind CSS and uses Supabase.

Julian Yaman 12 Jul 14, 2022
A collection of Revolt hacks, exploits & tools that is completely made using NodeJS.

ZeroRevolt A collection of Revolt hacks, exploits & tools that is completely made using NodeJS Tools Name Description userInformation Grab's the speci

OTAK 4 Aug 4, 2022
A collection of useful tools for building web apps on Cloudflare Workers.

Keywork is a batteries-included, magic-free, library for building web apps on Cloudflare Workers. Features ?? Written in TypeScript ?? Modules Support

Nirrius Studio 28 Dec 22, 2022
Obsidian-Snippet-collection - A collection of snippet to customize obsidian

This repo is a collection of CSS snippets for Obsidian.md. To install them on PC

Mara 110 Dec 22, 2022
tools and plugins for logseq

logtools tools and plugins for logseq logtools-css-productivitypack my css mods for Kanban/columns view (#.v-kanban), Einsihower Matrix (#.v-einsenhow

null 126 Jan 2, 2023