Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/jtag/drivers/buspirate.c b/src/jtag/drivers/buspirate.c
index 554d3e0..f40abdf 100644
--- a/src/jtag/drivers/buspirate.c
+++ b/src/jtag/drivers/buspirate.c
@@ -24,6 +24,7 @@
#endif
#include <jtag/interface.h>
+#include <jtag/swd.h>
#include <jtag/commands.h>
from base
# Install prerequisites
run apt-get update
run apt-get install -y software-properties-common
# Install java8
run add-apt-repository -y ppa:webupd8team/java
run apt-get update
run echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
system = require('system')
host = system.env.VULCAIN_PORT_8080_TCP_ADDR
port = system.env.VULCAIN_PORT_8080_TCP_PORT
screenshot = casper.cli.get('screenshot') || 'error.png';
url = casper.cli.get('host') || 'http://'+host+':'+port;
casper.echo("## "+url)
from base
run apt-get update
run apt-get install -y curl
run cd /opt && curl -s -L -b oraclelicense=accept-securebackup-cookie http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz | tar xvz
run cd /opt && ln -s jdk1.7.0_51 jdk7
env JAVA_HOME /opt/jdk7
from base
run apt-get update
run apt-get install -y curl
run cd /opt && curl -s -L -b oraclelicense=accept-securebackup-cookie http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz | tar xvz
run cd /opt && ln -s jdk1.7.0_51 jdk7
env JAVA_HOME /opt/jdk7
@jcheype
jcheype / run.sh
Last active August 29, 2015 14:00
#!/bin/bash
#start MongoDB
/opt/mongodb/bin/mongod --noprealloc --quiet -dbpath /data/db --fork --nojournal --logpath /opt/mongodb/mongodb.log 2>/dev/null
echo MongoDB STARTED
#start H2
#java -jar /opt/h2/h2.jar 2>&1 > /dev/null &
# download and deploy app
@jcheype
jcheype / run.sh
Last active August 29, 2015 14:00
#!/bin/sh
#start MongoDB
/usr/bin/mongod -dbpath /data/db --fork -journal --logpath /opt/mongodb.log
#start H2
java -jar /opt/h2/h2.jar 2>&1 > /dev/null &
# download and deploy app
cd /opt/tomcat/webapps/
@jcheype
jcheype / start.sh
Last active August 29, 2015 14:00
start nabalive in docker
#!/bin/sh
/usr/bin/mongod -dbpath /data/db --fork -journal --logpath /opt/mongodb.log
cd /opt/projects/NabAlive
git pull
mvn clean install
mvn -f web/pom.xml exec:java -DfrenchTtsUrl=http://localhost/
package com.vidal.bo.monoviewer.util;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
/**
* Created with IntelliJ IDEA.
* User: jcheype
* Date: 02/08/13
is_end_of_tag = (char)-> char is '>'
is_start_of_tag = (char)-> char is '<'
is_whitespace = (char)-> /^\s+$/.test char
is_tag = (token)-> /^\s*<[^>]+>\s*$/.test token
isnt_tag = (token)-> not is_tag token
class Match
constructor: (@start_in_before, @start_in_after, @length)->
@end_in_before = (@start_in_before + @length) - 1
@end_in_after = (@start_in_after + @length) - 1