Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mentiflectax's full-sized avatar

Mentiflectax mentiflectax

View GitHub Profile
@mentiflectax
mentiflectax / test01.toml
Created March 11, 2020 07:47
TOML problems
title = "Austrohungarian troops vented their anger on civilians because they could not win the war"
# Possible types
# TA - Thalerhof Almanac
# AS - Austrian source
type = "TA"
[english]
translation_type = "Gist"
content = '''
Austrohungarian military felt that it would lose the war, and therefore vented their anger by abusing inhabitants of Galicia in most curel ways.
@mentiflectax
mentiflectax / gist:dfbcbce6dc6c92d90b7823ce803cfacb
Created February 25, 2020 11:35
Spring Boot app's database connetion failure
org.postgresql.util.PSQLException: The connection attempt failed.
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:292) ~[postgresql-42.2.9.jar!/:42.2.9]
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49) ~[postgresql-42.2.9.jar!/:42.2.9]
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:211) ~[postgresql-42.2.9.jar!/:42.2.9]
at org.postgresql.Driver.makeConnection(Driver.java:458) ~[postgresql-42.2.9.jar!/:42.2.9]
at org.postgresql.Driver.connect(Driver.java:260) ~[postgresql-42.2.9.jar!/:42.2.9]
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) ~[HikariCP-3.4.1.jar!/:na]
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:353) ~[HikariCP-3.4.1.jar!/:na]
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:201) ~[HikariCP-3.4.1.jar!/:na]
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:473) ~[HikariCP-3.4.1.jar!/:na]
[ 6.462]
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[ 6.462] Build Operating System: Linux 4.4.0-170-generic x86_64 Ubuntu
[ 6.462] Current Operating System: Linux DP118M-Mint 5.3.0-26-generic #28~18.04.1-Ubuntu SMP Wed Dec 18 16:40:14 UTC 2019 x86_64
[ 6.462] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.3.0-26-generic root=UUID=4314f310-54e1-4bee-a885-5373e2f15581 ro quiet splash vt.handoff=1
[ 6.462] Build Date: 18 December 2019 08:15:29AM
[ 6.462] xorg-server-hwe-18.04 2:1.20.5+git20191008-0ubuntu1~18.04.1 (For technical support please see http://www.ubuntu.com/support)
[ 6.462] Current version of pixman: 0.34.0
[ 6.462] Before reporting problems, check http://wiki.x.org
@mentiflectax
mentiflectax / emacs
Created November 23, 2019 21:17
Emacs config v. 1
;; Evil mode (start)
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(add-to-list 'load-path "~/.emacs.d/evil")
(require 'evil)
@mentiflectax
mentiflectax / wft.g
Last active February 8, 2019 10:52
WFT Grammar starting point
grammar wft;
@header {
}
@lexer::header {
}
@members {
}
wftFile:
{
# Oracle Workflow Process Definition
# dbdrv: exec fnd bin WFLOAD bin &phase=daa+52 checkfile:~PROD:~PATH:~FILE \
# dbdrv: &ui_apps 0 Y UPGRADE @~PROD:~PATH/~FILE
# $Header$
VERSION_MAJOR = "2"
VERSION_MINOR = "6"
LANGUAGE = "GERMAN"
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<slf4j.version>1.7.25</slf4j.version>
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.CommandLineRunner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.core.env.StandardEnvironment;
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm@5.6.0
3 info using node@v8.11.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle deepstream.io@4.0.0-rc.5~prestart: deepstream.io@4.0.0-rc.5
6 info lifecycle deepstream.io@4.0.0-rc.5~start: deepstream.io@4.0.0-rc.5
7 verbose lifecycle deepstream.io@4.0.0-rc.5~start: unsafe-perm in lifecycle true
@mentiflectax
mentiflectax / config.yml
Created April 23, 2018 10:44
My DeepStream Configuration
# General
# Each server within a cluster needs a unique name. Set to UUID to have deepstream autogenerate a unique id
serverName: UUID
# Show the deepstream logo on startup (highly recommended)
showLogo: true
# Log messages with this level and above. Valid levels are DEBUG, INFO, WARN, ERROR, OFF
logLevel: INFO
# Directory where all plugins reside
libDir: /var/lib/deepstream