Skip to content

Instantly share code, notes, and snippets.

View danigosa's full-sized avatar
🎯
24/7 Coding Whore

danius danigosa

🎯
24/7 Coding Whore
  • Robbie AI Inc.
  • Boston
View GitHub Profile
  • create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
  • edit /etc/redis-xxx.conf, illustrated as below
...
@danigosa
danigosa / CeleryResource
Last active December 15, 2015 13:49 — forked from akoumjian/gist:1625633
Tastypie Resource as Celery Task
class TempResource(Resource):
class Meta:
resource_name = 'temp_resource'
object_class = temp_resource.delay
authorization = Authorization()
allowed_methods = ['post', 'get']
always_return_data = True
def get_resource_uri(self, bundle_or_obj):
"""