delete nim
This commit is contained in:
parent
c3416b8628
commit
1441b5ef6f
|
@ -83,7 +83,6 @@ func Execute(res http.ResponseWriter, req *http.Request) {
|
||||||
"lua",
|
"lua",
|
||||||
"nasm", "asm",
|
"nasm", "asm",
|
||||||
"nasm64", "asm64",
|
"nasm64", "asm64",
|
||||||
"nim",
|
|
||||||
"node", "javascript", "js",
|
"node", "javascript", "js",
|
||||||
"perl", "pl",
|
"perl", "pl",
|
||||||
"php",
|
"php",
|
||||||
|
|
|
@ -90,9 +90,6 @@ case "$lang" in
|
||||||
"nasm64" | "asm64")
|
"nasm64" | "asm64")
|
||||||
bin=nasm64
|
bin=nasm64
|
||||||
;;
|
;;
|
||||||
"nim")
|
|
||||||
bin=nim
|
|
||||||
;;
|
|
||||||
"node" | "js" | "javascript")
|
"node" | "js" | "javascript")
|
||||||
bin=node
|
bin=node
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -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"
|
|
||||||
|
|
|
@ -31,8 +31,6 @@ echo 'testing asm 32 bit'
|
||||||
../execute asm test.nasm
|
../execute asm test.nasm
|
||||||
echo 'testing asm 64 bit'
|
echo 'testing asm 64 bit'
|
||||||
../execute asm64 test64.nasm
|
../execute asm64 test64.nasm
|
||||||
echo 'testing nim'
|
|
||||||
../execute nim test.nim
|
|
||||||
echo 'testing php'
|
echo 'testing php'
|
||||||
../execute php test.php
|
../execute php test.php
|
||||||
echo 'testing perl'
|
echo 'testing perl'
|
||||||
|
|
|
@ -69,10 +69,6 @@ echo 'nasm'
|
||||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "nasm -version"
|
lxc-attach --clear-env -n piston -- /bin/bash -l -c "nasm -version"
|
||||||
echo '---'
|
echo '---'
|
||||||
|
|
||||||
echo 'nim'
|
|
||||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "nim -v | head -n1"
|
|
||||||
echo '---'
|
|
||||||
|
|
||||||
echo 'node'
|
echo 'node'
|
||||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "node --version"
|
lxc-attach --clear-env -n piston -- /bin/bash -l -c "node --version"
|
||||||
echo '---'
|
echo '---'
|
||||||
|
|
14
readme.md
14
readme.md
|
@ -88,7 +88,7 @@ source /opt/.profile
|
||||||
|
|
||||||
# install paradoc
|
# install paradoc
|
||||||
# this is not a binary, it is a python module
|
# 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
|
cd /opt && mkdir paradoc && cd paradoc
|
||||||
git clone https://github.com/betaveros/paradoc.git
|
git clone https://github.com/betaveros/paradoc.git
|
||||||
echo 'export PYTHONPATH=$PYTHONPATH:/opt/paradoc/paradoc' >> /opt/.profile
|
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
|
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /opt/.profile
|
||||||
source /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
|
# create runnable users and apply limits
|
||||||
for i in {1..150}; do
|
for i in {1..150}; do
|
||||||
useradd -M runner$i
|
useradd -M runner$i
|
||||||
|
|
Loading…
Reference in New Issue