Skip to content

Instantly share code, notes, and snippets.

View karthik20522's full-sized avatar
๐Ÿ‘Š

Karthik Srinivasan karthik20522

๐Ÿ‘Š
View GitHub Profile
#EXTM3U
#EXTINF:-1,US | ABC
http://cableking-iptv.com:8000/live/francesco/francesco/18463.ts
#EXTINF:-1,USA | ABC HD
http://cableking-iptv.com:8000/live/francesco/francesco/18455.ts
#EXTINF:-1,USA | A&E HD
http://cableking-iptv.com:8000/live/francesco/francesco/18458.ts
#EXTINF:-1,USA | ANIMAL PLANET
http://cableking-iptv.com:8000/live/francesco/francesco/18442.ts
#EXTINF:-1,USA | BBC WORLD NEWS
<html>
<head>
<style type="text/css">
body {
margin: 0;
padding: 0;
background: #EEE;
font: 10px/13px 'Lucida Sans',sans-serif;
}
.wrap {
@karthik20522
karthik20522 / logrotate.conf
Created October 13, 2015 18:35
logrotate.conf
/var/lib/docker/containers/*/*.log
{
daily
missingok
rotate 7
compress
notifempty
copytruncate
}
@karthik20522
karthik20522 / preview.sh
Created July 28, 2015 22:01
preview.sh
#!/bin/bash
FFMPEG=$1
INPUT_FILE=$2
OUTPUT_FILE=$3
STREAM_INDEX=$4
START_TIME=$5
DURATION=$6
if [[ -z $START_TIME || -z $DURATION ]]; then
@karthik20522
karthik20522 / gm_node.js
Created July 24, 2015 04:19
gm_node.js
var express = require('express');
var path = require('path');
var log = require('./libs/log')(module);
var size = require('request-image-size');
var fDld = require('fast-download');
var fs = require('fs');
var app = express();
var gm = require('gm');
var uuid = require('node-uuid');
@karthik20522
karthik20522 / ES_Query_Color.json
Created May 26, 2015 19:12
ES_Query_Color.json
{
"query": {
"function_score": {
"functions": [
{
"script_score": {
"script": "_score + log10(doc['views'].value * doc['rank'].value)"
}
}
],
https://github.com/pongr/bangarang/blob/4626c37fcc53004124a7aa6dae02b41c4ade1d79/src/test/scala/s3/AmazonS3ClientAsyncEval.scala
https://github.com/felixgborrego/lib-emr-manager/blob/885cb88e70f45fa1c49343aa9f6881ce105d408d/src/main/scala/aws/S3Client.scala
https://github.com/felixgborrego/lib-emr-manager/blob/885cb88e70f45fa1c49343aa9f6881ce105d408d/src/test/scala/S3ClientSpec.scala
https://github.com/gvolpe/aws-s3-file-uploader/blob/5b12fdc036b15fd86c07dcb5518dd9a49654baae/app/aws/AWSFileService.scala
{
"masterId": "450000116",
"contentId": "3a0ac8ba-0b1a-b945-9a3b-014cb8d3a14e",
"keyName": "EWSSubmission",
"transformedMetadata": {
"Caption": "TOKYO, JAPAN - MARCH 31: A business man walks under cherry blossom trees in full bloom in a park, on March 31, 2015 in Tokyo, Japan. During cherry blossom season thousands of people gather across Japan to practice 'Hanami' (Flower-viewing parties) the centuries old tradition of picnicking under a blooming Sakura tree. Hanami is said to have started during the Nara Period and still today people gather wherever cherry blossom trees are blooming and enjoy food and drinks often well into the night. As cherry blossom season coincides with the beginning of the new school year and the beginning of the business year many hanami parties are also used by companies and organizations to welcome new employees and bring staff together. The Cherry blossom season only lasts for an average of two weekends and the \\cherry blossom front\\ is forecast each year by the Ja
@karthik20522
karthik20522 / es_upgrade.sh
Last active January 27, 2016 15:42
es_upgrade in place
curl -X POST http://localhost:9200/_cluster/nodes/_local/_shutdown
wget https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.1.1/elasticsearch-2.1.1.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
rm -rf /usr/share/elasticsearch
mkdir /usr/share/elasticsearch
rsync -a elasticsearch/ /usr/share/elasticsearch
rm -rf /usr/share/elasticsearch/config
chmod -R 777 /usr/share/elasticsearch
@karthik20522
karthik20522 / sampl-xmp.xml
Created January 20, 2015 19:27
sampl-xmp.xml
$ exiftool.exe -xmp:all -g1 -json ../457180206.jpg
[{
"SourceFile": "../457180206.jpg",
"XMP-x": {
"XMPToolkit": "XMP Core 4.1.1"
},
"XMP-photoshop": {
"CaptionWriter": "/ma",
"DateCreated": "2014:11:11 23:10:00-05:00",
"AuthorsPosition": "Stringer",