#!/usr/bin/perl | |
# Copyright 2012, Dee Newcum. License: GPL v3. | |
# NRB: Original at <https://github.com/DeeNewcum/dotfiles/blob/master/bin/lsgit> | |
# NRB: Modified 2019-09-04, Nigel Bray [NRB] | |
# NRB: Forked at <https://gist.github.com/nrbray/a0ae8ec59d1fd1ae03e2947368096d2e> | |
# NRB: Alternative described at <https://stackoverflow.com/a/2778066/9113089> <https://pypi.org/project/uncommitted/> | |
# A wrapper around: | |
# ```` locate -br '^HEAD$'```` |
Initialize the logger in the constructor: | |
class SomethingAbstract | |
{ | |
protected ILogger Log { get; } | |
protected SomethingAbstract() | |
{ | |
Log = Log.ForContext(GetType()); | |
} |
package com.ecmdeveloper.jace.streams; | |
import java.util.Date; | |
import java.util.Iterator; | |
import java.util.stream.Stream; | |
import java.util.stream.StreamSupport; | |
import com.filenet.api.admin.*; | |
import com.filenet.api.events.*; | |
import com.filenet.api.core.*; |
using System; | |
using Autofac; | |
using FluentValidation; | |
namespace Sample.Web.Infrastructure | |
{ | |
public class AutofacValidatorFactory : ValidatorFactoryBase | |
{ | |
private readonly IComponentContext _context; |
using System.IO; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Serilog; | |
using Serilog.Extras.Topshelf; | |
using Topshelf; | |
using Topshelf.Logging; | |
namespace ConsoleApplication1 | |
{ |
package com.sachinhandiekar.examples.cxf.logging; | |
import java.io.ByteArrayInputStream; | |
import java.io.StringWriter; | |
import java.util.Arrays; | |
import java.util.List; | |
import javax.xml.parsers.DocumentBuilder; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.transform.OutputKeys; |
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j
#Transform web.config on build
- Unload the project
- Edit .csproj
- Append figure 1 to the end of the file just before
</Project>
; v12.0 my change depending on your version of Visual Studio - Save .csproj and reload
- Open configuration manager
- Add a new Configuration Name: Base. Copy settings from: Release
- Copy the contents of your web.config
- Right click Web.Config > Add Config Transformation