Skip to content

Instantly share code, notes, and snippets.

View lynchjames's full-sized avatar

James Lynch lynchjames

  • Storm ID
  • Edinburgh
View GitHub Profile
@lynchjames
lynchjames / C#Output.cs
Created May 3, 2010 00:20
Using CallJSON to convert JSON to the C# required for deserialization
public class work
{
public virtual employer employer { get; set; }
public virtual position position { get; set; }
public virtual string start_date { get; set; }
public virtual string end_date { get; set; }
}
public class employer
{
#alias merge='git checkout master;git merge dev; git checkout dev'
#alias rebase='git checkout master;git pull origin master;git checkout dev;git rebase master'
#alias rebmerge='rebase; merge'
#alias pushmaster='git checkout master; git push origin master; git checkout dev'
#alias mpm='merge; pushmaster;'
#alias rmpm='rebmerge; pushmaster;'
alias l='git log'
alias s='git s'
alias d='git d'
alias av='git av'
@lynchjames
lynchjames / gist:3979548
Created October 30, 2012 10:42
Filter Registration
public class GlobalFiltersConvention : IFilterConvention
{
public void ApplyConvention(IFilterRegistration filterRegistration)
{
filterRegistration.WithFilter<AuthenticationFilter>(Apply
.ForArea<ContentAreaRegistration>()
.AndForArea<HiddenAreaRegistration>()
.AndForArea<MetadataAreaRegistration>()
.AndFor<HomeController>()
.AndFor<EditorController>()
@lynchjames
lynchjames / deploy.cmd
Last active May 29, 2024 16:17
Preparing Obsidian vault for pushing to Azure DevOps Wiki
echo 'Copying attachment files into .attachments folder'
cp attachments/* .attachments/
echo 'Updating attachment links'
find . -type f -name "*.md" -print0 | xargs -0 sed -i 's/(attachments\//(\/\.attachments\//g'