This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"query": { | |
"function_score": { | |
"functions": [ | |
{ | |
"script_score": { | |
"script": "_score + log10(doc['views'].value * doc['rank'].value)" | |
} | |
} | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/lib/docker/containers/*/*.log | |
{ | |
daily | |
missingok | |
rotate 7 | |
compress | |
notifempty | |
copytruncate | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
margin: 0; | |
padding: 0; | |
background: #EEE; | |
font: 10px/13px 'Lucida Sans',sans-serif; | |
} | |
.wrap { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
npm install async | |
npm install request | |
npm install fs | |
npm install shuffle-array | |
npm install string-format | |
usage: node index.js fileWithMasterIds.txt | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
function usage { | |
echo >&2 "Usage: $0 [ -e environment -n service_name -a action ]" | |
exit 1 | |
} | |
while getopts ":n:e:a:" FLAG; do | |
case $FLAG in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function check_rmq_version { | |
rmq_version=$(sudo rabbitmqctl status | grep "rabbit," | cut -d',' -f3 | cut -d'}' -f1 | tr -d '"') | |
echo && echo " Version = $rmq_version" && echo | |
} | |
function stop_rmq { | |
echo "Stopping RabbitMQ..." | |
sudo service rabbitmq-server stop | |
} |