Skip to content

Instantly share code, notes, and snippets.

View thecodeassassin's full-sized avatar

TheCodeAssassin thecodeassassin

View GitHub Profile
@thecodeassassin
thecodeassassin / hls_test.sh
Last active October 28, 2020 14:36
Test script to compare origins / CDNs for HLS streams
#!/bin/bash
export path=$1
export quality=$2
export base_url_1=https://some-base.url
export base_url_2=https://some-base.url
rand_file=$(openssl rand -hex 6)
current_segment=0
def httpWithEntity[A](method: HttpMethod, uri: String, body: Option[RequestEntity], headers: List[(String, String)] = jsonHeaders, logError: Boolean = true)(implicit mf: scala.reflect.Manifest[A]): Future[A] = {
val requestLog = s"[${method.toString} $uri]"
val requestUri = Uri(uri)
val requestHeaders = headers.map { header ⇒ HttpHeader.parse(header._1, header._2) } collect {
case ParsingResult.Ok(h, _) ⇒ h
}
{
"Working Directory" : "\/Users\/stephen",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 0,
"Red Component" : 0,
"Blue Component" : 0
},
"Rows" : 25,
"Ansi 11 Color" : {
Terraform Version: 0.7.0
Resource ID: google_compute_instance_template.legacy
Mismatch reason: extra attributes: metadata.shutdown-script, metadata.startup-script
Diff One (usually from plan): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff{"scheduling.0.automatic_restart":*terraform.ResourceAttrDiff{Old:"", New:"true", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "name_prefix":*terraform.ResourceAttrDiff{Old:"", New:"legacy-web-", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "network_interface.0.access_config.#":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "metadata.%":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "machine_ty
@thecodeassassin
thecodeassassin / keybase.md
Created April 1, 2014 12:26
proof keybase

Keybase proof

I hereby claim:

  • I am thecodeassassin on github.
  • I am thecodeassassin (https://keybase.io/thecodeassassin) on keybase.
  • I have a public key whose fingerprint is AEC1 282D 309C 03FD 6BC8 37AF 0A21 D500 3D6D 228D

To claim this, I am signing this object:

include:
- webserver
mariadb_repo:
pkgrepo:
- managed
- keyid: '0xcbcb082a1bb943db'
- keyserver: keyserver.ubuntu.com
- name: deb http://repo.maxindo.net.id/mariadb/repo/5.5/ubuntu precise main