Skip to content

Instantly share code, notes, and snippets.

View MikeLarned's full-sized avatar

Mike Larned MikeLarned

View GitHub Profile
@MikeLarned
MikeLarned / v2fd_0.cs
Last active November 7, 2016 14:18
Minimum MSH Segment for OML_O21
/*
MSH (Message Header)
V282_CH02_Control 2.14.9 pg. 59
https://www.hl7.org/fhir/terminologies-v2.html
*/
var parser = new PipeParser();
var oml = new OML_O21();
// DateTime of Message - Required DT: DTM
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgotzxxdnU03Eyi+h7Vy6aws11QataoOnOn1Mq3Uo+dVYKp3BheWxvYWTFAu57ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwYTJkY2YxYzVkOWQ0ZDM3MTMyOGJlODdiNTcyZTlhYzJjZDc1NDFhYjVhYTBlOWNlOWY1MzJhZGQ0YTNlNzU1NjBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwYTJkY2YxYzVkOWQ0ZDM3MTMyOGJlODdiNTcyZTlhYzJjZDc1NDFhYjVhYTBlOWNlOWY1MzJhZGQ0YTNlNzU1NjBhIiwidWlkIjoiNmU3ZjU4YmMxMzUwYzNkYWIzZWM3OTQyODQ2ZDRjMTkiLCJ1c2VybmFtZSI6Im1sYXJuZWQifSwic2VydmljZSI6eyJuYW1lIjoiZ2l0aHViIiwidXNlcm5hbWUiOiJtaWtlbGFybmVkIn0sInR5cGUiOiJ3ZWJfc2VydmljZV9iaW5kaW5nIiwidmVyc2lvbiI6MX0sImNsaWVudCI6eyJuYW1lIjoia2V5YmFzZS5pbyBnbyBjbGllbnQiLCJ2ZXJzaW9uIjoiMS4wLjE3In0sImN0aW1lIjoxNDc3OTQ2NjIzLCJleHBpcmVfaW4iOjUwNDU3NjAwMCwibWVya2xlX3Jvb3QiOnsiY3RpbWUiOjE0Nzc5NDY1NTcsImhhc2giOiIxZTY5YjY3OWY1NzY5NDBhNWY1OWIxNDMyZDQ3YTE2MmRjNjI2OGFmNjk3OWM5NGUxOTk5NmVhNmRiZWMxMjdhMTE5NjgyMWRmMDQ4OGUxOTdkMzYzYzE5OTJiNDhiOGIyNjE2YjcyNmMyZmZhNTU2OWY5NGJkM2ZkMDM3NTMzNSIsInNlcW5vIjo2OTUxNjN9LCJwcmV2IjoiMTczODE1YzVhZmQzMjAyZGMzMDAyOTIyYjFhNTk2MmYx
var auth = new RequestAuthentication
{
Item = new XDDSAuthType
{
RequesterID = new UIDType
{
aliasType = OpenTextAccount.AliasType,
Value = _rootAccount.Username
},
Password = _rootAccount.Password
<div>
<sialia></sialia>
</div>
<script src="build/sialia.js"></script>
<script>
var url = "http://sialia.ria.ms/files";
var documents = $.get(url, function(docs) {
new Sialia({
docs: docs

Keybase proof

I hereby claim:

  • I am MikeLarned on github.
  • I am mlarned (https://keybase.io/mlarned) on keybase.
  • I have a public key whose fingerprint is 903A FF56 251E EB15 4B17 829E 578F E555 E6B3 34D4

To claim this, I am signing this object:

@MikeLarned
MikeLarned / UserManagerChangePassword.cs
Created February 10, 2015 16:49
UserManager Test To Change Password
[TestFixture]
public class ChangeUserPasswordTests
{
[Test]
public void Test()
{
var context = new DataContext("CONNECTION STRING");
var store = new UserStore<ApplicationUser>(context);
var manager = new UserManager<ApplicationUser>(store);
@MikeLarned
MikeLarned / gist:02acd8ff0074bfc15bce
Last active August 29, 2015 14:14
BrewNodeInstall
# http://blog.teamtreehouse.com/install-node-js-npm-mac
# 1 - Install Brew through the following command in your terminal.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# After installation type 'brew info' in the command prompt to validate brew installed
# 2 - Install Node Package Manager (NPM)
brew install node
directorydefaults write com.apple.finder AppleShowAllFiles YES
brew install macvim --override-system-vim
# Screenshots
cmd-shift-3
cmd-shift-4 - capture a selection
defaults read com.apple.screencapture location
#http://vim.wikia.com/wiki/Open_vimrc_file
#http://www.viemu.com/a-why-vi-vim.html - why vim
git clean -xfd -e ConnectionStrings.local.config
#Plugins
https://github.com/maksimr/vim-jsbeautify
https://www.digitalocean.com/community/tutorials/how-to-use-vundle-to-manage-vim-plugins-on-a-linux-vps
#Basic Commands
h - left
@MikeLarned
MikeLarned / gist:be9364837ddf928ff7f1
Last active October 29, 2015 17:43
SQL Smart Admin Backups
-- Powershell Backup-SqlDatabase
Backup-SqlDatabase -ServerInstance $env:computername -Database DB -BackupAction Database -BackupFile "C:\bak\db.bak"
-- http://msdn.microsoft.com/en-us/library/dn449496.aspx#relatedtasks
-- Enable Smart Backup to Azure on a specifc DB with no Encryption
-- System stored procedure for enabling and configuring SQL Server Managed Backup to Windows Azure for a database.
begin tran
GO
EXEC smart_admin.sp_set_db_backup