Skip to content

Instantly share code, notes, and snippets.

View nashmaniac's full-sized avatar
😃
Happy Always

Raju Ahmed Shetu nashmaniac

😃
Happy Always
  • KOHO Financial Inc
  • Toronto, Canada
View GitHub Profile
@nashmaniac
nashmaniac / stickypad_detection.ipynb
Created March 4, 2019 08:46
This is a ipython notebook to detect a pink sticky note.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ting django-debug-toolbar==1.11 (from -r /opt/python/ondeck/app/requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/01/9a/3db232bd15882d90d3c53de1f34ce0a522327849593c9198899713267cfe/django_debug_toolbar-1.11-py2.py3-none-any.whl (201kB)
Collecting django-extensions==2.1.6 (from -r /opt/python/ondeck/app/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/26/66/613b34aa7246e1be223e7f539212d8972e41046ec7f2b8bc0ba3e2cfcf22/django_extensions-2.1.6-py2.py3-none-any.whl (218kB)
Collecting django-model-utils==3.1.2 (from -r /opt/python/ondeck/app/requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/d1/92/8a6b15368bb407f0a2e716bf603e73c843af782b98e68f23c19697742f8a/django_model_utils-3.1.2-py2.py3-none-any.whl
Collecting djangorestframework==3.9.2 (from -r /opt/python/ondeck/app/requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/cc/6d/5f225f18d7978d8753c1861368efc62470947003c7f9f9a5cc425f
@nashmaniac
nashmaniac / README.md
Created May 2, 2019 10:55 — forked from mojodna/README.md
GDAL 2.0 on Amazon Linux
sudo yum -y update
sudo yum-config-manager --enable epel
sudo yum -y install make automake gcc gcc-c++ libcurl-devel proj-devel geos-devel
cd /tmp
curl -L http://download.osgeo.org/gdal/2.0.0/gdal-2.0.0.tar.gz | tar zxf -
cd gdal-2.0.0/
./configure --prefix=/usr/local --without-python
make -j4
sudo make install
@nashmaniac
nashmaniac / install.sh
Last active October 23, 2019 20:37
Helm & Tiller
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
helm init
@nashmaniac
nashmaniac / update_kafka_config.sh
Created October 24, 2019 11:46
Update Kafka config in google deployment
#!/bin/bash
#
# Script to update Kafka configuration information
# Must be run using sudo as the Kafka config file is owned by root
#
# Use colors for notification purposes
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
CYAN='\033[0;36m'
@nashmaniac
nashmaniac / Dockerfile
Last active January 6, 2020 11:49
Dockerfile for building a datascience image
FROM alpine:latest
LABEL MAINTAINER="Raju Ahmed Shetu<[email protected]>"
# Linking of locale.h as xlocale.h
# This is done to ensure successfull install of python numpy package
# see https://forum.alpinelinux.org/comment/690#comment-690 for more information.
WORKDIR /var/www/
@nashmaniac
nashmaniac / gist:1f165b96b5257285f1b329173716da6c
Created January 11, 2020 11:04
django-project-intialize-commands
➜ ~ mkdir docker_demo
➜ ~ cd docker_demo
➜ docker_demo virtualenv venv -p /usr/bin/python3
➜ docker_demo source venv/bin/activate
(venv) ➜ docker_demo pip install django gunicorn
(venv) ➜ docker_demo django-admin startproject .
(venv) ➜ docker_demo django-admin startproject docker_demo .
(venv) ➜ docker_demo pip freeze > requirements.txt
apiVersion: v1
kind: ConfigMap
metadata:
name: application-configmap
data:
APP_NAME: My app name
apiVersion: apps/v1
kind: Deployment
metadata:
name: application-deployment
spec:
replicas: 2
selector:
matchLabels:
pod: application
template: