Skip to content

Instantly share code, notes, and snippets.

View grampelberg's full-sized avatar

Thomas Rampelberg grampelberg

View GitHub Profile
@grampelberg
grampelberg / deploy.bash
Last active August 29, 2015 13:56
auto-deploy
#!/bin/bash
set -o errexit -o nounset -o pipefail
function -h {
cat <<USAGE
USAGE: deploy.bash
This will bootstrap a git checkout of the repo and then try to deploy it.
USAGE
}; function --help { -h ;} # A nice way to handle -h and --help
$(function() {
var day = new Date().getDay();
var opener = {
button: function() {
$("<button>Open in tabs</button>").prependTo("#right_bar").click(opener.in_tabs);
},
in_tabs: function() {
$(".bookmark").each(function(k, e) {
To get started with Docker/Marathon/Mesos, you need to install a
new Mesos, a new Marathon, and Deimos, the bridge to Docker.
You'll also need Docker and the JVM. These instructions are for
Fedora 20.
## Install Mesos prerequisites
:; sudo yum install zookeeper-server java-1.7.0-openjdk python-setuptools curl python-pip python-devel
:; sudo cp /etc/zookeeper/zoo_sample.cfg /etc/zookeeper/zoo.cfg
:; echo 1 | sudo dd of=/var/lib/zookeeper/data/myid
{
"container": {
"image": "docker:///libmesos/ubuntu"
},
"id": "ubuntu",
"instances": "1",
"cpus": ".5",
"mem": "512",
"uris": [ ],
"cmd": "while true; do sleep 10; done"
FROM stackbrew/centos:centos6
MAINTAINER Mesosphere support@mesosphere.io
RUN yum -y install wget
RUN wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && \
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && \
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
RUN yum -y groupinstall "Development tools"
RUN yum -y install \
make \
function travelDates () {
dateArray = new Array();
for (i=0; i < document.getElementsByName("date").length; i++) {
dateArray[i] = new Date(document.getElementsByName("date")[i].value);
}
badDates = 0;
for (i=0; i < dateArray.length - 1; i++) {
if (dateArray[i] < dateArray[i+1]) {
alert ("good");
function travelDates (elementName) {
dateArray = new Array();
for (i=0; i < document.getElementsByName(elementName).length; i++) {
dateArray[i] = new Date(document.getElementsByName(elementName)[i].value);
}
blankDates = 0;
for (i=0; i < document.getElementsByName(elementName).length; i++) {
if (document.getElementsByName(elementName)[i] == "MM/YY/YYYY" ||
document.getElementsByName(elementName)[i] == "") {
<?php
$isTALoggedIn = true;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Multidestination Search - classicvacations.com</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/search.css" />
<?php
$isTALoggedIn = true;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Multidestination Search - classicvacations.com</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/search.css" />
java.lang.Exception
at aaa$A.hashCode(aaa.scala:4)
at scala.collection.mutable.HashTable$class.elemHashCode(HashTable.scala:154)
at scala.collection.mutable.HashMap.elemHashCode(HashMap.scala:33)
at scala.collection.mutable.HashTable$class.findEntry(HashTable.scala:66)
at scala.collection.mutable.HashMap.findEntry(HashMap.scala:33)
at scala.collection.mutable.HashMap.findEntry(HashMap.scala:33)
at scala.collection.mutable.DefaultMapModel$class.update(DefaultMapModel.scala:38)
at scala.collection.mutable.HashMap.update(HashMap.scala:33)
at aaa$.main(aaa.scala:16)