Skip to content

Instantly share code, notes, and snippets.

Abdul Mannan rao-abdul-mannan

  • Arbisoft
  • Lahore, Pakistan
Block or report user

Report or block rao-abdul-mannan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rao-abdul-mannan
rao-abdul-mannan / Spark2.2_CDH5.13_Jupyterhub
Last active Feb 19, 2019
This gist explains how to connect jupyterhub with Spark2 on CDH 5.13 Cluster
View Spark2.2_CDH5.13_Jupyterhub
### This gist explains how to connect jupyterhub with Spark2 on CDH 5.13 Cluster.
Following below instructions, Spark can be configured with Jupyterhub on any cluster, standalone or locally etc
- Install jupyterhub by following instructions on official repo https://github.com/jupyterhub/jupyterhub
- Once installed, before configuring spark2 kernel first locate the jupyter's kernels directory.
On centos7, its under /usr/share/jupyter/kernels/
- Assuming all jupyterhub kernel's are in /usr/share/jupyter/kernels/
mkdir /usr/share/jupyter/kernels/pyspark2
- Create pyspark2 kernel
touch /usr/share/jupyter/kernels/pyspark2/kernel.json
@rao-abdul-mannan
rao-abdul-mannan / post-merge
Created Sep 25, 2017 — forked from sindresorhus/post-merge
git hook to run a command after `git pull` if a specified file was changed.In this example it's used to run `npm install` if package.json changed and `bower install` if `bower.json` changed.Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
View post-merge
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
View Toastar.js
(function () {
angular
.module('Toastar',[])
.factory('Toastar',Toastar);
Toastar.$inject = [];
function Toastar() {
var factory = {
toastSettings:toastSettings,
setSuccessToast:setSuccessToast,
You can’t perform that action at this time.