code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
if [ "`id -u`" != "0" ]; then
echo "Script must run as root"
fi
wget -O /tmp/update.sh "http://www.ime.usp.br/~cassio/boca/update.sh"
if [ $? != 0 ]; then
echo "ERROR DOWNLOADING UPDATE"
exit 1
fi
echo ">>>>>>>>>>"
echo ">>>>>>>>>> Running update script"
echo ">>>>>>>>>>"
/tmp/update.sh
exit $?
| Shell |
#!/bin/bash
uid=`id -u`
if [ "$uid" != "0" ]; then
echo "Must be root to run this script. Use sudo /bin/bash first"
exit 1
fi
apt-get clean
if [ -f /etc/icpc/postgresql.version ]; then
. /etc/icpc/postgresql.version
else
POSTGRESV=""
if [ ! -f /etc/init.d/postgresql ]; then
POSTGRESV="-8.4"
fi
fi
pass=\$`echo ... | Shell |
#!/bin/bash
cd /home
if [ -f /home/icpc/.cleandisk.sh ]; then
rm -rf /home/icpc
find /home -user icpc -delete
if [ -x /usr/bin/makepasswd ]; then
pass=`echo -n icpc | /usr/bin/makepasswd --clearfrom - --crypt-md5 | cut -d'$' -f2-`
pass=\$`echo $pass`
id -u icpc >/dev/null 2>/dev/null
if [ $? != 0 ]; then
useradd ... | Shell |
#!/bin/bash
if [ ! -x /etc/icpc/bocaserver.sh ]; then
OK=1
while [ "$OK" != "0" ]; do
IP=`zenity --title="Setting up the BOCA server IP number" --text="Enter the IP address of the server (format x.y.w.z)\n\
If this is supposed to be the server, then leave it empty" --width=500 --height=100 --entry`
[ "$IP"... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
homejail=/home/bocajail
[ "$1" != "" ] && homejail=$1
echo "================================================================================="
echo "============= CREATING $homejail (this might take some time) ==============="
echo "===========================================================================... | Shell |
#!/bin/bash
if [ "`id -u`" != "0" ]; then
echo "Script must run as root"
fi
di=`date +%s`
echo "==================================================="
echo "=================== obtaining BOCA ==============="
echo "==================================================="
wget -O /tmp/.boca.tmp "http://www.ime.usp.br/~ca... | Shell |
#!/bin/bash
mkdir -p /home/icpc
/usr/bin/touch /home/icpc/.cleandisk.sh
| Shell |
#!/bin/bash
if [ "`id -u`" != "0" ]; then
echo "Script must run as root"
fi
echo "==================================================="
echo "=================== checking for updates =========="
echo "==================================================="
wget -O /tmp/.boca.tmp "http://www.ime.usp.br/~cassio/boca/upda... | Shell |
BOCASERVER=127.0.0.1
| Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
ntpdate -u 143.107.255.15
| Shell |
#!/bin/bash
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
if [ -x /etc/icpc/docl... | Shell |
#!/bin/bash
if [ ! -f /etc/icpc/.isserver ]; then
if [ -x /etc/icpc/bocaserver.sh ]; then
. /etc/icpc/bocaserver.sh
fi
/sbin/iptables -F INPUT
/sbin/iptables -A INPUT -i lo -j ACCEPT
/sbin/iptables -A INPUT -s 143.107.255.15 -j ACCEPT
# just to make things easier, let's allow communication to/from BOCA servers
/... | Shell |
#!/bin/bash
if [ ! -f /etc/icpc/.isserver ]; then
if [ -x /etc/icpc/bocaserver.sh ]; then
. /etc/icpc/bocaserver.sh
fi
/sbin/iptables -F INPUT
/sbin/iptables -A INPUT -i lo -j ACCEPT
/sbin/iptables -A INPUT -s 143.107.255.15 -j ACCEPT
if [ "$BOCASERVER" != "" ]; then
/sbin/iptables -A INPUT -s $BOCASERVER -j AC... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
for i in zip du find cut; do
p=`which $i`
if [ -x "$p" ]; then
echo -n ""
else
echo "$i" not found
exit 1
fi
done
ex=`which singlefilebkp.sh`
if [ "$ex" = "" ]; then
ex=/var/www/boca/tools/singlefilebkp.sh
fi
if [ -x "$ex" ]; then
zip /tmp/bkp.zip `find $cdir -name "*.c"` `find $cdir -name "*... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
[ -x /etc/icpc/bocaserver.sh ] && . /etc/icpc/bocaserver.sh
if [ "$BOCASERVER" == "" ]; then
echo "This computer has no configured BOCA server. Ask an admin to update /etc/icpc/bocaserver.sh (usually resetting everything is an easy way)"
exit 1
fi
for i in uuencode wget tr perl md5sum cut; do
p=`whi... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
#
# This file performs a test of the autojudge system. It can run whatever you feel important to test the autojudge
# and the script files that are included in the problem package
cat > test.c <<EOF
#include<stdio.h>
int main() {
char s[100];
scanf("%s", s);
printf("%s\n",s);
return 0;
}
EOF
cat > ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
#
# This file performs a test of the autojudge system. It can run whatever you feel important to test the autojudge
# and the script files that are included in the problem package
cat > test.c <<EOF
#include<stdio.h>
int main() {
char s[100];
scanf("%s", s);
printf("%s\n",s);
return 0;
}
EOF
cat > ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
if [ "$1" == "" ]; then
echo "CREATING FILES WITHOUT PASSWORDS"
for i in `ls`; do
if [ -d $i ]; then
cd $i; zip -r ../$i.zip .; cd -;
fi
done
else
echo "USING ARGUMENT AS PASSWORD"
rm -f keys.txt
for i in `ls`; do
if [ -d $i ]; then
../../src/private/createproblemzip... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
#
# This file performs a test of the autojudge system. It can run whatever you feel important to test the autojudge
# and the script files that are included in the problem package
cat > test.c <<EOF
#include<stdio.h>
int main() {
char s[100];
scanf("%s", s);
printf("%s\n",s);
return 0;
}
EOF
cat > ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
#
# This file performs a test of the autojudge system. It can run whatever you feel important to test the autojudge
# and the script files that are included in the problem package
cat > test.c <<EOF
#include<stdio.h>
int main() {
char s[100];
scanf("%s", s);
printf("%s\n",s);
return 0;
}
EOF
cat > ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the term... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
# ////////////////////////////////////////////////////////////////////////////////
# //BOCA Online Contest Administrator
# // Copyright (C) 2003-2012 by BOCA System (bocasystem@gmail.com)
# //
# // This program is free software: you can redistribute it and/or modify
# // it under the terms of the G... | Shell |
#!/bin/bash
#
# This file performs a test of the autojudge system. It can run whatever you feel important to test the autojudge
# and the script files that are included in the problem package
cat > test.c <<EOF
#include<stdio.h>
int main() {
char s[100];
scanf("%s", s);
printf("%s\n",s);
return 0;
}
EOF
cat > ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename
echo 4
# and the number of repetitions to run within the given timelimit in the second line
echo 10
# and the maximum amount of memory per repetition in the ... | Shell |
#!/bin/bash
if [ "`id -u`" != "0" ]; then
echo "Must be run as root"
exit 1
fi
bocadir=/var/www/boca
[ -r /etc/boca.conf ] && . /etc/boca.conf
for i in pg_dump grep cut gzip date; do
if [ "`which $i`" == "" ]; then
echo "$i executable is not in the PATH. Aborting"
exit 1
fi
done
da=`date +%d%b%Y-%Hh%Mm... | Shell |
#!/bin/bash
#//////////////////////////////////////////////////////////////////////////////////////////
#//BOCA Online Contest Administrator. Copyright (c) 2003- Cassio Polpo de Campos.
#//It may be distributed under the terms of the Q Public License version 1.0. A copy of the
#//license can be found with this software... | Shell |
#!/bin/bash
# Copyright (c) 2007- C. P. de Campos (cassio@ime.usp.br). All rights reserved.
# Licensed under Q Public License version 1.0. See http://www.opensource.org/licenses/qtpl.php
for i in /usr/bin/cut /bin/cat /bin/date /usr/bin/basename /bin/true /usr/bin/uuencode /usr/bin/wc /usr/bin/tail; do
if [ ! -x $i ... | Shell |
#!/bin/bash
#//////////////////////////////////////////////////////////////////////////////////////////
#//BOCA Online Contest Administrator. Copyright (c) 2003- Cassio Polpo de Campos.
#//It may be distributed under the terms of the Q Public License version 1.0. A copy of the
#//license can be found with this software... | Shell |
#!/bin/bash
#//////////////////////////////////////////////////////////////////////////////////////////
#//BOCA Online Contest Administrator. Copyright (c) 2003- Cassio Polpo de Campos.
#//It may be distributed under the terms of the Q Public License version 1.0. A copy of the
#//license can be found with this software... | Shell |
#!/bin/bash
#//////////////////////////////////////////////////////////////////////////////////////////
#//BOCA Online Contest Administrator. Copyright (c) 2003- Cassio Polpo de Campos.
#//It may be distributed under the terms of the Q Public License version 1.0. A copy of the
#//license can be found with this software... | Shell |
#!/bin/bash
#//////////////////////////////////////////////////////////////////////////////////////////
#//BOCA Online Contest Administrator. Copyright (c) 2003- Cassio Polpo de Campos.
#//It may be distributed under the terms of the Q Public License version 1.0. A copy of the
#//license can be found with this software... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.