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
#with resp.body_stream() as body: | |
body = resp.body_string() | |
#----------------------------------------------------------------------- | |
#get path and split in "/" parts | |
actualPath = request.get_full_path() | |
parts = [] | |
for part in actualPath.split('/'): | |
parts.append(part) | |
#create the import string. Ex: scripts.dipina.ModifyBody | |
importString = "scripts." |
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
-------------- | |
Raptor2-2.0.0 | |
-------------- | |
[For GRDDL requieres libxml2 and libxslt] | |
$ tar xvf ./raptor2-2.0.0.tar.gz | |
$ cd ./raptor2-2.0.0 | |
$ ./configure --prefix=/usr --libdir=/usr/lib64 | |
$ make | |
$ make check | |
$ cd ./examples |
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/lib64/python2.6/site-packages/RDF.py.original 2011-02-28 11:32:55.235000011 -0100 | |
+++ /usr/lib64/python2.6/site-packages/RDF.py 2011-02-28 11:33:03.555000011 -0100 | |
@@ -2283,7 +2283,19 @@ | |
else: | |
rbase_uri = None | |
return Redland.librdf_serializer_serialize_model_to_string(self._serializer, rbase_uri, model._model) | |
- | |
+ | |
+ def serialize_stream_to_string(self, stream, base_uri=None): | |
+ """Serialize to a string using the optional base URI.""" |
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
/* | |
Copyright (C) 2011 Xabier Larrakoetxea (slok) <[email protected]> | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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 | |
# uwsgi.sh: This script executes the uwsgi command needed to deploy the Django app for example for Nginx. | |
# The only things needed that have to be changed are the PYTHON_PATH and WSGI_CONF_NAME variables | |
# NOTE: The script must be inside the Django project(root folder) | |
# | |
# Author: Xabier Larrakoetxea (slok) <[email protected]> | |
# | |
# License: This script is in public domain. | |
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 | |
# deployAllDj.sh: This scripts executes all the uwsgi scripts in the Django projects(project's path) that are ready | |
# to be deployed, by this way we can deploy all the Django apps automatically and not one by one | |
# | |
# Author: Xabier Larrakoetxea (slok) <[email protected]> | |
# | |
# License: This script is in public domain. | |
#MODIFY THIS!! |
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
#/etc/udev/rules.d/51-android.rules | |
#This rules are for the Android Devices that will be connected for debugging apps (or internet tethering) | |
#Geeksphone Zero(Qualcomm) | |
#SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9025", MODE="0666", USER="slok" | |
SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666" |
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 | |
#/etc/rc.d/rc.php-cgi | |
#spawn-fcgi -a 127.0.0.1 -p 9000 -u nobody -g nobody -f /usr/bin/php-cgi | |
IP=127.0.0.1 | |
PORT=9000 | |
USER=nobody | |
GROUP=nobody |
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
#/etc/nginx/nginx.conf | |
user nobody nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; |
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
##/home/slok/.bash_profile | |
# Source .bashrc | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi |
OlderNewer