Skip to content

Instantly share code, notes, and snippets.

View dantrevino's full-sized avatar
💭
I may be slow to respond.

Dan Trevino dantrevino

💭
I may be slow to respond.
View GitHub Profile
@dantrevino
dantrevino / btc-collateralization.md
Created December 8, 2023 05:58 — forked from abdelghafour/BTC Collateralization.md
BTC Collateralization Through Flow API

Create the collateral:

const headers = { Authorization: MY_COMPANY_API_KEY };
const data = {
  where: {},
  data: {
    fee: 100,
    borrower: {
      cardinal: {
 amount: 100,
apps: [
{
category: "Music, Photo & Video",
storageNetwork: "Gaia",
authentication: "Blockstack",
imgixImageUrl:
"https://appco.imgix.net/apps/ae938da5-bb0c-4496-8720-2493f7b2e9a0",
id: 825,
name: "Recall",
categoryID: 8,
testnet request complete:
{
"data":{
"success":true,
"txId":"0x53c19536724646b52f6d657bcec7114dcc2ec36d5dbe38aa8464662e0df07937",
"txRaw":"80800000000400164247d6f2b425ac5771423ae6c80c754f7172b000000000000000ae00000000000000b40000d523438b49efa22637467f2e2a70a53cc77a5516695cc0000f80b0a09a53144520d3391cbb9d9fe8f1f07def4e7e1f1291eb21aca461e26a1e165ae2fc0525d903020000000000051a139e0d344a29feae1ccb77510915e06bc7578c78000000001dcd650046617563657400000000000000000000000000000000000000000000000000000000"
},
"status":200,
"statusText":"",
"headers":{"content-type":"application/json; charset=utf-8"},
@dantrevino
dantrevino / CrossCompilingStackBlockchain.md
Created March 28, 2020 17:11
Cross Compiling Stack Blockchain

Cross-Compiling Stacks 2.0 for Raspberry Pi

Notice

The instructions below describe how to build the Blockstack Stacks v2.0 Blockchain for Raspberry Pi 2, 3, or the 1GB RAM model Pi 4, with cross. Raspberry Pi 1 and Raspberry Pi Zero are not supported by these instructions. Note also that by default the build is a developer-mode build.

For instructions on building directly on Raspberry Pi 4, with >= 2GB of RAM, see the README.md.

More about cross: https://github.com/rust-embedded/cross

```bash
dan@chaos   ~/projects/stacks-wallet/release/linux-unpacked    master  v3.0.0   ./stacks-wallet-1 [1] 29059 segmentation fault (core dumped) ./stacks-wallet-1
dan@chaos   ~/projects/stacks-wallet/release/linux-unpacked    master  v3.0.0   cd ..
dan@chaos   ~/projects/stacks-wallet/release    master  v3.0.0   ls    4278  10:23:27
builder-effective-config.yaml linux-unpacked stacks-wallet-1_3.0.0_amd64.deb stacks-wallet-1_3.0.0_amd64.snap
dan@chaos   ~/projects/stacks-wallet/release    master  v3.0.0   sudo dpkg -i stacks-wallet-1_3.0.0_amd64.deb
Selecting previously unselected package stacks-wallet-1.
(Reading database ... 521321 files and directories currently installed.)
Preparing to unpack stacks-wallet-1_3.0.0_amd64.deb ...
Unpacking stacks-wallet-1 (3.0.0) ...
did:3:bafyreidjzgxiac333qx3neyxjyklhjofdrugtnff2ivtlguvatm4efhtfy
<q-select
borderless
v-model="model"
clearable
use-chips
use-input
fill-input
input-debounce="0"
:options="options"
@filter="filterFn"
ERROR Failed to compile with 1 errors 11:15:15 AM
error in ./.quasar/client-entry.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] /home/dan/projects/w3b3/.quasar/client-entry.js: Cannot find module './src/data'
Require stack:
- /home/dan/projects/w3b3/node_modules/core-js-compat/helpers.js
- /home/dan/projects/w3b3/node_modules/core-js-compat/get-modules-list-for-target-version.js
- /home/dan/projects/w3b3/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
<v-text-field>
<template v-slot:prepend>
<v-icon color="primary">icon</v-icon>
</template>
</v-text-field>
<template>
<div>
<v-navigation-drawer
app
v-model="drawer"
id="sidenav"
:value="$vuetify.breakpoint.mdAndUp"
class="grey lighten-4"
>
<v-layout column justify-space-between fill-height>