Skip to content

Instantly share code, notes, and snippets.

View WouterJanson's full-sized avatar

Wouter Janson WouterJanson

View GitHub Profile
@fkraeutli
fkraeutli / downloadGitLfsFiles.md
Last active February 19, 2024 09:17
How to download GIT LFS files

How to retrieve GIT LFS files from GitHub

Retrieving non-LFS files

Through the GitHub API it is possible to retrieve individual files from a Git repository via, e.g. curl. To do so, first retrieve the content information for the relevant file (or folder):

curl https://api.github.com/repos/{organisation}/{repository}/contents/{file or folder path}

For private repositories, authenticate using your username and a personal access token

@jmangelo
jmangelo / VstoAopExceptionHandling.cs
Created February 17, 2010 21:25
Helpers classes for centralized exception handling in a VSTO add-in using PostSharp.
using System;
using log4net;
using PostSharp.Laos;
// http://exceptionalcode.wordpress.com/2010/02/17/centralizing-vsto-add-in-exception-management-with-postsharp/
namespace Helpers.Vsto.ErrorHandling
{
[Serializable]
public sealed class ExecutionEntryPointAttribute : OnExceptionAspect