Skip to content

Instantly share code, notes, and snippets.

condran / .gitconfig
Created Feb 13, 2019
How to have conditional config for personal and work git user accounts
View .gitconfig
# ~/.gitconfig
name = Firstname Lastname
email = <private email address>
[includeIf "gitdir:~/Work/"]
path = .gitconfig-work
condran /
Last active Jul 2, 2020
Spring Cloud Netflix with PATCH (client side)

Spring Cloud Netflix with PATCH (client side)

I have been researching Spring Boot and Spring Cloud, there are lots of goodies here but as with all technology there are gotchas.

Feign Client does not support PATCH out of the box! ಠ_ಠ ... ಠ~ಠ ... ⊙︿⊙

You might see an error like this if you try to use RequestMethod.PATCH in your @FeignClient interface: Invalid HTTP method: PATCH

I am using the current versions:

condran / query_fk_mssql.sql
Created Feb 29, 2016
Query all foreign keys SQL Server
View query_fk_mssql.sql
SELECT AS FK_NAME, AS [schema_name], AS [table], AS [column], AS [referenced_table], AS [referenced_column]
FROM sys.foreign_key_columns fkc
INNER JOIN sys.objects obj
ON obj.object_id = fkc.constraint_object_id
INNER JOIN sys.tables tab1
condran / IDETextKeyBindingSet.plist
Created Jun 29, 2012
Duplicate Current Line - Append to /Applications/
View IDETextKeyBindingSet.plist
<key>Custom Commands</key>
<key>Duplicate Current Line</key>
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string>