We use an AWS Lambda function for the callback handler. It accepts requests with query params for the qualification (complete or quality_term) and the tap id, which are passed through Survey Monkey on survey completion. The hash is generated and appended to the callback URL as outlined in the documentation here: http://docs.tapresearch.com/#callbacks The function then calls that URL with a GET and logs the callback URL and any success/failure. Though the callback URL returns a 200 request, we never see successfully completions in TAP campaigns. We end up seeing incompletes, abandons, and Failed partner callback security check
.
Outline
- What is Go?
- compiled, statically typed, non object-oriented language
- C-like structure
- Native support for handling concurrency and threads (via goroutines)
- Basic structure of a go program
- Package naming
- packages live in a subdirectory of the same name with their test files
- generally do not contain main methods, but they can
- Package naming
- Main file/method
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
# Source: templates/deployment.yaml | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: canary-deployment | |
namespace: openfaas-fn | |
labels: | |
app: openfaas-fn | |
helm.sh/chart: renderer-0.1.0 | |
app.kubernetes.io/instance: renderer-canary |
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
--- | |
apiVersion: openfaas.com/v1alpha2 | |
kind: Function | |
metadata: | |
name: example-function | |
namespace: openfaas-fn | |
spec: | |
name: renderer | |
image: example-image:latest | |
environment: |
- What does your day to day look like?
- How does pairing work on your team?
- Do you usually work solo or is there a lot of pairing?
- Who decides what to work on? How is work divided up?
- What kinds of projects are your team responsible for?
- How do code reviews work on your team?
- Tell me something you love about working here.
- Tell me something you don't love about working here.
- Who is the ideal person for this role?
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
[00:00:00] Build started | |
[00:00:00] git clone -q [email protected]:sensu/sensu-go.git c:\gopath\src\github.com\sensu\sensu-go | |
[00:00:41] git fetch -q origin +refs/pull/1546/merge: | |
[00:00:42] git checkout -qf FETCH_HEAD | |
[00:00:42] Running Install scripts | |
[00:00:42] rmdir c:\go /s /q | |
[00:00:42] appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-%GOARCH%.msi | |
[00:00:46] | |
[00:00:46] Downloading go1.10.windows-386.msi (100,265,984 bytes)...1% | |
[00:00:46] Downloading go1.10.windows-386.msi (100,265,984 bytes)...10% |
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
ok github.com/sensu/sensu-go/backend/pipelined 0.030s | |
time="2018-05-16T17:14:52Z" level=info msg="listening for peers on " component=etcd pkg=embed | |
time="2018-05-16T17:14:52Z" level=info msg="http://127.0.0.1:40271" component=etcd pkg=embed | |
time="2018-05-16T17:14:52Z" level=info msg="listening for client requests on " component=etcd pkg=embed | |
time="2018-05-16T17:14:52Z" level=info msg="127.0.0.1:35925" component=etcd pkg=embed | |
time="2018-05-16T17:14:52Z" level=info msg="listening for peers on " component=etcd pkg=embed | |
time="2018-05-16T17:14:52Z" level=info msg="http://127.0.0.1:39894" component=etcd pkg=embed | |
time="2018-05-16T17:14:52Z" level=info msg="listening for client requests on " component=etcd pkg=embed | |
time="2018-05-16T17:14:52Z" level=info msg="127.0.0.1:38802" component=etcd pkg=embed | |
time="2018-05-16T17:14:52Z" level=info msg="name = default" component=etcd pkg=etcdserver |
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
package main | |
import ( | |
"fmt" | |
) | |
func appendUnique(list []string) []string { | |
// initialize a map of string keys and boolean values for | |
// keeping track of list entries we've seen. | |
uniqueKeys := make(map[string]bool) |
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
<!-- | |
To use this plist file, edit the string (name), and save it to ~/Library/LaunchAgents. | |
Make sure the file is owned by root. To start the plist, enter the following commands: | |
sudo launchctl load com.mercmotivator.cron.plist | |
And you're done! The plist will now run autmatically every 30 minutes, unless you decide | |
to change the time interval. | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.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
#!/bin/bash | |
# Pick a random mac voice out of the list below, and then pick a random action to say. | |
voices=( | |
Alex | |
Bells | |
Bruce | |
Cellos | |
Daniel | |
Fiona |
NewerOlder