Skip to content

Instantly share code, notes, and snippets.

View RockyMM's full-sized avatar

Rade Martinović RockyMM

View GitHub Profile
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script set ownership for all table, sequence and views for a given database
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto
@RockyMM
RockyMM / StringJoiner (JDK 1.8)
Last active December 12, 2019 18:29 — forked from vlastikcz/StringJoiner (JDK 1.8)
IntelliJ Idea - toString() template w/ StringJoiner
public java.lang.String toString() {
return new java.util.StringJoiner(", ", "$class.name{", "}")
#set($i = 0)
#foreach($member in $members)
#if(!$member.modifierStatic)
#if($member.primitiveArray || $member.objectArray)
.add("$member.name=" + java.util.Arrays.toString($member.name))
#elseif ($member.string)
.add("$member.name='" + $member.accessor + "'")
#else