$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Say voice="Polly.Ricardo" language="pt-BR">Hello World</Say> | |
<Say voice="Polly.Vitoria" language="pt-BR">Hello World</Say> | |
</Response> |
require "csv" | |
require "httparty" | |
DATA_FILE = "tmp/maap_numbers.csv".freeze | |
API_ENDPOINT = "https://scfm.somleng.org/api/contact_data".freeze | |
API_KEY = "REPLACE_ME_WITH_SCFM_API_KEY".freeze | |
def create_contact!(row) | |
response = HTTParty.post( | |
API_ENDPOINT, |
p SensorEvent.where("payload->>'created_at' = '0000-00-00 00:00:00 UTC+7'").delete_all | |
p SensorEvent.where("payload->'created_at' is not null").update_all("created_at = (payload->>'created_at')::timestamp without time zone") |
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Play>https://s3.ap-southeast-1.amazonaws.com/audio.ews1294.info/9a7fee16-9d09-48fd-a25e-d0ade953d947-SampleAudio.mp3</Play> | |
</Response> |
#!/usr/bin/env ruby | |
RESULTS_FILE = "test_mt_results.json" | |
ACCOUNT_SID = "REPLACE_ME" | |
AUTH_TOKEN = "REPLACE ME" | |
CALLER_ID = "345" | |
require 'httparty' | |
results = {} |
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Say>Please record your message after the tone</Say> | |
<Record action="https://requestb.in/1m351lo1" recordingStatusCallback="https://requestb.in/ysgqk6ys"/> | |
</Response> |
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Gather action='https://requestb.in/15x8rjs1' timeout='60'> | |
<Say>Please press 1 or say sales for sales.</Say> | |
</Gather> | |
</Response> |
<form action="" method="POST"> | |
<script | |
src="https://js.bongloy.com/assets/checkout.js" class="bongloy-button" | |
data-key="pk_test_2411c55a75ad6d004eaaf240f99b577dec6d6630789c06a23639967ae3c10572" | |
data-image="http://www.mcwade.com/DesignTalk/wp-content/uploads/2009/02/cokeredcircle.jpg" | |
data-name="Coca-Cola Cambodia" | |
data-description="Invoice ($235.00)" | |
data-label="Pay Coca-Cola Invoice" | |
data-amount="23500"> | |
</script> |
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Record/> | |
</Response> |