Skip to content

Instantly share code, notes, and snippets.

View nulltoken's full-sized avatar
💭
I may be slow to respond.

nulltoken nulltoken

💭
I may be slow to respond.
View GitHub Profile
@nulltoken
nulltoken / mono.load.cs
Created May 31, 2012 21:07
[LibGit2Sharp] Issue while loading the native dll on Mono/Windows x86
internal class Program
{
private static void Main(string[] args)
{
string originalAssemblypath = new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath;
string parentPath = Path.GetDirectoryName(originalAssemblypath);
string currentArchSubPath = "NativeBinaries/" + ProcessorArchitecture;
string path = Path.Combine(parentPath, currentArchSubPath);
Console.WriteLine("{0} = {1}", "originalAssemblypath", originalAssemblypath);
@nulltoken
nulltoken / issue-161.patch
Created June 1, 2012 09:42
[LibGit2Sharp] Proposal for #161 fix
LibGit2Sharp.Tests/ConfigurationFixture.cs | 38 ++++++++++++++++++++++++++-
LibGit2Sharp/Configuration.cs | 36 +++++++++++++++++++-------
LibGit2Sharp/Core/Ensure.cs | 22 +++++++++++----
3 files changed, 78 insertions(+), 18 deletions(-)
diff --git a/LibGit2Sharp.Tests/ConfigurationFixture.cs b/LibGit2Sharp.Tests/ConfigurationFixture.cs
index 7e1ebd9..634ed21 100644
--- a/LibGit2Sharp.Tests/ConfigurationFixture.cs
+++ b/LibGit2Sharp.Tests/ConfigurationFixture.cs
@@ -1,6 +1,6 @@
@nulltoken
nulltoken / revparse-probe.sh
Created June 18, 2012 14:36
[revparse] Troubleshooting the probing logic
#!/bin/sh
retrieve_head() {
local oid=$(git reflog HEAD@{0} -n 1 --format=format:%H);
echo "$oid"
}
add_commit() {
echo "$1" > file.txt
git add .
@nulltoken
nulltoken / gist:5928977
Created July 4, 2013 16:33
libgit2 4ae29053d51968cbf49f30ae14e5405cbd9543cc build and test run
D:\libgit2\libgit2-msvc>SETLOCAL
D:\libgit2\libgit2-msvc>SET BUILD=RelWithDebInfo
D:\libgit2\libgit2-msvc>RD /S /q "cmake-build"
The system cannot find the file specified.
D:\libgit2\libgit2-msvc>MD "cmake-build"
D:\libgit2\libgit2-msvc>PUSHD "cmake-build"

Keybase proof

I hereby claim:

  • I am nulltoken on github.
  • I am nulltoken (https://keybase.io/nulltoken) on keybase.
  • I have a public key whose fingerprint is 7574 A483 0590 8365 FE46 31C2 443A 12BC CAB4 B650

To claim this, I am signing this object: