-
dependencies view
-
jaeger - http://jaeger.readthedocs.io/en/latest/architecture/
-
example app walkthrough: https://medium.com/opentracing/take-opentracing-for-a-hotrod-ride-f6e3141f7941
-
opentracing spec: https://github.com/opentracing/specification/blob/master/specification.md
This file contains 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
SELECT | |
pid, application_name, query, state, state_change | |
FROM pg_stat_activity | |
WHERE usename = CURRENT_USER | |
ORDER BY state_change desc; |
This file contains 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
package http | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
gohttp "net/http" | |
"github.com/mindscratch/artifact-manager/core" | |
) |
This file contains 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
<script> | |
angular.module('myapp') | |
.component("parent", { | |
bindings: { | |
childTemplateUrl: '@?' | |
} | |
}) | |
.component("child", { | |
bindings: { | |
customTemplateUrl: '@?' |
This file contains 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
package main | |
import ( | |
“net/http” | |
“net/http/httptest” | |
“testing” | |
) | |
fun TestHandler(t *testing.T) { | |
req, err := http.NewRequest( |
This file contains 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
{ | |
"id": "/test", | |
"cmd": null, | |
"cpus": 0.2, | |
"mem": 128, | |
"disk": 0, | |
"instances": 1, | |
"constraints": [["gpus", "LIKE", "enabled"]], | |
"container": { | |
"type": "MESOS", |
This file contains 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
/* A function that performs a download via the DOM */ | |
var download = function(model) { | |
var downloadEl = $document[0].createElement('a'); | |
var id = model.id; | |
var fileName = model.filename; | |
downloadEl.setAttribute('href', 'API/documents/' + id + '/download'); | |
downloadEl.setAttribute('download', fileName); | |
downloadEl.style.display = 'none'; | |
document.body.appendChild(downloadEl); | |
downloadEl.click(); |
I used docker compose to stand up MariaDB and Apache web server in containers.
I'm using php7 with CentOS 7.2. I had to install "php70w-pecl-xdebug.x86_64". I also added the following the Dockerfile
RUN echo "xdebug.idekey = PHPSTORM" >> /etc/php.d/xdebug.ini &&
echo "xdebug.default_enable = 0" >> /etc/php.d/xdebug.ini &&
echo "xdebug.remote_enable = 1" >> /etc/php.d/xdebug.ini &&
echo "xdebug.remote_autostart = 0" >> /etc/php.d/xdebug.ini && \
Still need to organize and cleanup.
- pointers provide efficiency b/c we can reference things on heap, tradefoff is having to have GC
- value symantics mean things use the stack, doesn't use heap
- data segment - globals, literals
- stack - go routine (2k per go routine)
This file contains 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
$ terraform apply | |
var.do_token | |
Enter a value: <enter digital ocean token here> | |
digitalocean_droplet.web: Creating... | |
image: "" => "centos-7-2-x64" | |
ipv4_address: "" => "<computed>" | |
ipv4_address_private: "" => "<computed>" | |
ipv6_address: "" => "<computed>" | |
ipv6_address_private: "" => "<computed>" |