This file contains 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
# python (flask) side: | |
import time | |
from flask import Response | |
app = Flask(__name__) | |
@app.route('/event_stream') | |
def stream(): | |
def event_stream(): |
This file contains 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 | |
# | |
# Integrate our branch into origin/develop | |
# | |
# It's a shortcut for : | |
# | |
# 1. pull for last changes on develop | |
# 2. rebase the target branch against develop | |
# 3. recheck if no changes happen in the meanwhile | |
# 4. merge --no-ff |
This file contains 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
from django.core.management.base import BaseCommand | |
import logging | |
import os | |
import sys | |
import time | |
logger = logging.getLogger('chronograph.commands.cron_serial') | |
class Command(BaseCommand): |
This file contains 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
#!/usr/bin/env python | |
## Tiny Syslog Server in Python. | |
## | |
## This is a tiny syslog server that is able to receive UDP based syslog | |
## entries on a specified port and save them to a file. | |
## That's it... it does nothing else... | |
## There are a few configuration parameters. | |
LOG_FILE = 'youlogfile.log' |
This file contains 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
<snippet> | |
<content><![CDATA[import ipdb; ipdb.set_trace()]]></content> | |
<tabTrigger>ipdb</tabTrigger> | |
<scope>source.python</scope> | |
<description>ipdb</description> | |
</snippet> |