Skip to content

Instantly share code, notes, and snippets.

@condran
condran / IDETextKeyBindingSet.plist
Created June 29, 2012 23:35
Duplicate Current Line - Append to /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
<key>Custom Commands</key>
<dict>
<key>Duplicate Current Line</key>
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string>
</dict>
@condran
condran / query_fk_mssql.sql
Created February 29, 2016 23:48
Query all foreign keys SQL Server
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 / FeignClientWithPATCH.md
Last active May 30, 2022 19:18
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: java.net.ProtocolException: Invalid HTTP method: PATCH

I am using the current versions:

@condran
condran / .gitconfig
Created February 13, 2019 07:53
How to have conditional config for personal and work git user accounts https://dev.to/maxlmator/maintaining-different-git-identities
# ~/.gitconfig
[user]
name = Firstname Lastname
email = <private email address>
[includeIf "gitdir:~/Work/"]
path = .gitconfig-work