Editing GIT comments

https://help.github.com/articles/changing-a-commit-message/

and you may need this when you do the forced push:

https://stackoverflow.com/questions/28318599/git-push-error-pre-receive-hook-declined

Posted in Uncategorized | Leave a comment

SVN: Get List of Externals

“As you mentioned, it does consume network bandwidth. However, if you had access to the server where those repositories are hosted, you may run it via file:// protocol. It is proved to be faster and not network consuming.

svn propget svn:externals -R file:///path/to/repo/Branch

Also, if you had the entire working copy in place, you may also run it within your WC.

svn propget svn:externals -R /path/to/WC

Hope it helps you to achieve the results faster!.”

http://stackoverflow.com/questions/10183426/quickly-get-a-list-of-all-svnexternals-for-a-remote-svn-repository

Posted in Uncategorized | Leave a comment

Getting Splunk to capture JSON fragments

While it is recommended to use machine readable logging structures, it can be difficult to set up Splunk to read them.  Here’ how:

In the props.conf on the universal forwarders, use something like

[mysourcetype]
INDEXED_EXTRACTIONS = JSON
TIMESTAMP_FIELDS = Time
TZ = UTC
KV_MODE = none
AUTO_KV_JSON = false

Basically, I use a subset of this.

Posted in Uncategorized | Leave a comment

HttpContext is closely related to threads…

but not exactly

http://odetocode.com/Articles/112.aspx

“The CallContext provides a service extremely similar to thread local storage (except CallContext can perform some additional magic during a remoting call). Thread local storage is a concept where each logical thread in an application domain has a unique data slot to keep data specific to itself. Threads do not share the data, and one thread cannot modify the data local to a different thread. ASP.NET, after selecting a thread to execute an incoming request, stores a reference to the current request context in the thread’s local storage. Now, no matter where the thread goes while executing (a business object, a data access object), the context is nearby and easily retrieved.”

 

Posted in Uncategorized | Leave a comment

Interception with Entity Framework

https://www.skylinetechnologies.com/Blog/Skyline-Blog/December-2013/Entity-Framework-6-Intercepting-SQL-produced

Note, there are rumors that the documentation around this feature is limited that that there are difficulties/issues with it.

Posted in Uncategorized | Leave a comment

Need to read a file of JSON Fragments

http://www.newtonsoft.com/json/help/html/ReadMultipleContentWithJsonReader.htm

JsonTextReader reader = new JsonTextReader(new StringReader(json));
reader.SupportMultipleContent = true;

 

Posted in Uncategorized | Leave a comment

Handy Windows Tools

  • Far Manager – “Norton Commander”-like file manager – free alternative to Total Commander
  • cmder – console “emulator” for Windows
  • Chocolatey – Nuget for Applications – Software Management

 

Posted in Uncategorized | Leave a comment