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
error_reporting(E_ALL ^ E_NOTICE); | |
ini_set('log_errors', true); | |
if (version_compare(PHP_VERSION, '5.2.4') >= 0) { | |
// running 5.2.4 or newer | |
ini_set('display_errors', 'stderr'); | |
} else { | |
ini_set('display_errors', false); | |
} |
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
Replace this code: | |
/* Create an Array of people to be called */ | |
$people = array( | |
0 => "415-555-1234", | |
1 => "415-555-2345", | |
2 => "415-555-3456" | |
); | |
With this: |
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
<Response> | |
<Dial action="recording_hook.php"> | |
<Conference startConferenceOnEnter="true" endConferenceOnExit="true" record="true">DrPepper</Conference> | |
</Dial> | |
</Response> |
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
twiml.php changes | |
33a34,35 | |
> $ring_timeout = AppletInstance::getValue('ring_timeout', 20); | |
> | |
126c128 | |
< $dial = $response->addDial(array('action' => current_url(), 'timeout' => 5)); | |
--- | |
> $dial = $response->addDial(array('action' => current_url(), 'timeout' => $ring_timeout)); |
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
[root@upsilon ~]# cat /etc/yum.repos.d/remi.repo | |
[remi] | |
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch | |
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/ | |
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror | |
enabled=0 | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi | |
failovermethod=priority |
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
provisioner "local-exec" { | |
command = "docker-machine create -d generic --generic-ssh-user=ubuntu --generic-ip-address=${self.public_ip} --generic-ssh-key ${var.key_path} --engine-opt dns=172.17.42.1 --engine-opt dns-search=service.consul discovery-${count.index}" | |
} | |
provisioner "local-exec" { | |
command = "docker --tlsverify --tlscacert=\"$HOME/.docker/machine/machines/discovery-${count.index}/ca.pem\" --tlscert=\"$HOME/.docker/machine/machines/discovery-${count.index}/cert.pem\" --tlskey=\"$HOME/.docker/machine/machines/discovery-${count.index}/key.pem\" -H=tcp://${self.public_ip}:2376 ps" | |
} |
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
{{range services}} | |
{{if .Name | regexMatch "data*"}} | |
listen http-in | |
bind *:{{env "ENTERPRISE_BIND"}}{{range service .Name}} | |
server {{.Node}}{{.Port}} {{.Address}}:{{.Port}}{{end}} | |
{{end}} | |
{{end}} |
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
{{range services}} | |
{{.Name | regexMatch "manager"}} | |
listen http-in | |
bind *:{{key "service/{{.Name}}/bindport"}} | |
{{range service .Name}} | |
server {{.Node}} {{.Address}}:{{.Port}}{{end}} | |
{{end}} |
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
logspout: | |
image: gliderlabs/logspout:master | |
volumes: /var/run/docker.sock:/tmp/docker.sock |
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
### Keybase proof | |
I hereby claim: | |
* I am andrewwatson on github. | |
* I am andywatson (https://keybase.io/andywatson) on keybase. | |
* I have a public key whose fingerprint is A73A DC6B 059F FC6C A0D0 AC71 6AA2 5555 E811 C05C | |
To claim this, I am signing this object: |