Skip to content

Instantly share code, notes, and snippets.

View ulrikstrid's full-sized avatar

Ulrik Strid ulrikstrid

View GitHub Profile
@ulrikstrid
ulrikstrid / debug.md
Last active February 5, 2024 14:38
ASUS Pro WS TRX50-SAGE WIFI bluetooth debugging
> usb-devices
T: Bus=07 Lev=01 Prnt=01 Port=10 Cnt=01 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=13d3 ProdID=3602 Rev=01.00
S: Manufacturer=MediaTek Inc.
S: Product=Wireless_Device
S: SerialNumber=000000000
C: #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I am attesting that this GitHub handle ulrikstrid is linked to the Tezos account tz1ftWawLjmm6poX3R73Xc1UaFRoucCSpnhf for tzprofiles
sig:edsigtvSCrGyU7eFxEoop41TkN4woRmoay5zSTYSC1fyZJvSNSdtPYc1e4QSuojYxaVYkQGJVVr8JZgMRjPMGJHVasbC36dNS8y
@ulrikstrid
ulrikstrid / ppxlib_benchmark.patch
Created June 3, 2021 10:14
Update tezos-benchmark to ppxlib
diff --git a/src/lib_benchmark/codegen.ml b/src/lib_benchmark/codegen.ml
index 17fdfe9eb..1dcf5e9bf 100644
--- a/src/lib_benchmark/codegen.ml
+++ b/src/lib_benchmark/codegen.ml
@@ -26,31 +26,30 @@
(* ------------------------------------------------------------------------- *)
(* OCaml codegen *)
-open Migrate_parsetree.Ast_408
From 65b1cd6146b4fad7861d4e6c26a3096f5340b789 Mon Sep 17 00:00:00 2001
From: Ulrik Strid <ulrik.strid@outlook.com>
Date: Mon, 24 May 2021 09:25:04 +0200
Subject: [PATCH 1/1] Patch dune files
---
src/lib_protocol_compiler/dune | 12 +++++++-----
src/proto_006_PsCARTHA/lib_parameters/dune | 3 ++-
src/proto_007_PsDELPH1/lib_parameters/dune | 3 ++-
src/proto_008_PtEdo2Zk/lib_parameters/dune | 3 ++-
@ulrikstrid
ulrikstrid / MsalAuth.re
Last active April 12, 2021 06:28
Msal Bindings and react component
type status =
| Unauthenticated
| Authenticating
| Authenticated
| AuthenticationError(string);
type state = {
status,
account: option(MsalBrowser.Account.t),
id_token: option(MsalBrowser.IdToken.t),
const Path = require("path");
const Fs = require("fs");
const Cp = require("child_process");
const deleteFolderRecursive = (path) => {
if (Fs.existsSync(path)) {
Fs.readdirSync(path).forEach((file, index) => {
const curPath = Path.join(path, file);
if (Fs.lstatSync(curPath).isDirectory()) {
// recurse
@ulrikstrid
ulrikstrid / esy-patch.patch
Created April 17, 2020 08:20
Patch to package ocaml for esy
From 8510e5701aa20b2b10033d3c63c1c9760c187e3b Mon Sep 17 00:00:00 2001
From: Manas <prometheansacrifice@gmail.com>
Date: Tue, 6 Aug 2019 22:40:48 +0530
Subject: [PATCH 1/2] OCaml 4.09.0 support
---
.ci/build.yaml | 36 +++++++++++++++++++++++++++++++++
.gitattributes | 13 ++++++++++++
.gitignore | 4 ++++
.npmignore | 1 +
@ulrikstrid
ulrikstrid / Fetch.ml
Created August 8, 2019 13:54
Fetch implementation in reason
let fetch = (~meth=`GET, ~body=?, ~headers=[], url) => {
let uri = Uri.of_string(url);
let url_host = Uri.host_with_default(~default="", uri);
let url_scheme =
Uri.scheme(uri)
|> (
fun
| Some(scheme) => scheme
| None => "https"
/Users/ulrik.strid/Projects/private/reason-sample-project/_esy/default/store/i/bs_platform-1a130133/lib/bsc.exe -pp "/Users/ulrik.strid/Projects/private/reason-sample-project/_esy/default/store/i/bs_platform-1a130133/lib/refmt.exe --print binary" -bs-jsx 2 -w -30-40+6+7+27+32..39+44+45+101 -bs-suffix -nostdlib -I '/Users/ulrik.strid/Projects/private/reason-sample-project/_esy/default/store/i/bs_platform-1a130133/lib/ocaml' -color always -c -o src/Index.mlast -bs-syntax-only -bs-binary-ast -impl /Users/ulrik.strid/Projects/private/reason-sample-project/_esy/default/store/b/reason_sample_project-813e484a/src/Index.re
/Users/ulrik.strid/Projects/private/reason-sample-project/_esy/default/store/i/bs_platform-1a130133/lib/bsb_helper.exe -bs-ns ReactLite -g 0 src/Index.mlast
/Users/ulrik.strid/Projects/private/reason-sample-project/_esy/default/store/i/bs_platform-1a130133/lib/bsc.exe -bs-package-name react-lite -bs-ns ReactLite -bs-package-output commonjs:lib/js/src -bs-re-out -bs-super-errors -I /Users/ulrik.
info Skipping @opam/zed@opam:1.6
info Skipping @opam/zarith@opam:1.7
info Skipping @opam/yojson@opam:1.7.0
info Skipping @opam/x509@opam:0.6.3
info Skipping @opam/utop@opam:2.3.0
info Skipping @opam/uri@opam:2.2.1
info Skipping @opam/topkg@opam:1.0.0
info Skipping @opam/tls@opam:0.10.2
info Skipping @opam/stringext@opam:1.6.0
info Skipping @opam/stdlib-shims@opam:0.1.0