Skip to content

Instantly share code, notes, and snippets.

View BenMatheja's full-sized avatar
🎯
Focusing

Ben Matheja BenMatheja

🎯
Focusing
  • Dr. ing. h.c. F. Porsche AG
  • Stuttgart
View GitHub Profile
@BenMatheja
BenMatheja / gist:6149886
Created August 4, 2013 09:44
HSQL - Logfile for bodega - Inserts working
/*C2*/SET SCHEMA PUBLIC
DISCONNECT
/*C3*/SET SCHEMA PUBLIC
create table Edge (ID bigint generated by default as identity (start with 1), CAPTION varchar(255) not null, end_ID bigint, start_ID bigint, primary key (ID))
create table Language (ID bigint generated by default as identity (start with 1), DESC varchar(255) not null, TITLE varchar(255) not null, primary key (ID))
create table Language_MODEL (Language_ID bigint not null, models_ID bigint not null, primary key (Language_ID, models_ID), unique (models_ID))
create table MODEL (ID bigint generated by default as identity (start with 1), TITLE varchar(255), language_ID bigint, primary key (ID))
create table MODEL_Edge (Model_ID bigint not null, edges_ID bigint not null, primary key (Model_ID, edges_ID), unique (edges_ID))
create table Project (ID bigint generated by default as identity (start with 1), primary key (ID))
create table Vertex (ID bigint generated by default as identity (start with 1), caption varchar(255) not null, primary key (ID))
@echo off
rem Carnot application launch script
rem (C) 2000-2011 SunGard CSA LLC
rem
rem You can affect the behaviour of this script with the following environment variables
rem described in the CARNOT documentation:
rem
rem CARNOT_HOME: The location of the carnot distribution
rem CARNOT_WORK: The location of your private settings
rem CARNOT_CLASSPATH: A fixed classpath to use if you want to prevent automatic classpath assembly
CREATE TABLE Infinity.activity_instance (oid BIGINT AUTO_INCREMENT PRIMARY KEY, state INT, startTime BIGINT, lastModificationTime BIGINT, model BIGINT, activity BIGINT, currentPerformer BIGINT, currentUserPerformer BIGINT, performedBy BIGINT, currentDepartment BIGINT, processInstance BIGINT) TYPE=InnoDB;
CREATE UNIQUE INDEX activity_inst_idx1 ON Infinity.activity_instance(oid);
CREATE INDEX activity_inst_idx2 ON Infinity.activity_instance(currentPerformer, currentDepartment);
CREATE INDEX activity_inst_idx3 ON Infinity.activity_instance(currentUserPerformer, currentPerformer, currentDepartment);
CREATE INDEX activity_inst_idx4 ON Infinity.activity_instance(performedBy);
CREATE INDEX activity_inst_idx5 ON Infinity.activity_instance(processInstance);
CREATE INDEX activity_inst_idx6 ON Infinity.activity_instance(startTime, activity, state);
CREATE INDEX activity_inst_idx7 ON Infinity.activity_instance(state);
CREATE INDEX activity_inst_idx8 ON Infinity.activity_instance(activity, processInstance);
@BenMatheja
BenMatheja / gist:9230138
Last active May 24, 2023 05:00
mopidy port 80 proxy pass with nginx on raspberry pi
sudo apt-get update
sudo apt-get install nginx
sudo service nginx start
sudo vi /etc/nginx/sites-enabled/default
##### VI output, oder nano jenachdem mit was du die ändern willst ###
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
hello
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#!/bin/bash
#
# This starts and stops shairport
#
### BEGIN INIT INFO
# Provides: shairport
# Required-Start: $network
# Required-Stop:
# Short-Description: shairport - Airtunes emulator!
# Description: Airtunes emulator!
@BenMatheja
BenMatheja / gist:10068241
Last active August 29, 2015 13:58
CUPS Configuration for RaspberryPI
#
# "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $"
#
# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn
After import eclipse might complain about different java facets version.
Solution: In the properties of the affected project, choose Project Facets on the left side and change the Java version to use to 1.6
-persistence-test project displays a high number of various errors after import
no solution, but apparently not necessary to run the project
After trying to refactor the project names, an XML Problem (Attribute "xmlns" was already specified for element "web-app".) appears for -Web project
Solution: remove one xmlns definition in line 2 of the web.xml
At server startup, it might complain in the console about missing hsql dependencies