Skip to content

Instantly share code, notes, and snippets.

View symptog's full-sized avatar

Tobias Gall symptog

View GitHub Profile
@symptog
symptog / urls.py
Created February 1, 2018 21:38
OneSignal with Django
# Add the following to the root `urls.py`
# And deploy the OneSignalSDK to the template folder
#...
from django.template.response import TemplateResponse
from django.views import View
from django.views.generic import RedirectView
class OneSignalSDKView(View):

Keybase proof

I hereby claim:

  • I am symptog on github.
  • I am symptog (https://keybase.io/symptog) on keybase.
  • I have a public key ASBSqd23p8ASH0oCZJTLFktRg5-AudXNVU-W11KUBhoBqgo

To claim this, I am signing this object:

@symptog
symptog / pysyslog.py
Created May 24, 2016 09:24 — forked from marcelom/pysyslog.py
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'