Skip to content

Instantly share code, notes, and snippets.

View Madjarx's full-sized avatar
🐳
Debugging Docker

Luka Radisavljevic Madjarx

🐳
Debugging Docker
View GitHub Profile

Copy paste List of Cellframe CLI commands

Ledger (Holders)

QEVM holders

  1. /opt/cellframe-node/bin/cellframe-node-cli ledger list balance -net Backbone > allbalances.txt
  2. `awk ' /Ledger balance key:/ { ledger_key = $4 } /token_ticker:/ && $2 == "QEVM" { if (balance > 0) print ledger_key, balance } /balance:/ { balance = $2 }
////// CLIENT SIDE
import classnames from 'classnames';
import * as anchor from '@project-serum/anchor';
import { Token, TOKEN_PROGRAM_ID } from '@solana/spl-token';
import { useState, useEffect } from 'react';
import { WalletMultiButton } from '@solana/wallet-adapter-react-ui';
import { useWallet, useConnection } from '@solana/wallet-adapter-react';
import { Container, Snackbar, Paper, CircularProgress } from '@material-ui/core';
import CTAButton from '../components/CTAButton';
/**
* This gist is here to preserve the wonderful class of Broker that i made once upon a time
* I'm prolly going to reuse it sometime and enhance it, thus the gist
*/
const amqp = require('amqplib');
const clc = require('cli-color');
/**
* Broker class
@Madjarx
Madjarx / BF888S_default_01012019.csv
Created April 22, 2023 20:04 — forked from kennedy/BF888S_default_01012019.csv
Baofeng BF888S default frequencies
Location Name Frequency Duplex Offset Tone rToneFreq cToneFreq DtcsCode DtcsPolarity Mode TStep Skip Comment URCALL RPT1CALL RPT2CALL DVCODE
1 462.125000 0.000000 TSQL 88.5 69.3 023 NN FM 5.00 S
2 462.225000 0.000000 88.5 88.5 023 NN FM 5.00 S
3 462.325000 0.000000 88.5 88.5 023 NN FM 5.00 S
4 462.425000 0.000000 TSQL 88.5 103.5 023 NN FM 5.00 S
5 462.525000 0.000000 TSQL 88.5 114.8 023 NN FM 5.00 S
6 462.625000 0.000000 TSQL 88.5 127.3 023 NN FM 5.00 S
7 462.725000 0.000000 TSQL 88.5 136.5 023 NN FM 5.00 S
8 462.825000 0.000000 TSQL 88.5 162.2 023 NN FM 5.00 S
9 462.925000 0.000000 DTCS 88.5 88.5 023 NN FM 5.00 S
@Madjarx
Madjarx / transfer.html
Created March 24, 2023 09:53
Transfer Eth Node RED node that i do not want to discard but i will drop it from my project
<!DOCTYPE html>
<script type="text/javascript">
RED.nodes.registerType('transfer', {
category: 'General nodes',
defaults: {
rpc: { value: '', type: 'rpc', required: true },
privateKey: { value: '', type: 'privateKey', required: true },
recipient: { value: '', required: true },
recipientType: { value: 'str', required: true },
amount: { value: '', required: true, },
@Madjarx
Madjarx / tomono.sh
Created November 3, 2022 12:45 — forked from regexident/tomono.sh
convert multiple repos to monorepo
#!/bin/bash
# Merge multiple repositories into one big monorepo. Migrates every branch in
# every subrepo to the eponymous branch in the monorepo, with all files
# (including in the history) rewritten to live under a subdirectory.
#
# To use a separate temporary directory while migrating, set the GIT_TMPDIR
# envvar.
#
# To access the individual functions instead of executing main, source this
### Keybase proof
I hereby claim:
* I am madjarx on github.
* I am madjarx (https://keybase.io/madjarx) on keybase.
* I have a public key ASB4PdketqXGhOJgMN-TXmD0HRLgguh4unfz1l8N7oR9Dgo
To claim this, I am signing this object: