Notes on the "how", complementing the demo about the "why".
chsh -s $(which zsh)| #!/bin/bash | |
| inner() { | |
| local cmd="$@" | |
| local REGEX="(^|log.showSignature=false )(add|rm|mv) " | |
| if [[ $cmd =~ $REGEX ]]; then | |
| echo 'Stopping IntelliJ from being a not well-behaved git client. See IDEA-194592, IDEA-63391, IDEA-176961, ...' >&2 | |
| return 1 | |
| fi | |
| git "$@" | |
| } |
| void Main() | |
| { | |
| Log.Logger = new LoggerConfiguration() | |
| .MinimumLevel.Warning() | |
| .Enrich.FromLogContext() | |
| .Enrich.WithProperty("url", "http://serilog.net/") | |
| .WriteTo.Sink(new LinqpadDumpSink()) | |
| .CreateLogger(); | |
| Log.Warning( | |
| "Processing inside {@test}, something weird happened", |
| using BoDi; | |
| using Meltingood.Web.App_Start; | |
| using Ninject.MockingKernel.NSubstitute; | |
| using TechTalk.SpecFlow; | |
| namespace Tests | |
| { | |
| [Binding] | |
| public class Config | |
| { |
| /** | |
| * GeSHi syntax highlighting styles | |
| * | |
| * based on https://studiostyl.es/schemes/adobe-edge-code | |
| * | |
| */ | |
| .code { | |
| .co0 { | |
| color: #666666; | |
| font-style: italic; |
| [alias] | |
| #lg = log --oneline --decorate --graph | |
| lg = log --graph --format=format:'%C(yellow)%h%C(reset) %C(white)%s%C(reset)%C(auto)%d%C(reset)%C(dim white) %C(reset)%C(dim cyan)%ar%C(reset)%C(dim white) %aN <%aE>%C(reset)' | |
| lga = !git lg --all | |
| lgo = !git lg HEAD origin/master --not `git merge-base HEAD origin/master`^@ | |
| lgd = !git lg HEAD origin/develop --not `git merge-base HEAD origin/develop`^@ |
| import unittest | |
| from kata import roman | |
| l = [ | |
| ["I", 1], | |
| ["II", 2], | |
| ["III", 3], | |
| ["IV", 4], | |
| ["V", 5], | |
| ["IX", 9], |
| [alias] | |
| #lg = log --oneline --decorate --graph | |
| lg = log --graph --format=format:'%C(yellow)%h%C(reset) %C(white)%s%C(reset)%C(auto)%d%C(reset)%C(dim white) %C(reset)%C(dim cyan)%ar%C(reset)%C(dim white) %aN <%aE>%C(reset)' |