Skip to content

Instantly share code, notes, and snippets.

@vik0803
vik0803 / a
Created December 10, 2016 13:36
#!/bin/bash
# This script belongs in /usr/lib/udev/bluetooth and should be executable
PA_SINK='alsa_output.platform-bcm2835_AUD0.0.analog-stereo'
LOG_FILE=/var/log/bluetooth_a2dp
MAC=$(echo "$NAME" | sed 's/:/_/g' | sed 's/\"//g')
# Set the user you want to run as, 'pi' would be fine for most.
BT_USER=btaudio
@vik0803
vik0803 / docker-resources.md
Created April 19, 2016 10:26 — forked from rgaidot/docker-resources.md
Docker Resources All In One - A collection of docker online resources
@vik0803
vik0803 / docker_deploy.sh
Created April 19, 2016 10:11 — forked from mario21ic/docker_deploy.sh
docker_deploy.sh simple script to run an App PHP on Apache and MySQL
#!/bin/bash
IMG_PHP="tutum/apache-php:latest"
IMG_DB="mysql:latest"
CONT_DB="mysql_container"
CONT_PHP="php_container"
PASS_DB="clavedatabase"
DIR_SRC=$PWD"/src"
DB_DIR=$PWD"/data"
DB_NAME="database_name"
<!DOCTYPE HTML>
<!--
/*
* Remote File Copy Demo 1.0
*
* Copyright 2012, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
@vik0803
vik0803 / tracer.js
Created September 25, 2014 16:45
A tracer object to Titanium Mobile that helps you and shows elapsed time and memory usage
var tracer = {};
(function() {
tracer.levels = {};
tracer.levels.DEBUG = 1;
tracer.levels.INFO = 2;
tracer.levels.WARN = 3;
tracer.levels.ERROR = 4;
tracer.levels.OFF = 5;
tracer.allTracers = [];