Skip to content

Instantly share code, notes, and snippets.

View mvenkatesh431's full-sized avatar
🎯
Focusing

Venkatesh Macha mvenkatesh431

🎯
Focusing
View GitHub Profile
#!/usr/bin/env python
'''Crop an image to just the portions containing text.
Usage:
./crop_morphology.py path/to/image.jpg
This will place the cropped image in path/to/image.crop.png.
For details on the methodology, see
#!/bin/bash
# GUI-related packages
pkgs="
xserver-xorg-video-fbdev
xserver-xorg xinit
gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa
gstreamer1.0-libav
epiphany-browser
@mvenkatesh431
mvenkatesh431 / setup-janus
Created January 31, 2017 14:36 — forked from jaychsu/setup-janus
Setup [janus-gateway](https://github.com/meetecho/janus-gateway) on ubuntu
#!/bin/bash
# REF: https://github.com/meetecho/janus-gateway/blob/master/README.md
# REF: https://groups.google.com/forum/#!msg/meetecho-janus/RYP4FBaeUi0/bIGSPZlpEQAJ
# Tested enviroment: ubuntu {14.04,16.04} LTS
# Tested Janus version: 0.2.0
# 0. Get infos and params without empty
# ======
set -e
@mvenkatesh431
mvenkatesh431 / install-freeswitch-17.sh
Created November 4, 2016 14:11 — forked from areski/install-freeswitch-17.sh
Install FreeSWITCH 1.7
#!/bin/bash
#
# Arezqui Belaid <[email protected]>
#
FS_CONFIG_PATH=/etc/freeswitch
FS_BASE_PATH=/usr/src
FS_VERSION=v1.7
@mvenkatesh431
mvenkatesh431 / latest-ffmpeg-centos6.sh
Created September 22, 2016 10:15 — forked from mustafaturan/latest-ffmpeg-centos6.sh
Installs latest ffmpeg on Centos 6
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
@mvenkatesh431
mvenkatesh431 / Webrtc.html
Last active August 31, 2015 11:00 — forked from xeoncross/Webrtc.html
Simple webrtc demo script
<h1>WebRTC</h1>
<script>
// This is only needed for browser testing
window.RTCPeerConnection = window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
window.RTCSessionDescription = window.mozRTCSessionDescription || window.RTCSessionDescription;
window.RTCIceCandidate = window.mozRTCIceCandidate || window.RTCIceCandidate;
navigator.getUserMedia = navigator.mozGetUserMedia || navigator.webkitGetUserMedia;
#!KAMAILIO
#
# Simple/sample kamailio.cfg for running a proxy/registrar with TLS and
# WebSockets support.
###!substdef "!DBURL!sqlite:///etc/kamailio/db.sqlite!g"
#!substdef "!DBURL!mysql://kamailio:kamailiorw@localhost/kamailio!g"
#!substdef "!MY_IP_ADDR!10.0.11.175!g"
#!substdef "!MY_DOMAIN!ubukam.lan!g"
#!substdef "!MY_WS_PORT!5065!g"
#!/bin/bash
#http://linux.autostatic.com/installing-webrtc2sip-on-ubuntu-1204#install_packages
sudo su
# install
apt-get update
apt-get install -y python-software-properties
add-apt-repository ppa:autostatic/doubango
#!KAMAILIO
#
# Kamailio (OpenSER) SIP Server v4.1 - default configuration script
# - web: http://www.kamailio.org
# - git: http://sip-router.org
#
# Direct your questions about this file to: <[email protected]>
#
# Refer to the Core CookBook at http://www.kamailio.org/wiki/
# for an explanation of possible statements, functions and parameters.