Skip to content

Instantly share code, notes, and snippets.

@emchristiansen
emchristiansen / gist:6845954
Created October 5, 2013 21:00
This is a modified version of FindJNI.cmake which lets CMake work with Oracle Java 7 in Ubuntu 13.04. The file at /usr/share/cmake-2.8/Modules/FindJNI.cmake should be overwritten with this file.
# This is a modified version of FindJNI.cmake which lets it work with
# Oracle Java 7 in Ubuntu 13.04.
# The file at /usr/share/cmake-2.8/Modules/FindJNI.cmake should be
# overwritten with this file.
# - Find JNI java libraries.
# This module finds if Java is installed and determines where the
# include files and libraries are. It also determines what the name of
# the library is. This code sets the following variables:
#
@emchristiansen
emchristiansen / stack_trace.ml
Created January 14, 2022 01:34
Unable to get stack traces when using Lwt.catch
let bar () : unit Lwt.t =
assert false ;
Lwt.return_unit
let foo () : unit Lwt.t = bar ()
let run () : unit Lwt.t = foo ()
let run_catch () : unit Lwt.t =
Lwt.catch run (fun exn ->
Contract code:
{ parameter
(or (or (unit %default)
(pair %getBalance address (or (address %fA12) (pair %fA20 address nat))))
(or (nat %setTmp) (list %setTmpFromFA20Callback (pair (pair address nat) nat)))) ;
storage nat ;
code { SELF %setTmp ;
SELF %setTmpFromFA20Callback ;
DIG 2 ;
UNPAIR ;
Contract on Hnet:
https://hangzhounet.tzkt.io/KT1WVeZ48hPBewaHTpt5HGGCKdTDyieKBzuY/code
Client call:
tezos-client --endpoint https://hangzhounet.api.tez.ie \
--wait none \
transfer 0 from nessie to KT1WVeZ48hPBewaHTpt5HGGCKdTDyieKBzuY \
--arg '(Left (Right (Pair "tz1dkUXrcScDxMTUkNuzTg5iBRHevn7KFBMW" (Left "KT1PWx2mnDueood7fEmfbBDKx1D9BAnnXitn"))))' \
--burn-cap
Deleting old tmp workspace directory
Creating tmp workspace directory
Syncing /tmp/arbi_workspace to workspace
dex_digraph:
XTZ -> LiqBak -> tzBTC
XTZ -> QuipuSwap IDZ -> IDZ
XTZ -> QuipuSwap TezDAO -> TezDAO
XTZ -> QuipuSwap OBJKT -> OBJKT
XTZ -> QuipuSwap wHUSD -> wHUSD
XTZ -> QuipuSwap oXTZ -> oXTZ
# Packages matching: installed
# Name # Installed # Synopsis
alcotest 1.5.0 Alcotest is a lightweight and colourful test framework
alcotest-lwt 1.5.0 Lwt-based helpers for Alcotest
angstrom 0.15.0 Parser combinators built for speed and memory-efficiency
asetmap 0.8.1 Alternative, compatible, OCaml standard library Sets and Maps
asn1-combinators 0.2.6 Embed typed ASN.1 grammars in OCaml
astring 0.8.5 Alternative String module for OCaml
base v0.15.0 Full standard library replacement for OCaml
base-bigarray base
# Packages matching: installed
# Name # Installed # Synopsis
alcotest 1.6.0 Alcotest is a lightweight and colourful test framework
alcotest-lwt 1.6.0 Lwt-based helpers for Alcotest
angstrom 0.15.0 Parser combinators built for speed and memory-efficiency
asetmap 0.8.1 Alternative, compatible, OCaml standard library Sets and Maps
asn1-combinators 0.2.6 Embed typed ASN.1 grammars in OCaml
astring 0.8.5 Alternative String module for OCaml
base v0.15.0 Full standard library replacement for OCaml
base-bigarray base
Shared cache: disabled
Workspace root: /home/ubuntu/scratch/ocaml_broken_build
Auto-detected concurrency: 8
Running[0]: /home/ubuntu/scratch/ocaml_broken_build/_opam/bin/ocamlc.opt -config > /tmp/dune_c093c1_output
Dune context:
{ name = "default"
; kind = "default"
; profile = Dev
; merlin = true
; for_host = None
Shared cache: disabled
Workspace root: /home/ubuntu/scratch/ocaml_broken_build
Auto-detected concurrency: 8
Running[0]: /home/ubuntu/scratch/ocaml_broken_build/_opam/bin/ocamlc.opt -config > /tmp/dune_e35947_output
Dune context:
{ name = "default"
; kind = "default"
; profile = Dev
; merlin = true
; for_host = None
apiVersion: pingcap.com/v1alpha1
kind: TidbCluster
metadata:
name: basic
namespace: tidb-cluster
spec:
version: v6.5.0
timezone: UTC
pvReclaimPolicy: Retain
enableDynamicConfiguration: true