Skip to content

Instantly share code, notes, and snippets.

View darinkes's full-sized avatar
:octocat:
Focusing

Stefan Rinkes darinkes

:octocat:
Focusing
View GitHub Profile
@darinkes
darinkes / teamcity.diff
Created March 3, 2014 13:35
teamcity diff for gitlab
diff --git a/app/controllers/projects/merge_requests_controller.rb b/app/controllers/projects/merge_requests_controller.rb
index 51509ec..e4a472e 100644
--- a/app/controllers/projects/merge_requests_controller.rb
+++ b/app/controllers/projects/merge_requests_controller.rb
@@ -166,7 +166,11 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end
def ci_status
- status = @merge_request.source_project.gitlab_ci_service.commit_status(merge_request.last_commit.sha)
+ if @merge_request.source_project.gitlab_ci?
@darinkes
darinkes / Topshelf-Session.diff
Created December 4, 2012 14:41
ServiceBase Session Events for Topshelf
diff -NurP Topshelf/src/Topshelf/Configuration/Builders/ControlServiceBuilder.cs Topshelf/Configuration/Builders/ControlServiceBuilder.cs
--- Topshelf/src/Topshelf/Configuration/Builders/ControlServiceBuilder.cs Wed Nov 28 13:21:02 2012
+++ Topshelf/Configuration/Builders/ControlServiceBuilder.cs Thu Nov 29 08:32:37 2012
@@ -14,6 +14,7 @@
{
using System;
using Runtime;
+ using System.ServiceProcess;
public class ControlServiceBuilder<T> :
@darinkes
darinkes / AesDecryptor.cs
Created September 15, 2012 07:59
AesDecryptor.cs
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;