Skip to content

Instantly share code, notes, and snippets.

View plamola's full-sized avatar

Matthijs Dekker plamola

View GitHub Profile
@plamola
plamola / docker-compose.yml
Created February 22, 2021 06:29
Example docker-compose file to run Joplin server
version: '3'
services:
app:
environment:
- APP_BASE_URL=https://subdomain.example.com
- APP_PORT=22300
- POSTGRES_PASSWORD=joplin
- POSTGRES_DATABASE=joplin
- POSTGRES_USER=joplin
@plamola
plamola / domain_objects_v1x.xml
Created May 24, 2019 07:04
Plugwise Anna v1.8.20 domain_objects example
<?xml version="1.0" encoding="UTF-8"?>
<domain_objects>
<module id="4988de1959064de18b0b08d0df1d14f7">
<vendor_name />
<vendor_model />
<hardware_version />
<firmware_version />
<upgrade />
<created_date>2019-04-18T05:01:15.603+02:00</created_date>
<modified_date>2019-05-23T08:48:03.549+02:00</modified_date>
@plamola
plamola / ModifiedPooledJdbcRelationalStorage.scala
Created April 19, 2015 12:38
Fix to get Activate 1.7 to work with Postgres, using the PGSimpleDataSource
import javax.sql.DataSource
import com.zaxxer.hikari.{HikariConfig, HikariDataSource}
import net.fwbrasil.activate.storage.relational.PooledJdbcRelationalStorage
/**
* The PGSimpleDataSource does not support the url parameter, but requires a databaseName, serverName and portNumber.
* This trait is a slightly modified version of the net.fwbrasil.activate.storage.relational.PooledJdbcRelationalStorage
*/
trait ModifiedPooledJdbcRelationalStorage extends PooledJdbcRelationalStorage {