commit
a4039fa334
|
@ -83,6 +83,7 @@ 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",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
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"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
echo("good")
|
|
@ -69,6 +69,9 @@ 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-attack --clear-env -n piston -- /bin/bash -l -c "nim -v | head -n1"
|
||||||
|
|
||||||
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 '---'
|
||||||
|
|
12
readme.md
12
readme.md
|
@ -240,6 +240,18 @@ 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