Skip to content

Instantly share code, notes, and snippets.

Working from home

Joseph Kariuki jkariukidev

Working from home
View GitHub Profile
jkariukidev / geonode2.4.x - Install in development mode
Created Dec 29, 2016 — forked from jodom/geonode2.4.x - Install in development mode
this bug when installing geonode 2.4.x, both in dev mode and in admin/deploy mode
View geonode2.4.x - Install in development mode
(geonode) jdev@linux /home/geonode/dev/geonode $ python migrate
Not enabling BingMaps base layer as a BING_API_KEY is not defined in file.
Traceback (most recent call last):
File "", line 28, in <module>
File "/home/geonode/dev/.venvs/geonode/local/lib/python2.7/site-packages/django/core/management/", line 399, in execute_from_command_line
File "/home/geonode/dev/.venvs/geonode/local/lib/python2.7/site-packages/django/core/management/", line 392, in execute
File "/home/geonode/dev/.venvs/geonode/local/lib/python2.7/site-packages/django/core/management/", line 242, in run_from_argv
jkariukidev / grass_unsupervised
Last active May 16, 2017
Unsupervised classification in PyGRASS
View grass_unsupervised
Ungzip Landsat files in /home/hempire/rawData/L7Dir/LE07_
Import in GRASS GIS
> LE07_L1TP_166061_20170221_20170319_01_T1_B2
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166061_20170221_20170319_01_T1_B2>...
Region for the current mapset updated
> LE07_L1TP_166061_20170221_20170319_01_T1_B5
View landsat_unsupervised_classification
/usr/bin/python2.7 /home/hempire/PycharmProjects/GRASSproject/
Ungzip Landsat files in /home/hempire/grassdata/L7Dir/landsat
Import in GRASS GIS
> LE07_L1TP_166060_20030303_20170126_01_T1_B2
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B2>...
> LE07_L1TP_166060_20161016_20161111_01_T1_B2
Region for the current mapset updated
jkariukidev /
Created Nov 7, 2017 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


jkariukidev / redirect_jsp.jsp
Created Jan 3, 2019
View redirect_jsp.jsp
String redirectURL = "/geoserver";
jkariukidev /
Created Mar 27, 2019 — forked from haerulmuttaqin/
Android CRUD Tutorial | • RETROFIT • PHP • MYSQL (
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class ApiClient {
private static final String BASE_URL = "";
private static Retrofit retrofit;
public static Retrofit getApiClient() {
jkariukidev /
Created May 7, 2019 — forked from femmerling/
I have to create user authentication using python-ldap. After googling around and trying out stuffs, this is the final code for you to use. Please remember to adjust the user_dn, and base_dn accordingly to the format used in your LDAP server.
# to be able to import ldap run pip install python-ldap
import ldap
if __name__ == "__main__":
username = "someuser"
password= "somepassword"
# the following is the user_dn format provided by the ldap server
user_dn = "uid="+username+",ou=someou,dc=somedc,dc=local"
import sys
from PyQt4.QtCore import QTimer, QVariant, SIGNAL
from PyQt4.QtGui import *
from PyQt4.QtNetwork import QNetworkAccessManager, QNetworkRequest, QNetworkReply
from PyQt4.QtWebKit import QWebView
html = """<html>
<title>Test page for the download:// scheme</title>
jkariukidev /
Created May 31, 2019
CMIS repository test
from cmislib import CmisClient
# testing cmis by getting repository information
def repository():
client = CmisClient('http://localhost:8081/alfresco/api/-default-/public/cmis/versions/1.1/atom',
'<user>', '<password>')
repo = client.defaultRepository
repo_info =
jkariukidev /
Created Mar 21, 2020 — forked from santisbon/
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master