Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ravikg on github.
  • I am ravikg (https://keybase.io/ravikg) on keybase.
  • I have a public key ASDnVe7k9bxYWPjfYS0ydQr5YT9Pxq7LWgGIDSF23qMvCAo

To claim this, I am signing this object:

@ravikg
ravikg / Tensorflow setup in Dell XPS Alienware 15
Created July 17, 2016 14:55
Tensorflow setup instruction with GPU support in Ubuntu 16.04 Dell XPS Alienware
http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
Unetbootin http://unetbootin.github.io/
get ubuntu 16.04 iso and create bootable usb
in dell go to boot setup and disable secure boot and disable uefi and enable legacy
set usb 1st boot option
insert the above bootable usb and reboot laptop
install ubuntu: mouse pointer might not come in live ubuntu, use usb mouse; it will come after install
sudo apt-get update
sudo apt-get upgrade
// Requires jQuery from http://jquery.com/
// and jQuerySparklines from http://omnipotent.net/jquery.sparkline
// AngularJS directives for jquery sparkline
angular.module('sparkline', []);
angular.module('sparkline')
.directive('jqSparkline', [function () {
'use strict';
return {

Compile FFmpeg on Ubuntu

This guide supports Ubuntu Precise Pangolin 12.04, Ubuntu Oneiric Ocelot 11.10, Ubuntu Natty Narwhal 11.04, and Ubuntu Maverick Meerkat 10.10. Separate guides are available for Ubuntu Lucid Lynx 10.04 and Ubuntu Hardy Heron 8.04. This guide will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide](https://ffmpeg.org/trac/ffmpeg/wiki/Fi

@ravikg
ravikg / solrconfig.xml
Created July 31, 2012 02:59
Dataimport requesthandler
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">data-config.xml</str>
</lst>
</requestHandler>
@ravikg
ravikg / data-config.xml
Created July 31, 2012 02:52
DB Connection Conf for SOLR
<dataConfig>
<dataSource type="JdbcDataSource"
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/dbname"
user="username"
password="password"/>
<document name="content">
<entity name="id" query="SELECT * from document">
<field column="id" name="id" />
<field column="name" name="name" />