Skip to content

Instantly share code, notes, and snippets.

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

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: java.net.ProtocolException: Invalid HTTP method: PATCH

I am using the current versions:

@condran
condran / query_fk_mssql.sql
Created Feb 29, 2016
Query all foreign keys SQL Server
View query_fk_mssql.sql
SELECT obj.name AS FK_NAME,
sch.name AS [schema_name],
tab1.name AS [table],
col1.name AS [column],
tab2.name AS [referenced_table],
col2.name 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
condran / IDETextKeyBindingSet.plist
Created Jun 29, 2012
Duplicate Current Line - Append to /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
View IDETextKeyBindingSet.plist
<key>Custom Commands</key>
<dict>
<key>Duplicate Current Line</key>
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string>
</dict>
You can’t perform that action at this time.