Skip to content

Instantly share code, notes, and snippets.


Brian Matovu mtvbrianking

View GitHub Profile
View ckeditor_tutorial_demo_1.html
<!DOCTYPE html>
<meta charset="utf-8">
mtvbrianking / tinymce_demo.html
Created Sep 28, 2016
Live edit and preview using TinyMCE editor
View tinymce_demo.html
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Live Edit & Preview</title>
<link href="" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<style type="text/css">
mtvbrianking / demo_tinymce.html
Created Sep 29, 2016
Dynamically add and remove Tinymce 4.x
View demo_tinymce.html
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dynamically add and remove Tinymce 4</title>
<link rel="stylesheet" href="bootstrap.min.css" type="text/css" media="all">
<div class="container">
mtvbrianking /
Created Jan 23, 2017 — forked from tedmiston/
Display the webcam in Python using OpenCV (cv2)
Simply display the contents of the webcam with optional mirroring using OpenCV
via the new Pythonic cv2 interface. Press <esc> to quit.
import cv2
def show_webcam(mirror=False):
cam = cv2.VideoCapture(0)
while True:
mtvbrianking /
Created Feb 10, 2017 — forked from jmsaavedra/
Install FFmpeg on a Linux Box

###Install FFmpeg via CLI on Linux box

These steps walk through installing a static binary of any ffmpeg version on to your linux machine. If you want to compile from source, there are several ways to do so. Here's the official guide. Tested and works on an AWS EC2 Ubuntu instance, but should work on any Linux machine.


  • SSH into your instance and become root
mtvbrianking /
Created Mar 6, 2017 — forked from christianroman/
Tesseract OCR training new font
#! /bin/bash
# build the environment
mkdir tessenv; cd tessenv
mkdir $TROOT/stockfonts; mkdir $TROOT/build; mkdir $TROOT/build/eng
echo "Environment built"
# Get the stock english fonts from Google (old, but they work)
cd $TROOT/stockfonts
GET > boxtiff-2.01.eng.tar.gz
View golang-create-read-write-delete-file.go
package main
import (
var path = "/Users/novalagung/Documents/temp/test.txt"
View Function.Array-Group-By.php
if (!function_exists('array_group_by')) {
* Groups an array by a given key.
* Groups an array into arrays by a given key, or set of keys, shared between all array members.
* Based on {@author Jake Zatecky}'s {@link array_group_by()} function.
* This variant allows $key to be closures.
mtvbrianking / .env.travis
Created Jun 15, 2018 — forked from gilbitron/.env.travis
Laravel 5 Travis CI config
View .env.travis


When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a