Nice minimal setup for hostile environments :)
cd $HOME;sh <(wget -o /dev/null -qO- https://raw.githubusercontent.com/lucasmouilleron/Survival/master/ubuntu.sh)
TODO :)
An implementation of heartbeat monitoring.
server
is in charge of monitoring services
service
is considered dead, the server
then alerts
its ownerservice
is a pulsing agentpulse
is a sign of alivenessservice
pulse the server
, it tells him when he will pulse
again in the worst caseservice
has not pulsed
again in time, the server
considers the service
dead and alerts
its ownerservice
is no longer required, it must inform the server
to avoid a false dead alerts
Alert
can be a mail, a pushover message, etc.POST /
{"service":"SERVICE_NAME","alertType":"ALERT_TYPE","alertTarget":"TARGET_NAME","nextIn":EXPECTED_NEXT_HEARTBEAT_IN_SECS}
DELETE /
{"service":"SERVICE_NAME"}
GET /
./server
pip install -r requirements.txt
config/config.json
: main config (cp config/sample.json config/config.json
)config/server.crt
, config/server.key
: SSL certificate, used only if SSL activateddata
./server/config/sample.upstart.conf
, http://upstart.ubuntu.com/getting-started.html)python server.py
./docker
./docker/config
cd docker && tools/dockerBuild && tools/dockerRun
cd docker && tools/dockerBuild && tools/dockerRunDetached
./clientJava
./clientPython
requests
(pip install requests
)python test.py
./clientJavascript
client.js
is a node modulepackages.json
-> devDependencies
(npm install
)node test.js
browserify test.js -o bundle.js
and open test.html
in browseropenssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt
Shity weather script to know if I can ride to work.
Uses forecast.io for weather data and freegeoip.net for IP geoloc.
composer install
config/config.php
config/locations.json
(Geocode address : http://mygeoposition.com)Characterisation of the population of beings of Riverworld.
Riverworld is a fictional planet and the setting for a series of sci-fi books written by Philip José Farmer.
Riverworld is an artificial environment where all humans (and pre-humans) ever born who died after reaching 5 years old are reconstructed.
Most of the resurrected awaken in a body equivalent to that of their 25 year old selves, in perfect health and free of any previous genetic or acquired defects.
A friend of mine made fun of the book concept and claimed half of the beings ressucitated would be prehistorical.
This project is proving him wrong.
./data/population-min.csv
./data/population-max.csv
./data/population-avg.csv
./data/population-future.csv
./output/(min|max|future)/report.pdf
./output
pip install --upgrade pip
pip install -r requirements.txt --user
./resources/fonts
brew cask install wkhtmltopdf
apt-get install wkhtmltopdf
config.ini
python riverworld.py min|max|avg|future
python riverworld.py min;python riverworld.py max;python riverworld.py avg;python riverworld.py future
Nicolas Rainaud website, built with my stupidCMS.