Skip to content

Instantly share code, notes, and snippets.

> git status
On branch master
Your branch is up to date with 'origin/master'.
You are currently rebasing.
(all conflicts fixed: run "git rebase --continue")
nothing to commit, working tree clean
> git rebase --continue
error: could not read '.git/rebase-merge/head-name': No such file or directory
<UserSettings><ApplicationIdentity version="15.0"/><ToolsOptions><ToolsOptionsCategory name="Environment" RegisteredName="Environment"/></ToolsOptions><Category name="Environment_Group" RegisteredName="Environment_Group"><Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package"><PropertyValue name="Version">2</PropertyValue><FontsAndColors Version="2.0"><Theme Id="{1DED0138-47CE-435E-84EF-9EC1F439B749}"/><Categories><Category GUID="{5C48B2CB-0366-4FBF-9786-0BB37E945687}" FontName="Consolas" FontSize="10" CharSet="0" FontIsDefault="No"><Items><Item Name="Plain Text" Foreground="0x00FFFFFF" Background="0x00000000" BoldFont="No"/><Item Name="Selected Text" Foreground="0x02000000" Background="0x02000000" BoldFont="Yes"/><Item Name="Inactive Selected Text" Foreground="0x02000000" Background="0x02000000" BoldFont="Yes"/><Item Name="Current L
cd $env:USERPROFILE
Invoke-WebRequest -Uri https://gist.githubusercontent.com/skalpin/220fbefa89943fae697bf7c438ea7033/raw/a110bb4c98f25978b9e34694158e49b669216fdd/_vimrc -OutFile _vimrc;
Invoke-WebRequest -Uri https://gist.githubusercontent.com/skalpin/5b880ac8121fc60a84404597ab360c19/raw/5b4824b4bccccdf2946babca885a1be1f7203fd0/.gitconfig -OutFile .gitconfig;
git clone https://github.com/tpope/vim-pathogen.git vimfiles;
cd vimfiles;
mkdir bundle;
cd bundle;
# Get vim bundles
git clone https://github.com/scrooloose/nerdcommenter.git;
git clone https://github.com/scrooloose/nerdtree.git;
@skalpin
skalpin / _vimrc
Created March 12, 2018 15:40
_vimrc
set nocp
execute pathogen#infect()
filetype plugin indent on
syntax on
set tabstop=4
set expandtab
set ruler
set shiftwidth=4
set backspace=2
@skalpin
skalpin / mission_mars_cognitive_face.py
Last active July 10, 2017 19:03
Show image of faces with red rectangle from cognitive services.
import cognitive_face as CF
import requests
from io import BytesIO
from PIL import Image, ImageDraw
def getRectangle(faceDictionary):
rect = faceDictionary['faceRectangle']
left = rect['left']
top = rect['top']
bottom = top + rect['height']
protected void Application_Start()
{
Trace.TraceInformation("Application_Start entered.");
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.Converters.Add(new StringEnumConverter());
Trace.TraceInformation("Application_Start exited.");
@skalpin
skalpin / Account.json
Created April 26, 2017 20:59
Customer Account Post
2017-04-26 20:40:20.6840 | DEBUG | Labyrinth.Services.Web.Common.Extensions.ServiceResultExtensions | POST https://sync-integration.cust-facing-preprod.p.azurewebsites.net/api/Account [
{
"GoldenRecordId" : "0010j000006QFlBAAW",
"AccountName" : "STEVEK 0426-1",
"Status" : 0,
"CustomerAddress" : {
"Street" : "1133 N MAIN, Floor 1",
"City" : "WICHITA",
"StateOrProvince" : "KS",
"PostalCode" : "67228",
@skalpin
skalpin / .gitconfig
Last active June 2, 2022 19:54
.gitconfig
[alias]
branch-name = rev-parse --abbrev-ref HEAD
d = diff --word-diff
f = fetch -p --tags
m = !git merge origin/$(git branch-name)
st = status -s
ci = commit
co = checkout
amend = commit --amend --no-edit
setbugbase = !git config variable.working-base release
var filePath = @"filePath";
var zipFile = ZipFile.Read(filePath);
//.Dump();
var path = Path.GetFileName(filePath);
var folderName = path.Substring(0, path.LastIndexOf("."));
var labFolder = $"{filePath.Substring(0, filePath.LastIndexOf(@"\"))}\\{folderName}";
Directory.CreateDirectory(labFolder);
foreach (var zippedFile in zipFile.Entries.Where(ze => ze.FileName.Contains("PackageTmp")).ToList())
{
var indexOf = zippedFile.FileName.LastIndexOf("PackageTmp") + 10;
//Silo Configuration
<?xml version="1.0" encoding="utf-8"?>
<OrleansConfiguration xmlns="urn:orleans">
<Globals>
<StorageProviders>
<!--<Provider Type="Orleans.Storage.MemoryStorage" Name="PubSubStore" NumStorageGrains="1"/>-->
<Provider Type="Orleans.Storage.MemoryStorage" Name="MemoryStore" />
<!-- To use Azure storage, uncomment one of the following lines: -->
<Provider Type="Avtex.AthleteTracker.Cloud.Silo.Storage.RunnerProvider" DataConnectionString="UseDevelopmentStorage=true" EntityConnectionString="Data Source=.;Initial Catalog=AthleteTracker2015;Integrated Security=True;" Name="RunnerStore" />
<Provider Type="Orleans.Storage.AzureTableStorage" Name="AzureStore" DataConnectionString="UseDevelopmentStorage=true" />