Skip to content

Instantly share code, notes, and snippets.

View kenju254's full-sized avatar

Kenneth Kinyanjui kenju254

View GitHub Profile
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_MODE='nerdfont-complete'
# Default Prompt
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs virtualenv ssh )
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)
#Python Prompt
POWERLEVEL9K_CUSTOM_PYTHON="echo -n '\uf81f' Python"
@kenju254
kenju254 / 0-Messenger-Bot.md
Created April 5, 2017 15:56 — forked from profnandaa/0-Messenger-Bot.md
Introduction to Facebook Messenger Bots - @DevC-Nairobi

Building a Basic Messenger Bot with Node.js

For this tutorial, you need just basic understanding of JavaScript. The aim of this tutorial is to show you how easy it is to build messenger bots. When you scroll down this page, you will find out the actual lines of code that we will write are just about 19 LOC.

Prerequisites

@kenju254
kenju254 / 0-Messenger-Bot.md
Created April 5, 2017 15:56 — forked from profnandaa/0-Messenger-Bot.md
Introduction to Facebook Messenger Bots - @DevC-Nairobi

Building a Basic Messenger Bot with Node.js

For this tutorial, you need just basic understanding of JavaScript. The aim of this tutorial is to show you how easy it is to build messenger bots. When you scroll down this page, you will find out the actual lines of code that we will write are just about 19 LOC.

Prerequisites

Keybase proof

I hereby claim:

  • I am kenju254 on github.
  • I am kenju254 (https://keybase.io/kenju254) on keybase.
  • I have a public key ASDM5SKGXDAdIm14Y6HrDat6IAHLsrV6ZUQEv1CxAdq5Uwo

To claim this, I am signing this object:

@kenju254
kenju254 / sublime_setup.md
Created December 20, 2015 08:42 — forked from barnes7td/sublime_setup.md
Sublime Terminal Setup

Setup Terminal for Sublime Shorcut "subl":

Open terminal and type:

1. Create a directory at ~/bin:

mkdir ~/bin

2. Copy sublime executable to your ~/bin directory:

@kenju254
kenju254 / fabric.py
Created December 14, 2015 16:20 — forked from adeleinr/fabric.py
fabric config for deploying a Django project
"""
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
Author: Adelein Rodriguez, adeleinr@gmail.com
Note: This is an adaptation from a fabric script presented here:
http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p.html
Summary: This script:
@kenju254
kenju254 / mongo_chunk.py
Created December 13, 2015 13:31 — forked from 0m15/mongo_chunk.py
Python script that can export Mongo collections of any size into progressive numbered json chunks, type `python mongo_chunk.py --help` to have a list of available options
#!/usr/bin/python
import argparse
from pymongo import MongoClient as Client
from bson import BSON
from bson import json_util
import json
import os
# mongo client
@kenju254
kenju254 / mongotestrunner.py
Created December 9, 2015 11:07 — forked from snormore/mongotestrunner.py
Django, MongoDB, and MongoEngine: A custom TestRunner managing mongo test database creation and cleanup.
#coding: utf-8
from django.test.simple import DjangoTestSuiteRunner
from nose.plugins.skip import SkipTest
from mongoengine.python_support import PY3
from mongoengine import connect
try:
from django.test import TestCase
from django.conf import settings
@kenju254
kenju254 / README.md
Created September 23, 2015 08:55 — forked from denji/README.md
Remove WebStorm; PhpStorm; PyCharm; RubyMine; AppCode; CLion, IntelliJ; 0xDBE10 settings and cli-links from Mac OSX

Quick uninstall JetBrains settings:

curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
#Echo & Co. Changes
# Load PHP-FPM via mod_fastcgi
LoadModule fastcgi_module /usr/local/opt/mod_fastcgi/libexec/mod_fastcgi.so
<IfModule fastcgi_module>
FastCgiConfig -maxClassProcesses 1 -idle-timeout 1500
# Prevent accessing FastCGI alias paths directly
<LocationMatch "^/fastcgi">