Skip to content

Instantly share code, notes, and snippets.

View andrewshulgin's full-sized avatar
👾

Andrew Shulgin andrewshulgin

👾
View GitHub Profile
# 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
@andrewshulgin
andrewshulgin / smarttv-debugging-server.js
Last active October 26, 2017 00:56 — forked from janmonschke/smarttv-debugging-server.js
[Improved] A simple debugging server for the Samsung SmartTV platform. Simply start the server and then connect your machine to the TV and it'll print out (and save) everything the TV sends
var net = require('net');
var fs = require('fs');
function formatFileName (addr) {
return __dirname + '/log_' + addr + '_' + Math.floor(new Date().getTime() / 1000);
}
function formatMessage (addr, message) {
return '[' + addr + '] ' + message.trim() + '\n';
}
@andrewshulgin
andrewshulgin / install.sh
Last active April 26, 2017 14:14 — forked from 2xyo/install.sh
SNORT installation on debian 8
#!/bin/sh
set -e
if [ -z "$1" ]; then
echo "usage: $0 <interface>" > /dev/stderr
exit 1
fi
INTERFACE="$1"