Code Monkey home page Code Monkey logo

pbot's Introduction

Installation:
	Install these dependencies.

	Debian (wheezy):
		python3-yaml
		python3-requests

	Fedora (17):
		python3-PyYAML
		python3-requests

	Copy config.yaml.example to config.yaml. Edit.
	`./pbot.py` (run with -d to daemonize)

Code evaluator:
	Make the nsjail directory a sibling of the pbot directory:
		`cd ..`
		`git clone --recursive git://github.com/google/nsjail.git`
		`cd nsjail`
		`make`
	If /sys/fs/cgroup/memory doesn't exist:
		`sudo mkdir /sys/fs/cgroup/{memory,pids}`
		`sudo mount -t cgroup memory -o memory /sys/fs/cgroup/memory`
		`sudo mount -t cgroup pids -o pids /sys/fs/cgroup/pids`
	Set up NSJAIL memory/pids cgroups:
		`sudo mkdir /sys/fs/cgroup/{memory,pids}/NSJAIL`
		`sudo chown -R $USER: /sys/fs/cgroup/{memory,pids}/NSJAIL`

EVE price checker:
	Download the latest invTypes.sql.bz2 file from https://www.fuzzwork.co.uk/dump/
	Install mysql-server (or mariadb-server)
	`mysql -u root -p`
		create database eve;
		grant all on eve.* to eve@localhost identified by 'eve';
	`bunzip2 -c invTypes.sql.bz2 | mysql -u eve -peve eve`

	You will need oursql but this is not packaged nor will pip/easy_install find the right version.
	I recommend downloading and extracting the zip at https://launchpad.net/oursql/py3k
	On Debian, install libmysqlclient-dev (even if you're running MariaDB)
	On Fedora, install mysql-devel (or MariaDB-devel)
	On both, install python3-pip
	cd into the oursql directory and then run
	Debian: `pip-3.2 install .`
	Fedora: `pip-python3 install .`

pbot's People

Contributors

lbatalha avatar raylu avatar uplime avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.