Skip to content

Instantly share code, notes, and snippets.

View piwer's full-sized avatar

Maciej Staron piwer

  • Future Processing
View GitHub Profile
@jonashackt
jonashackt / bash
Last active December 1, 2021 01:45
Remote debugging Spring Boot
### java -jar
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=y -jar target/cxf-boot-simple-0.0.1-SNAPSHOT.jar
### Maven
Debug Spring Boot app with Maven:
mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8001"
@mdeous
mdeous / pgmigrate.sh
Created February 2, 2014 13:31
Automated schema migration for PostgreSQL
#!/bin/bash
#
# Script: pgmigrate.sh
# Author: Mathieu D. (MatToufoutu)
# Description: Automated schema migration for PostgreSQL
# Usage: ./pgmigrate.sh DATABASE MIGRATIONS_FOLDER
#
# Details:
# Just store the .sql migrations scripts in a folder, file
# names must be incremental numbers (1.sql, 2.sql, ...).