Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Masum UbuntuEvangelist

🏠
Working from home
View GitHub Profile
View full-ffmpeg.sh
# Add multimedia source
echo "deb http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list
echo "deb-src http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list
apt-get update
apt-get install deb-multimedia-keyring # if this aborts, try again
apt-get update
# Go to local source directory
cd /usr/local/src
View gist:74f0eb7d35de086a2588
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo apt-get install php5-mysql
wget http://nchc.dl.sourceforge.net/project/opensis-ce/opensis5.1.zip
sudo apt-get install unzip
unzip opensis5.1.zip
View lambda-deploy.md

lambda-deploy.js

Description

A standalone executable that helps in deploying AWS lambda functions.

Synopsis

lambda-deploy.js --function-name FUNCTION_NAME --region REGION --action (create|update|delete) --path /path/to/your/project [ARGS]

@UbuntuEvangelist
UbuntuEvangelist / flussonic.sh
Created Nov 1, 2015 — forked from maxlapshin/flussonic.sh
Debian initscript for erlyvideo (flussonic)
View flussonic.sh
#!/bin/bash
### BEGIN INIT INFO
# Provides: flussonic
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop flussonic streaming server
### END INIT INFO
View elasticsearch.yml
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,
View setup-nginx-rtmp-on-ubuntu-14-04.sh
#https://www.vultr.com/docs/setup-nginx-rtmp-on-ubuntu-14-04
apt-get install build-essential libpcre3 libpcre3-dev libssl-dev unzip software-properties-common
mkdir /usr/build
#Download the Nginx and Nginx-RTMP source.
wget http://nginx.org/download/nginx-1.7.8.tar.gz
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
#Extract the Nginx and Nginx-RTMP source.
tar -zxvf nginx-1.7.8.tar.gz
unzip master.zip
#Switch to the Nginx directory.
View install-elasticsearch-debian
VERSION=0.20.6
sudo apt-get update
sudo apt-get install openjdk-6-jdk
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$VERSION.deb
sudo dpkg -i elasticsearch-$VERSION.deb
# be sure you add "action.disable_delete_all_indices" : true to the config!!
@UbuntuEvangelist
UbuntuEvangelist / gist:a8319c1ff2a80a8fe75f
Created Feb 3, 2016 — forked from sharoonthomas/gist:5857450
How to install tryton on debian/ubuntu
View gist:a8319c1ff2a80a8fe75f
# Step 1: Adding the ppa where tryton is release
sudo add-apt-repository ppa:rayanayar/tryton-2.8
# Step 2: Update the packages
sudo apt-get update
# Step 3: Install all the packages and modules at once
@UbuntuEvangelist
UbuntuEvangelist / gist:71917d477dc0565ea87b
Created Mar 11, 2016 — forked from wheezydial/gist:687685e4a0c28d507f1b
Install A2billing on Debian Wheezy Status Alpha Tutorial
View gist:71917d477dc0565ea87b
install realtime Kernel and Kernel Headers:
apt-get install -y linux-image-rt-amd64 linux-headers-rt-amd64
remove the old kernel
apt-get remove -y linux-image-3.2.0-4-amd64 linux-headers-3.2.0-4-amd64
update-grub ##reconfigure the bootloader for the new Kernel
View tinder-api-documentation.md

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since. I have nothing to do with Tinder, nor their API, and I do not offer any support for anything you may build on top of this

API Details