Skip to content

Instantly share code, notes, and snippets.

View PhilMurwin's full-sized avatar

Phil Murwin PhilMurwin

View GitHub Profile

Project

Description: What does this project do and who does it serve?

Project Setup

How do I, as a developer, start working on the project?

  1. What dependencies does it have (where are they expressed) and how do I install them?
  2. How can I see the project working before I change anything?
@PhilMurwin
PhilMurwin / EFContext
Created October 30, 2013 19:36
Use EF and Context to send custom SQL string to database
/// <summary>
/// Checks the Files for the specified event and category to ensure the files haven't already been generated
/// </summary>
/// <param name="eventID">Event to check for existing files</param>
/// <param name="fileCategory">Category of files to check the existence of</param>
/// <returns></returns>
public static bool FilesExist(int eventID, string fileCategory)
{
bool filesExist = false;
@PhilMurwin
PhilMurwin / NLog.config
Created February 28, 2014 19:40
Basic NLog configuration file with a file target for Info+ and an email target for error+
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--
See http://nlog-project.org/wiki/Configuration_file
for information on customizing logging rules and outputs.
-->
<variable name="linePrefix" value="${date:format=yyyy-MM-dd HH\:mm\:ss} ${pad:padding=5:inner=${uppercase:${level}}} ${callsite:IncludeSourcePath=false} - "/>
@PhilMurwin
PhilMurwin / IssueTemplate.md
Last active October 12, 2015 14:24
GitHub Issue - Main comment content template

Summary of Request:

Brief description of request that all stakeholders can agree to.

Details of Request:

Customer list of the things necessary to accomplish the end result.

Affected Components:

What existing components are impacted by this request?

Work Involved:

@PhilMurwin
PhilMurwin / README.md
Last active August 29, 2015 14:19 — forked from hofmannsven/README.md
/* ################################################################################
# AUTHOR : Markus Kofler - http://www.kofler-it.com
# NAME : countries-for-mssql.sql
# DATE : 2015-06-21
# Version : 1.0
# COMMENT : This script creates a table within your MS-SQL-Server with all
# the ISO-codes for countries, phonecodes, etc.
# The script is based on the following github-resources:
# + https://gist.github.com/adhipg/1600028
# + https://gist.github.com/paulochf/9616f85f3f3904f1c36f
@PhilMurwin
PhilMurwin / JIRA Issue Template
Created October 14, 2015 14:24
A basic template for creating JIRA issues with appropriate details for a developer.
h2. Summary of Request:
Brief description of request that all stakeholders can agree to.
h2. Details of Request:
Customer list of the things necessary to accomplish the end result.
h2. Affected Components:
What existing components are impacted by this request?
h2. Work Involved:
@PhilMurwin
PhilMurwin / sp_who2temp.sql
Last active September 7, 2018 20:09
SQL Server sp_who2
Declare @sp_who2 Table
(
SPID INT
,Status VARCHAR(255)
,Login VARCHAR(255)
,HostName VARCHAR(255)
,BlkBy VARCHAR(255)
,DBName VARCHAR(255)
,Command VARCHAR(255)
,CPUTime INT
@PhilMurwin
PhilMurwin / .gitconfig
Last active December 7, 2016 19:40
Custom Git config (minus user section)
[core]
editor = \"C:/Program Files (x86)/Programmer's Notepad/pn.exe\"
autocrlf = true
[merge]
tool = winmerge
[mergetool "winmerge"]
cmd = wMerge.sh \"$MERGED\" \"$REMOTE\"
path = c:/Program Files (x86)/winmerge/winmergeu.exe
[diff]
guitool = winmerge
@PhilMurwin
PhilMurwin / Synology-Diskstation-Git.md
Last active October 17, 2019 15:17 — forked from walkerjeffd/Synology-Diskstation-Git.md
Instructions for setting up git server on Synology Diskstation

Configure Synology NAS as Git Server

Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS218+ with DSM 6+.

Set Up User group and Folder

  • Create group gitusers via Diskstation interface (with File Station and WebDAV privilages)
  • Add new shared folder called Git (located at /volume1/Git) with read/write access for group gitusers. This folder will hold all the repos.