Skip to content

Instantly share code, notes, and snippets.

💭
F#ing

Andres G. Aragoneses knocte

💭
F#ing
View GitHub Profile
View gist:d30ca67e3b7fc32def1a85dbf43564d4
From 3caa604be0918f8b264984451348735f30faab2b Mon Sep 17 00:00:00 2001
From: "Andres G. Aragoneses" <knocte@gmail.com>
Date: Mon, 8 Jun 2020 00:50:05 +0800
Subject: [PATCH 1/3] Backend,Frontend.Console: improve B's API so that F.C.'s
doesn't need refs
Improve the API design of GWallet.Backend project so that
GWallet.Frontend.Console doesn't need to reference directly
some sub-dependencies of GWallet.Backend, such as NBitcoin
and DotNetLightning.
View gist:6cd5361a2d08d074f5493a331b7c1885
fantomas was formatting records this way:
```
type Foo =
{ Bar: Baz
Bar2: Baz2 }
```
and with this new setting they are like:
@knocte
knocte / gist:b26c03f8c9688932badc6acceaee3cd4
Last active May 11, 2020
geewallet log when opening a channel with 0382019f91e0d8a5e497849052b5bedad4329bc88ca24b5dbf499c0bea1af5b6c5@172.81.182.181:9735
View gist:b26c03f8c9688932badc6acceaee3cd4
Available operations:
0: Exit
1: Refresh
3: Send payment
4: Add readonly accounts
5: Sign off payment
6: Broadcast payment
7: Archive account
8: Pair to watch wallet
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
You can’t perform that action at this time.