Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Obee kevinobee

View GitHub Profile
@kevinobee
kevinobee / README.md
Last active Jan 5, 2020 — forked from lmeyer/base
Boxstarter
View README.md
View Get-FileEncoding.ps1
function Get-FileEncoding
{
[CmdletBinding()] Param (
[Parameter(Mandatory = $True, ValueFromPipelineByPropertyName = $True)] [string]$Path
)
[byte[]]$byte = get-content -Encoding byte -ReadCount 4 -TotalCount 4 -Path $Path
@kevinobee
kevinobee / Rebuilding-my-Developer-Platform.md
Last active Aug 2, 2016
Rebuilding my Developer OS for the Last Time!
View Rebuilding-my-Developer-Platform.md

Rebuilding my Developer Platform - For the Last Time!

I have finished enough of a ground-up rebuild of a developer machine to take stock.

The rebuild process went something like this:

Step 1 - Start long running installation

Step 2 - Wait for installation to complete

@kevinobee
kevinobee / choco-list-lo-i.md
Last active Jun 19, 2017
Chocolatey list local packages
View choco-list-lo-i.md
C:\WINDOWS\system32>choco list -lo -i

Chocolatey v0.10.3
7zip 16.02.0.20160811
7zip.install 16.02.0.20160811
chocolatey 0.10.3
curl 7.28.1
DotNet4.5 4.5.20120822
DotNet4.5.2 4.5.2.20140902
View gist:d5147395cd62354412f2f619d072db01
7zip 16.02
7zip.install 16.02
agentransack 7.0.828.1
autohotkey.portable 1.1.24.00
chocolatey 0.9.10.3
dependencywalker 2.2.6000.7
docker 1.12.0
DotNet4.5.2 4.5.2.20140902
Evernote 5.9.9.9915
fiddler4 4.6.2.29442
View gist:8296203
{
"actions": {
"GET": [
{
"FetchEntities": {
"returnType": "SitecoreCms.Models.SimpleData[]",
"properties": {}
}
},
{
@kevinobee
kevinobee / Global.asax
Created Nov 12, 2013
Dependency Injection with Sitecore
View Global.asax
<%@Application Language='C#' Inherits="Website.Global" CodeBehind="Global.asax.cs" %>
View Sitecore.RememberLastLoggedInUserName.config
<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<settings>
<setting name="Login.RememberLastLoggedInUserName" value="false"/>
</settings>
</sitecore>
</configuration>
View EncodeNameReplacements.config
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<encodeNameReplacements>
<replace patch:before="*[1]" mode="on" find=" " replaceWith="-" />
</encodeNameReplacements>
</sitecore>
</configuration>
View gist:4633611
/// <reference path="../jquery-1.7.2-vsdoc.js" />
/// <reference path="../jquery-ui-1.8.20.js" />
/// <reference path="../knockout-2.1.0.debug.js" />
/// <reference path="../knockout.mapping-latest.debug.js" />
/// <reference path="../bootstrap-modal.js" />
/// <reference path="../moment.js" />
var mi = mi || {};
$(document).ready(function () {