Skip to content

Instantly share code, notes, and snippets.

View FredDeschenes's full-sized avatar

Fred Deschenes FredDeschenes

  • Frima Studio
  • Quebec City, Qc, Canada
View GitHub Profile
@FredDeschenes
FredDeschenes / 0001-Update-to-2.5-3.patch
Created January 15, 2020 14:35
Update Arch AUR fusioninventory-agent-bin package to 2.5-3
From 3590168728629f26e377670b852d1fcad40dd151 Mon Sep 17 00:00:00 2001
From: Fred Deschenes <frederick.deschenes@frimastudio.com>
Date: Tue, 14 Jan 2020 16:27:57 -0500
Subject: [PATCH] Update to 2.5-3
---
.SRCINFO | 10 ++++++----
PKGBUILD | 22 +++++++++++-----------
2 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index ef59fa8..c037066 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -23,7 +23,7 @@ pkgbase = synergy2
conflicts = synergy2-bin
options = !strip
options = !emptydirs
- source_x86_64 = https://binaries.symless.com/v2.0.7/synergy_2.0.7.stable_b1477+e4d1ed68_amd64.deb
+ source_x86_64 = https://binaries.symless.com/v2.0.7/synergy_2.0.7.stable_b1477%2Be4d1ed68_amd64.deb
@FredDeschenes
FredDeschenes / ExtensionBug.kt
Created February 19, 2018 14:22
Kotlin extension shadowing bug
import kotlin.reflect.KClass
fun main(args: Array<String>) {
UsesKClass.theFun(TestClass::class) //UsesKClass :: KClass
UsesTheAny.theFun(TestClass::class) //UsesTheAny :: Any
}
class TestClass
object UsesKClass {
using System;
using System.Collections.Generic;
namespace ObjectClonerCrashDemo
{
class MainClass
{
public static void Main (string[] args)
{
//This runs fine inside MonoDevelop/VisualStudio 2012