This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from one_year_ago.one_year_ago import OneYearAgo, REECalendar | |
from datetime import datetime, timedelta, date | |
#logging.basicConfig(level=logging.DEBUG) | |
logging.basicConfig(level=logging.INFO) | |
dia=datetime(2016,1 ,1) # !is_working, is_holiday | |
#dia=datetime(2016,5,1) # !is_working, is_holiday | |
#dia=datetime(2016,2,29) # is_working, !is_holiday |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Call it with $ ./hipchat-v2.sh "MESSGE" [STATUS | NOTIFICATION_TYPE] | |
# , optional parameters | |
# STATUS = 'w|c|o|u' | |
# NOTIFICATION_TYPE = "PROBLEM|RECOVERY|FLAPPING*|DOWNTIME*" | |
# | |
# Set the ROOM_ID & AUTH_TOKEN variables below. | |
# Ready to be integrated on Shinken / Nagios / Centreon as a new notification system | |
# Further instructions at https://www.hipchat.com/docs/apiv2/auth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install python-virtualenv | |
sudo apt-get install python-dev | |
sudo apt-get install postgresql | |
sudo apt-get install postgresql-server-dev-9.3 | |
sudo apt-get install redis-server | |
sudo -u postgres createuser -s sentry | |
sudo -u postgres psql -c "alter user sentry with password 'sentry';" |
NewerOlder