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
~/P/F/l/scripts β―β―β― ./stream_file_out.sh ~/Downloads/serenity_trailer.mp4 flocasts-om3.vorigin.scaleengine.net/REDACTED redline-and-streaming β± βΌ | |
ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers | |
built with Apple LLVM version 8.1.0 (clang-802.0.42) | |
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda | |
libavutil 55. 58.100 / 55. 58.100 | |
libavcodec 57. 89.100 / 57. 89.100 | |
libavformat 57. 71.100 / 57. 71.100 | |
libavdevice 57. 6.100 / 57. 6.100 | |
libavfilter 6. 82.100 / 6. 82.100 | |
libavresample 3. 5. 0 / 3. 5. 0 |
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
#!/usr/bin/env ruby | |
require 'rest-client' | |
require 'json' | |
require 'pp' | |
opts = { | |
threads: '1', | |
rampup: '0', | |
drm_key: 'REDACTED', |
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 gor = require("goreplay_middleware"); | |
var statsd = require('dogstatsd-node').StatsD, | |
client = new statsd(); | |
gor.init(); | |
gor.on("request", function(req) { | |
// Don't process healthchecks | |
if (gor.httpPath(req.http) != '/ping') { |
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
count = 0 | |
starting_after = nil | |
while true | |
customers = Stripe::Customer.all(limit: 100, starting_after: starting_after, created: {'gt' => 1487462400}) | |
break if customers.data.length == 0 | |
cus_threads = [] | |
customers.each do |customer| | |
cus_threads << Thread.new { | |
time = Time::now.strftime("%Y/%m/%d-%H:%M:%S") |
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 | |
ENVIRONMENT=$1 | |
REGION=$2 | |
ELB=$3 | |
WORKERS=$4 | |
CURRENT_MINUTE=$(date -d now -u "+%M") | |
START_MINUTE=$(expr $(expr 60 + $CURRENT_MINUTE - 1) % 60) | |
START_DATE=$(date -u "+%Y-%m-%dT%H:$START_MINUTE:%S") |
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
server { | |
listen 5014; | |
server_name localhost; | |
<% upstream = node["app_www"]["upstream_host"][node["region"]] %> | |
<% if upstream.include? "tilt.net" %> | |
<% nameserver = "#{node['ipaddress'].scan(/^(\d+\.\d+).+/)[0][0]}.0.2" %> | |
resolver <%=nameserver%> valid=30s; | |
resolver_timeout 10s; | |
<% end %> |
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
π΅ππ | |
2 cf93eaf5ce66895c09431d3525f3329e36f8fc3c 1491851342614667565 1039032 | |
HTTP/1.1 200 OK | |
Server: nginx | |
Content-Type: text/html; charset=UTF-8 | |
X-Powered-By: PHP/5.5.38 | |
Set-Cookie: PHPSESSID=j2nku35tg2eleps3b4qo72mqc7; path=/ | |
Cache-Control: public, s-maxage=3600 | |
X-Cache-Tags: herobanner-53376,herobanner-53359,herobanner-53316,herobanner-53262,herobanner-53315,herobanner-53326,herobanner-52975,herobanner-34450,herobanner-53261,herobanner-53259,herobanner-53153,herobanner-53246,herobanner-53279,herobanner-53309,herobanner-53276,herobanner-53277,herobanner-53109,herobanner-53243,herobanner-52955,herobanner-53150,video-1165933,video-1165837,video-1165836,video-1165832,video-1165818,video-1165835,coverage-254456,home | |
Vary: Host, X-Requested-With |
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 gor = require("goreplay_middleware"); | |
gor.init(); | |
let sessionMap = {}; | |
gor.on("request", function(req) { | |
// Don't replay health-checks | |
if (gor.httpPath(req.http) != '/ping') { |
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
#!/usr/bin/env ruby | |
require 'file/tail' | |
require 'http_log_parser' | |
require 'time' | |
parser = HttpLogParser.new | |
UPDATE_INTERVAL = 10 #Sec | |
ALERT_INTERVAL = 120 #Sec |
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
#!/usr/bin/env ruby | |
require 'http_log_parser' | |
require 'timeout' | |
parser = HttpLogParser.new | |
UPDATE_INTERVAL = 10 #Sec | |
ALERT_INTERVAL = 120 | |
ALERT_THRESHOLD = 10 #RPS |