delete nim

This commit is contained in:
Brian Seymour 2021-01-12 13:45:40 -06:00
parent c3416b8628
commit 1441b5ef6f
6 changed files with 1 additions and 27 deletions

View File

@ -83,7 +83,6 @@ func Execute(res http.ResponseWriter, req *http.Request) {
"lua",
"nasm", "asm",
"nasm64", "asm64",
"nim",
"node", "javascript", "js",
"perl", "pl",
"php",

View File

@ -90,9 +90,6 @@ case "$lang" in
"nasm64" | "asm64")
bin=nasm64
;;
"nim")
bin=nim
;;
"node" | "js" | "javascript")
bin=node
;;

View File

@ -1,4 +0,0 @@
cd /tmp/$2
timeout -s KILL 10 nim --hints:off c code.code
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./code"

View File

@ -31,8 +31,6 @@ echo 'testing asm 32 bit'
../execute asm test.nasm
echo 'testing asm 64 bit'
../execute asm64 test64.nasm
echo 'testing nim'
../execute nim test.nim
echo 'testing php'
../execute php test.php
echo 'testing perl'

View File

@ -69,10 +69,6 @@ echo 'nasm'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "nasm -version"
echo '---'
echo 'nim'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "nim -v | head -n1"
echo '---'
echo 'node'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "node --version"
echo '---'

View File

@ -88,7 +88,7 @@ source /opt/.profile
# install paradoc
# this is not a binary, it is a python module
# therefore it cannot be run directly as it requires python3 to be installed
# therefore it cannot be run directly as it requires python3 to be installed
cd /opt && mkdir paradoc && cd paradoc
git clone https://github.com/betaveros/paradoc.git
echo 'export PYTHONPATH=$PYTHONPATH:/opt/paradoc/paradoc' >> /opt/.profile
@ -249,18 +249,6 @@ echo 'export DENO_INSTALL="/opt/.deno"' >> /opt/.profile
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /opt/.profile
source /opt/.profile
# install nim
# final binary: /opt/nim/bin/nim
# get version: /opt/nim/bin/nim -v
cd /opt && mkdir nim && cd nim
wget https://nim-lang.org/download/nim-1.4.0-linux_x64.tar.xz
unxz nim-1.4.0-linux_x64.tar.xz
tar -xf nim-1.4.0-linux_x64.tar
cd nim-1.4.0
./install.sh /opt
echo 'export PATH=$PATH:/opt/nim/bin' >> /opt/.profile
source /opt/.profile
# create runnable users and apply limits
for i in {1..150}; do
useradd -M runner$i