Open your terminal.
In the root directory run the command:
sudo nano /etc/bluetooth/main.conf
| # www.fduran.com | |
| # Create Java KeyStore from SSL certificate for domain example.com | |
| # Change format from cert.crt PEM (----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----) to DER | |
| openssl x509 -in cert.crt -inform PEM -out cert.der -outform DER | |
| # create KeyStore cert.jks for your domain ("alias" in keytool, "common name" or CN in openssl req) | |
| keytool -import -trustcacerts -alias example.com -file cert.der -keystore cert.jks |
| user nginx; | |
| worker_processes 2; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
| import java.util.Scanner; | |
| public class Binary | |
| { | |
| public static String convertToBinary(int decnumber) | |
| { | |
| String binaryString = " "; | |
| if (decnumber > 0) | |
| { | |
| binaryString = Integer.toBinaryString(decnumber); |
| <flow name="RouteByExceptionType"> | |
| <jms:inbound-endpoint queue="in"> | |
| <jms:transaction action="ALWAYS_BEGIN" /> | |
| </jms:inbound-endpoint> | |
| <test:component/> | |
| <jms:outbound-endpoint queue="out"> | |
| <jms:transaction action="ALWAYS_JOIN" /> | |
| </jms:outbound-endpoint> | |
| <choice-exception-strategy> | |
| <catch-exception-strategy when="exception.causedBy(com.company.BusinessException)"> |
The first step is to remove older version of PostGIS if any.
sudo apt-get purge postgis
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
| # one way w/o web interface: | |
| # java -jar lib/playbooks/servers/files/logstash-1.1.1-monolithic.jar agent -f lib/playbooks/servers/files/logstash.conf | |
| # another with a web interface(http://localhost:9292) : | |
| # java -jar lib/playbooks/servers/files/logstash-1.1.1-monolithic.jar agent -f lib/playbooks/servers/files/logstash.conf -- web --backend 'elasticsearch:///?local' | |
| # nc localhost 3333 < logfile | |
| # | |
| # When you are all done, you can delete the 'data' folder to delete the database. | |
| input { | |
| tcp { |
| var Hapi = require('hapi'); | |
| var Bell = require('bell'); | |
| var AuthCookie = require('hapi-auth-cookie'); | |
| var server = new Hapi.Server(); | |
| server.connection({ port: 9001 }); | |
| server.register([Bell, AuthCookie], function (err) { | |
| if (err) { |
| notes on getting m2e to work in studio 3.4: | |
| 1. Needed to use settings.xml mirrors to avoid dev.ee.mulesource.com. This is coming from muleesb-3.4-M3.pom. | |
| <mirrors> | |
| <mirror> | |
| <id>mule-ee-proxy</id> | |
| <name>Hack to not use dev.ee.mulesource.com</name> | |
| <url>https://repository.mulesoft.org/releases/</url> | |
| <mirrorOf>mule-ee-releases,mule-ee-snapshots,libs-releases,ext-releases</mirrorOf> |
| <persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" | |
| version="2.0"> | |
| <persistence-unit name="defaultPersistenceUnit" transaction-type="RESOURCE_LOCAL"> | |
| <provider>org.hibernate.ejb.HibernatePersistence</provider> | |
| <non-jta-data-source>DefaultDS</non-jta-data-source> | |
| <properties> | |
| <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/> | |
| <!-- <property name="hibernate.hbm2ddl.auto" value="create"/> --> |