Skip to content

Instantly share code, notes, and snippets.

View philipsahli's full-sized avatar
🇨🇭
Working from home

Philip Sahli philipsahli

🇨🇭
Working from home
View GitHub Profile
@philipsahli
philipsahli / tests.py
Created October 5, 2011 03:28
XML Webservice in Django for Debugging
from django.test import TestCase
from django.test.client import Client
import logging
logging.disable("debug")
class XMLWebserviceTest(TestCase):
c = Client()
def setUp(self):
```python
import findspark
findspark.init("/usr/local/Cellar/apache-spark/2.2.1/libexec/")
```
```python
sc
@philipsahli
philipsahli / Imaging-1.1.7_setup.patch
Created October 12, 2011 04:20
Imaging installation under ubuntu needs a patch
# Usage:
# wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
# tar -zxvf Imaging-1.1.7.tar.gz
# cd Imaging-1.1.7
# patch -p1 -i ../patch
# # continue with installation
Only in Imaging-1.1.7-patched: build
Only in Imaging-1.1.7-patched: patch
diff -crB Imaging-1.1.7/setup.py Imaging-1.1.7-patched/setup.py