Skip to content

Instantly share code, notes, and snippets.

View fjcapdevila's full-sized avatar

Francisco J. Capdevila fjcapdevila

  • Argentina
View GitHub Profile
@jorgebastida
jorgebastida / ipdb.sublime-snippet
Created June 15, 2011 08:42
Sublime text 2 ipdb snippet - import ipdb; ipdb.set.trace()
<snippet>
<content><![CDATA[import ipdb; ipdb.set_trace()]]></content>
<tabTrigger>ipdb</tabTrigger>
<scope>source.python</scope>
<description>ipdb</description>
</snippet>
@marcelom
marcelom / pysyslog.py
Created December 5, 2012 18:06
Tiny Python Syslog Server
#!/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'
@shibz
shibz / cron_serial.py
Created March 5, 2013 23:04
Custom command for django-cronograph. Quick and dirty fix for multithreading issues. Just drop into chronograph/management/commands
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):
@mgaitan
mgaitan / git-integrate
Last active December 16, 2015 08:39
Integrate our branch into origin/develop
#!/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
@fisadev
fisadev / sse.py
Created June 25, 2013 17:59
flask simple SSE example
# python (flask) side:
import time
from flask import Response
app = Flask(__name__)
@app.route('/event_stream')
def stream():
def event_stream():