Skip to content

Instantly share code, notes, and snippets.

💭
F#ing

Andres G. Aragoneses knocte

💭
F#ing
Block or report user

Report or block knocte

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7bced71269d6f8c81b401fb07a3bb6ca
Andress-MBP:geewalletFRONTEND knocte$ ./scripts/install-rust.sh
+ RUST_VERSION=nightly-2019-11-25
+ curl https://sh.rustup.rs -sSf
+ sh -s -- -y --default-toolchain nightly-2019-11-25
info: downloading installer
info: profile set to 'default'
info: default host triple is x86_64-apple-darwin
info: updating existing rustup installation
View gist:ab3905f5cfdadf17549f73f81bc61cb8
"/Users/knocte/Documents/Code/monodevelopCLEAN/main/Main.sln" (default target) (1) ->
"/Users/knocte/Documents/Code/monodevelopCLEAN/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj" (default target) (48) ->
(CoreCompile target) ->
MonoDevelop.Components/ContextMenuExtensionsMac.cs(30,7): error CS0246: The type or namespace name 'CoreGraphics' could not be found (are you missing a using directive or an assembly reference?) [/Users/knocte/Documents/Code/monodevelopCLEAN/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj]
MonoDevelop.Components/ContextMenuExtensionsMac.cs(31,7): error CS0246: The type or namespace name 'Foundation' could not be found (are you missing a using directive or an assembly reference?) [/Users/knocte/Documents/Code/monodevelopCLEAN/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj]
MonoDevelop.Components/Mac/GtkNSViewHost.cs(28,7): error CS0246: The type or namespace name 'CoreGraphics' could not be found (are you missing a using directive or an assembly reference?) [/U
View gist:7f6b8cbd7be1486839c792b3b708ee62
Rebuilding...
Cleaning MonoDevelop.Core (Debug)
Build started 29/8/2019 2:58:53 PM.
__________________________________________________
Project "/Users/knocte/Documents/Code/monodevelopCLEAN/main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj" (Clean target(s)):
Target CoreClean:
View 0001-Backend-Tests-Frontend-merge-server-cache-with-serve.patch
From bbcbfd03efe82fcd6b1c834ce2c1f1699a3a8cf1 Mon Sep 17 00:00:00 2001
From: "Andres G. Aragoneses" <knocte@gmail.com>
Date: Wed, 21 Aug 2019 17:02:03 +0800
Subject: [PATCH] Backend(,Tests),Frontend: merge server cache with server
reference JSON
As a follow-up to previous recent commit [1], this way we only have one
format, moving forward, where we store info about servers (their domain
name, port, etc), and the connection statistics for them.
View gist:d3cca16a43b4131d9aff266e40ae3186
diff --git a/src/Client/Client.cs b/src/Client/Client.cs
index 5576f12..5b509ac 100644
--- a/src/Client/Client.cs
+++ b/src/Client/Client.cs
@@ -28,19 +28,29 @@ public abstract class Client {
}
private async Task<string> CallImpl (string json) {
using (Socket socket = new Socket (SocketType.Stream, ProtocolType.Tcp)) {
+ socket.SendTimeout = 500;
@knocte
knocte / gist:158c70f9aef9104fd1f7b043c3430e95
Created Jun 13, 2019
nuget.client solution being opened in VS4Mac: nuget restore log
View gist:158c70f9aef9104fd1f7b043c3430e95
Getting restore information for solution /Users/knocte/Documents/Code/NuGet.Client/NuGet.sln
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/15.0/bin/NuGet.targets(144,5): error MSB4018: The "WriteRestoreGraphTask" task failed unexpectedly. [/var/folders/yy/r8q924sj6f73mr2h96y4npym0000gn/T/NuGetScratch/uqp9r6qw.6rf.nugetinputs.targets]
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/15.0/bin/NuGet.targets(144,5): error MSB4018: NuGet.Frameworks.FrameworkException: Invalid framework identifier ''. [/var/folders/yy/r8q924sj6f73mr2h96y4npym0000gn/T/NuGetScratch/uqp9r6qw.6rf.nugetinputs.targets]
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/15.0/bin/NuGet.targets(144,5): error MSB4018: at NuGet.Frameworks.NuGetFramework.GetShortFolderName (NuGet.Frameworks.IFrameworkNameProvider mappings) [0x0006f] in <3b8c22c4c87e44bbb0b201ac24b5d670>:0 [/var/folders/yy/r8q924sj6f73mr2h96y4npym0000gn/T/NuGetScratch/uqp9r6qw.6rf.nugetinputs.targets]
/Library/Framew
View gist:301a7d862e4633417e37831da9b0b3e9
iff --git a/src/GWallet.Backend/Ether/EtherServer.fs b/src/GWallet.Backend/Ether/EtherServer.fs
index f7d4c7e..15e9d50 100644
--- a/src/GWallet.Backend/Ether/EtherServer.fs
+++ b/src/GWallet.Backend/Ether/EtherServer.fs
@@ -40,14 +40,6 @@ module Server =
type ServerChannelNegotiationException(message:string, innerException: Exception) =
inherit ConnectionUnsuccessfulException (message, innerException)
- type ServerMisconfiguredException =
- inherit ConnectionUnsuccessfulException
View gist:4ba28ff4fe7edaf066e83f1aa6030b0b
diff --git a/src/GWallet.Backend/FaultTolerantParallelClient.fs b/src/GWallet.Backend/FaultTolerantParallelClient.fs
index 32bbe9b..e1eba49 100644
--- a/src/GWallet.Backend/FaultTolerantParallelClient.fs
+++ b/src/GWallet.Backend/FaultTolerantParallelClient.fs
@@ -150,6 +153,8 @@ type FaultTolerantParallelClient<'K,'E when 'K: equality and 'E :> Exception>(up
let taskToWaitForFirstFinishedTask = Task.WhenAny theTasks
let! fastestTask = Async.AwaitTask taskToWaitForFirstFinishedTask
+ if fastestTask.IsCanceled then
+ return InconsistentOrNotEnoughResults(resultsSoFar,failedFuncsSoFar)
View gist:6021bcb5e5e6d5d217155848109f6a6a
diff --git a/src/GWallet.Backend/FaultTolerantParallelClient.fs b/src/GWallet.Backend/FaultTolerantParallelClient.fs
index 32bbe9b..3769a05 100644
--- a/src/GWallet.Backend/FaultTolerantParallelClient.fs
+++ b/src/GWallet.Backend/FaultTolerantParallelClient.fs
@@ -150,6 +150,8 @@ type FaultTolerantParallelClient<'K,'E when 'K: equality and 'E :> Exception>(up
let taskToWaitForFirstFinishedTask = Task.WhenAny theTasks
let! fastestTask = Async.AwaitTask taskToWaitForFirstFinishedTask
+ if fastestTask.IsCanceled then
+ return failwith "it's canceled, shit"
View gist:99de97e9cec32f890538713d33ad02bd
diff --git a/src/GWallet.Frontend.XF.Android/GWallet.Frontend.XF.Android.fsproj b/src/GWallet.Frontend.XF.Android/GWallet.Frontend.XF.Android.fsproj
index af6061c8264072b667c7e303f40e2db5346be50f..a9a17118d86a07e6a61c16c32426f1e8ea6c4349 100644
--- a/src/GWallet.Frontend.XF.Android/GWallet.Frontend.XF.Android.fsproj
+++ b/src/GWallet.Frontend.XF.Android/GWallet.Frontend.XF.Android.fsproj
@@ -17,6 +17,8 @@
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
+ <SelectedDevice>galaxy_nexus</SelectedDevice>
+ <DefaultDevice>galaxy_nexus</DefaultDevice>
You can’t perform that action at this time.