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
openapi: 3.0.0
info:
title: Ref test
version: 0.0.1
paths:
"/objects":
post:
operationId: object_create
@RockyMM
RockyMM / gist:b3c5d8f1569e2b7501836c3e2bf636b9
Created February 12, 2024 17:34
azurerm_key_vault_key bug
This file has been truncated, but you can view the full file.
capabilities\":\"SupportsExtension\"},{\"resourceType\":\"events\",\"locations\":[],\"apiVersions\":[\"2023-10-01-preview\",\"2023-07-01-rc\",\"2022-10-01-rc\",\"2022-10-01\",\"2022-05-01-rc\",\"2022-05-01\",\"2020-09-01-rc\",\"2018-07-01-rc\",\"2018-07-01\"],\"capabiliti
es\":\"SupportsExtension\"},{\"resourceType\":\"metadata\",\"locations\":[],\"apiVersions\":[\"2023-10-01-preview\",\"2023-07-01-rc\",\"2023-07-01-preview\",\"2023-07-01-beta\",\"2023-07-01-alpha\",\"2022-10-01-rc\",\"2022-10-01-preview\",\"2022-10-01-beta\",\"2022-10-01-
alpha\",\"2022-10-01\",\"2018-07-01-rc\",\"2018-07-01-preview\",\"2018-07-01-beta\",\"2018-07-01-alpha\",\"2018-07-01\"],\"capabilities\":\"None\"},{\"resourceType\":\"emergingissues\",\"locations\":[],\"apiVersions\":[\"2023-10-01-preview\",\"2023-07-01-rc\",\"2023-07-01
-preview\",\"2023-07-01-beta\",\"2023-07-01-alpha\",\"2022-10-01-rc\",\"2022-10-01-preview\",\"2022-10-01-beta\",\"2022-10-01-alpha\",\"2022-10-01\",\"2018-11-06-beta\",\"2018-07-01-rc\",\"2018-07-01-previ