Skip to content

Instantly share code, notes, and snippets.

@Beasta
Beasta / imsiToMac.js
Last active September 29, 2023 06:41
convert baicells IMSI to Mac
// starting number is the first IMSI number on the sim card package of 10
// function will create and return two arrays - first array is the 10 sequential IMSIs, second array is the 10 MACs
// it will also print a nice table for you
// you can run it in the browser console
// just copy past and then call it like this
// createArrays(xxxxxIMSIxxxxx)
function createArrays(startingNumber) {
// Generate first array
let array1 = [];
for(let i = 0; i < 10; i++) {

The problem

I've always been serious about maintaining good wallet hygiene. This has resulted in an absurd amount of addresses over the years. To track them all I use etherscan. There are several problems with using etherscan for tracking address notes. A few are:

  1. Etherscan is centralized
  2. Etherscan notes aren't visible in other wallets and websites. This results in having notes in a variety of places ... Zapper.fi, Rotki, Metamask, etc.
  3. Etherscan's solution to public notes is Disqus which is centralized and always blocked by adlbockers.

This problem is not isolated to ethereum and a good solution will be chain agnostic.

The solution

My vision for the solution is to create an address notes standard that can be recognized by the multitude of clients out there. Currently I'm proposing that it would be a JSON object that would look like this:

@Beasta
Beasta / attestation.txt
Created April 11, 2022 22:06
Attestation
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 290
Hash: 597f1d0a 55282700 910c727c 18763960
a2eed191 9f3a289e f7d2a1c7 daa3bb01
603a5558 8351c82a cb578f5a 13cbeb84
1db4c834 ef4c3119 46f53aa4 5bd2770c
@Beasta
Beasta / AuthyToOtherAuthenticator.md
Created November 26, 2021 18:18 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@Beasta
Beasta / validator-penalties.js
Last active October 7, 2021 22:20
A simple script to extract your helium node's penalty history. Offers a little more history than is available on the website.
// you'll need to run ```npm i lodash cross-fetch``` first to install the packages
// next, to run it: ```node validator-penalties.js "your-node-name"```
// this script assumes no collisions in node names, which does occur in the wild
const _ = require('lodash');
const fetch = require('cross-fetch');
const findMe = process.argv[2];
(async () => {
try {
@Beasta
Beasta / frameWallets.js
Last active September 29, 2021 07:37
node.js script for retrieving, modifying, and updating Frame wallets. Meant to be run it its own folder. Kill Frame first.
// probably a smart idea to make sure that Frame isn't running when this is executed
const fs = require('fs');
// this location assumes Mac installation
let frameConfigLocation = `${process.env.HOME}/Library/Application Support/frame/config.json`;
// testMode will create a copy of the frame Config in the local folder and modify that instead of the original
const testMode = true;
let frameConfig;
let frameConfigAccounts;
const exampleAddressObj = {
id: '0x223c067F8CF28ae173EE5CafEa60cA44C335fecB',
@Beasta
Beasta / zapperfiWallets.js
Last active September 29, 2021 07:44
Simple script for retrieving, modifying, and updating zapper.fi wallets. Meant to be run in the console.
////////////////////////////////////////////////////
// zapper.fi
//////////////////////////////////////////////////////
// grab persist:account from localStorage and parse it
let persistAccount = JSON.parse(localStorage.getItem("persist:account"))
Object.keys(persistAccount).forEach(key => {
let value = JSON.parse(persistAccount[key]);
persistAccount[key] = value;
@Beasta
Beasta / discord-token-logger.js
Created September 22, 2021 21:29 — forked from m-Phoenix852/discord-token-logger.js
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
@Beasta
Beasta / docker-compose.yml
Last active July 8, 2021 19:26 — forked from tedder/docker-compose.yml
helium validator + watchtower (with consensus check) + exporter
# launch: docker-compose up -d
version: "3.7"
services:
validator:
image: quay.io/team-helium/validator:latest-validator-amd64
container_name: validator
init: true
restart: always
ports:
- "2154:2154"
@Beasta
Beasta / 00-about-search-api-examples.md
Created June 18, 2018 23:24 — forked from jasonrudolph/00-about-search-api-examples.md
5 entertaining things you can find with the GitHub Search API