Skip to content

Instantly share code, notes, and snippets.

View kurhula's full-sized avatar

Musa Baloyi kurhula

View GitHub Profile
@kurhula
kurhula / snx_install.sh
Created January 17, 2023 08:38 — forked from rkueny/snx_install.sh
Checkpoint SNX VPN client installation shell script
mkdir temp && cd temp
# for linux 'amd64' architecture install those packages:
sudo apt-get install libx11-6:i386 libpam0g:i386 libstdc++5:i386 lib32z1 lib32ncurses5 lib32bz2-1.0
wget https://vpnportal.aktifbank.com.tr/SNX/INSTALL/snx_install.sh
sudo ./snx_install.sh
cd .. && rm -rf temp/
@kurhula
kurhula / osmc_expressvpn_openvpn.md5
Created September 2, 2020 10:54 — forked from mitchwongho/osmc_expressvpn_openvpn.md5
Setting Up TunnelBear or ExpressVPN (using OpenVPN) On OSMC
# Setting Up ExpressVPN (OpenVPN) On OSMC
## References
- [Brian Hornsby' Kodi OpenVPN plugin](http://brianhornsby.com/blog/how-to-setup-your-vpn-client)
- [Install and Configure OpenVPN on OSMC/Kodi](https://nerddrivel.com/2016/03/25/install-and-configure-openvpn-on-osmckodi/)
- [ExpressVPN - High speed, ultra secure, and easy to use. Instant setup.](https://www.expressvpn.com/)
- [[HOWTO] OSMC/Rasp Pi as OpenVPN client](https://discourse.osmc.tv/t/howto-osmc-rasp-pi-as-openvpn-client/1844/71)
## Steps
@kurhula
kurhula / ml-recs.md
Created July 22, 2020 16:53 — forked from bsletten/ml-recs.md
Machine Learning Path Recommendations

This is an incomplete, ever-changing curated list of content to assist people into the worlds of Data Science and Machine Learning. If you have a recommendation for something to add, please let me know. If something isn't here, it doesn't mean I don't recommend it, I just may not have had a chance to review it yet or not.

I will generally list things in order of easier to more formal/challenging content.

It may feel like there is an overwhelming amount of stuff for you to learn (because there is). But, there is a guided path that will get you there in time. You need to focus on Linear Algebra, Calculus, Statistics and probably Python (or R). Your best bet is to get a Safari Books Online account (https://www.safaribooksonline.com) which you may already have access to through school or work. If not, it is a reasonable way to get access to a tremendous number of books and videos.

I'm not saying you will get what you need out of everything here, but I have read/watched at least some of all of the following an

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kurhula
kurhula / main.R
Last active August 29, 2015 14:27
library(dplyr)
library(tidyr)
# 0. Empty all variables
rm(list=ls())
# 1. Load Data
data <- read.csv('input/data.csv', header=FALSE, stringsAsFactors=FALSE, sep = ';', dec = '.')
# 2. Prepare Data
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 1 column, instead of 110. in line 3.
census; 1996; 2001; 2006; 2011
wards; 36; 36; 38; 40
populations; 531653; 584539; 602819; 618464
population; 12780, 12267, 16584, 12785, 14453, 17443, 13699, 13764, 16605, 14002, 17264, 13004, 12439, 644, 19461, 11629, 17656, 23132, 21474, 15032, 17039, 5356, 8432, 17443, 22201, 17446, 18944, 8077, 20853, 17736, 16023, 1447, 10835, 14748, 7591, 18339; 15066, 17753, 15530, 13912, 14266, 20158, 13496, 14842, 17981, 16566, 16600, 15539, 12634, 12254, 17596, 15319, 20774, 27486, 24983, 16285, 20881, 15343, 16313, 18628, 21050, 16845, 7925, 15482, 15057, 17069, 16344, 13491, 13408, 15130, 6305, 16228; ; 17417, 11933, 14672, 15212, 16744, 15414, 18247, 14063, 14099, 14413, 17023, 14465, 17665, 15102, 17898, 12625, 12757, 16212, 16062, 17074, 19237, 16386, 16551, 18714, 15326, 14539, 17107, 13437, 16855, 12995, 12876, 14492, 16988, 15064, 17693, 16665, 14326, 14672, 13380, 12064
@kurhula
kurhula / start_dw_vagrant.sh
Last active August 29, 2015 14:21
Update all DW repos
#!/usr/bin/env bash
cd ~/IndiaProjects/dw-vagrant/datawinners
git stash
git pull --rebase
git stash pop
cd ~/IndiaProjects/dw-vagrant/datawinners/enketo-core
git stash
git pull --rebase
git stash pop
cd ~/IndiaProjects/dw-vagrant/mangrove/
@kurhula
kurhula / local_settings.py
Created May 3, 2015 15:13
Datawinners local settings file
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8
import os
SITE_ID = 1
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'mangrove', # Or path to database file if using sqlite3.
'USER': os.getenv("USER"), # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
@kurhula
kurhula / setup_dictionary_django_macos
Last active June 20, 2022 09:50
Madyondza Dictionary Django MacOS & Ubuntu
git clone git@github.com:LocalDigital/madyondza-cms-dictionary.git dictionary
cd dictionary
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
# install postgres if not installed
postgres -D /usr/local/var/postgres
# install foreman if not installed
foreman start
@kurhula
kurhula / start_dw_ubuntu_gui.sh
Last active August 29, 2015 14:19
Script to update all datawinners modules
cd ~/workspace/datawinners
source ~/virtual_env/datawinners/bin/activate
git stash
git pull --rebase
git stash pop
cd enketo-core
git stash
git pull --rebase
git stash pop
cd ~/virtual_env/datawinners/src/mangrove/