Skip to content

Instantly share code, notes, and snippets.

git clone https://github.com/Modubot/Modubot.js.git && cd Modubot.js
sudo npm install -g grunt-cli
npm install && grunt
nano config/config.yml
npm start

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links

@nwgat
nwgat / gist:17e10a81661710750774d6b731044ea4
Created April 7, 2016 16:05
check if sshd is running
# windows
tasklist /fi "imagename eq sshd.exe" | find /i "sshd"
# linux
ps aux | grep sshd
@nwgat
nwgat / discover os
Created April 7, 2016 16:01
python check os and run stuff
import os
if (os.name == "posix"):
print os.system("uname -a")
# insert other possible OSes here
# ...
else:
print "unknown OS"
@nwgat
nwgat / gist:1ce8b79d8bbc5c2ba37ab369bc4d78f4
Last active April 5, 2016 19:52 — forked from samhocevar/gist:00eec26d9e9988d080ac
Configure sshd on MSYS2 and run it as a Windows service
#!/bin/sh
#
# msys2-sshd-setup.sh — configure sshd on MSYS2 and run it as a Windows service
#
# Please report issues and/or improvements to Sam Hocevar <sam@hocevar.net>
#
# Prerequisites:
# — MSYS2 itself: http://sourceforge.net/projects/msys2/
# — admin tools: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights
#
sudo apt-get install libx11-dev libxcomposite-dev libxdamage-dev libxfixes-dev libxext-dev libxrender-dev libxrandr-dev libxinerama-dev pkg-config make x11proto-* x11-utils libpcre2-dev libconfig-dev libdrm-dev libgl-dev libdbus-1-dev
@nwgat
nwgat / gist:023efc621cc991e014a8
Created March 20, 2016 19:31 — forked from anonymous/gist:ff138778f92bb5c927e0
save/load python json file
ripped from http://kaira.sgo.fi/2014/05/saving-and-loading-data-in-python-with.html
## Saving a Python dictionary to disk using JSON
#!/usr/bin/python
# This only uses the json package
import json
# Create a dictionary (a key-value-pair structure in Python)
@nwgat
nwgat / check-if-run.sh
Created March 15, 2016 22:27
simple check if running for service/cron
#!/bin/bash
# Makes sure we exit if flock fails.
set -e
(
# Wait for lock on /var/program.lock (fd 200) for 10 seconds
flock -n 200
# Do stuff
@nwgat
nwgat / kodiplay research
Last active March 12, 2016 23:32
kodiplay research
#kodi json
https://raw.githubusercontent.com/pla1/utils/master/kodiJsonExamples.sh
https://www.reddit.com/r/kodi/comments/3qitpv/help_with_json_http_command/
#devd
./devd -o -a -P devd:devd .
#devd no-auth
./devd.exe -o -a .
ls -lh * | awk '{print $5, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20}' > list