Skip to content

Instantly share code, notes, and snippets.

@kitroed
kitroed / PowershellScriptExecutionDemo.cs
Created April 26, 2011 12:49
Originally put together Sept. 2010 demonstrating the ability to run PowerShell scripts from C#
using System;
using System.Collections.ObjectModel;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using System.Text;
// Build Command:
// C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe PowerShellScriptExecutionDemo.cs /reference:C:\Windows\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\System.Management.Automation.dll
namespace PowerShellScriptExecutionDemo
@kitroed
kitroed / .gvimrc
Last active April 28, 2016 17:15
my work .gvimrc file
set colorcolumn=85
:imap <C-BS> <C-W>
"call pathogen#runtime_append_all_bundles()
syntax enable
colorscheme desert
set background=dark
colorscheme solarized
"match Todo /\s\+$/ " highlight trailing whitespace
"tab keyboard shortcuts
nnoremap <C-N> :tabnew<CR>
@kitroed
kitroed / FoxProReader.cs
Created March 3, 2011 15:47
Use OleDb to parse the conents of certain FoxPro files
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Data;
using System.Data.OleDb;
using System.Text.RegularExpressions;