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 org.kafecho.learning.parser | |
import scala.util.parsing.combinator.RegexParsers | |
import java.net.URI | |
sealed trait SdpValue | |
sealed trait Username | |
case class UserLogin(login: String) extends Username | |
case object UserIdsNotSupported extends Username |
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
[httpd] | |
bind_address = 0.0.0.0 |
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
$p = Start-Process -FilePath "C:\Users\Guillaume\couchdb.exe" -ArgumentList "/VerySilent /CLOSEAPPLICATIONS /Log=C:\couchdb.txt" -Wait -PassThru | |
$p.WaitForExit() | |
if ($p.ExitCode -ne 0) { | |
throw "failed" | |
} |
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
/** | |
* Work in progress.... | |
* Let's try to port Eric Bidelman's demo (http://html5-demos.appspot.com/static/media-source.html) to ScalaJS. | |
* This is mostly a learning exercise. | |
* Only tested on Google Chrome (on OS X Yosemite). | |
*/ | |
package tutorial.webapp | |
import scala.scalajs.js.JSApp |
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
--- | |
- name: cache the rpms required to install HAProxy | |
shell: repotrack -p {{ rpms_root }} haproxy |
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
--- | |
- name: install HAProxy | |
shell: yum install -y haproxy --disablerepo=* --enablerepo=ansible | |
- name: customize HAProxy to serve HTTP traffic to the designated downstream servers | |
template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg owner=haproxy group=haproxy | |
notify: restart_haproxy | |
- name: ensure HAProxy is started and enabled at boot time | |
service: name=haproxy state=started enabled=yes |
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
[ansible] | |
name=Ansible | |
baseurl=http://{{ deployment_node_ip }}/rpms | |
enabled=1 | |
gpgcheck=0 |
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
#!/bin/sh | |
# Init script for couchdb | |
# Maintained by | |
# Generated by pleaserun. | |
# Implemented based on LSB Core 3.1: | |
# * Sections: 20.2, 20.3 | |
# | |
### BEGIN INIT INFO | |
# Provides: couchdb | |
# Required-Start: $remote_fs $syslog |
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
# The steps below are not necessary if an admin account as been created and port and bind address are already configured | |
# I already do this via Ansible | |
#- name: enable the cluster | |
# uri: HEADER_Content-Type="application/json" user=admin password=password force_basic_auth=yes method=POST url=http://127.0.0.1:5984/_cluster_setup body='{"action":"enable_cluster"}' | |
# when: inventory_hostname == "{{ groups.couches[0] }}" | |
# tags: enable_cluster | |
# ignore_errors: yes | |
# Register all the nodes that are part of the couches inventory group. | |
# Registration is done from the 1st node in that group. |
OlderNewer