Skip to content

Instantly share code, notes, and snippets.

View hvwaldow's full-sized avatar

Harald von Waldow hvwaldow

View GitHub Profile
@hvwaldow
hvwaldow / rdmo_setup
Last active August 9, 2017 16:34
Setup for RDMO in LXC container (for development)
It is about a privileged container. Hostsystem:
Debian 4.6.4-1 (2016-07-18) x86_64 GNU/Linux (PRETTY_NAME="Debian GNU/Linux 9 (stretch)")
1. sudo lxc-create -t download -n <name>
2. Choose:
Distribution: debian
Release: stretch
Architecture: amd64
This resulted in installation of the same base system than that of the host.
@hvwaldow
hvwaldow / testencoding.py
Last active January 20, 2017 14:46
Test encoding issues with regard to Py2 / Py3 compatibility
# _*_ encoding: utf-8 _*_
import sys
pv = sys.version_info[0]
print("Python Version: {}".format(pv))
strngs = (('str_asci','asci'),
('uni_asci', u'asci'),
('byte_ascii', b'asci'),
@hvwaldow
hvwaldow / lcrnz-repeating.js
Created February 1, 2016 13:41
modifications to lcrnz_repeating
/* Module for working with multiple field inputs. This will create
* a new field when the user clicks the 'add field' button.
*
*/
this.ckan.module('lcrnz-repeating', function (jQuery, _) {
return {
options: {
/* The selector used for each custom field wrapper */
fieldSelector: '.control-repeating'
},
@hvwaldow
hvwaldow / solr-upgrade.md
Last active November 4, 2016 21:19
How to upgrade to SOLR 5.3.1 on Debian jessie for use with CKAN

Disclaimer

This is without any reasonable idea about SOLR configuration. It just happens to work here. It is also specific to my server, you might severly damage yours if you copy & paste this blindly!

All commands to be executed as root.

Remove Debian packaged solr 3.6.2 and jetty8

apt-get remove --purge solr-common