Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
{ varStealing = null; where var coDe = openSource }gth>openWare

BitBD bitbd83

💭
{ varStealing = null; where var coDe = openSource }gth>openWare
View GitHub Profile
@bitbd83
bitbd83 / genesis.json
Created Apr 16, 2021
Test EVM genesis
View genesis.json
{
"config": {
"chainId": 77128,
"homesteadBlock": 0,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
View Kebab_MasterChef_ABI.json
[
{
"inputs": [
{
"internalType": "contract KebabToken",
"name": "_cake",
"type": "address"
},
{
"internalType": "contract KetchupBar",
View Kebab_ABI.json
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
View auth.js
// This code is a script used in Postman
// It can generate auth token for BigONE OpenAPI
function base64url(source) {
// Encode in classical base64
encodedSource = CryptoJS.enc.Base64.stringify(source);
// Remove padding equal characters
encodedSource = encodedSource.replace(/=+$/, '');
@bitbd83
bitbd83 / ERC1155Adapter-flat.sol
Created Aug 6, 2020
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.4+commit.9549d8ff.js&optimize=true&gist=
View ERC1155Adapter-flat.sol
pragma solidity ^0.5.2;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
@bitbd83
bitbd83 / add.md
Last active May 19, 2020
Staking addy
View add.md

P3hims6soQojgR3jHzo2ooVwgqURQjQE5o

NjQjGV1gTRq4P2zfZaHWf18cgN8yRbCVAx

NueAqt8Kd8YhrZJJSKR5HX3ehWK5TbkJK6

NsppDV3y6hvL76vXvRZyU93793oA9P4398

NxZUKMdtWzBsQ2YZh5v15Zpe8169PgqYZq

@bitbd83
bitbd83 / address.md
Last active May 12, 2020
Imp addresses
View address.md

NsGeczGExMTFShn1MnnkVys8dXeMihj7D2 ndc-win7

Pb: 29xCyf1aBZZmi1YCMBjFQYVULGFXhYowvQLCEdzVWCUNM

View build.sh
#!/bin/bash
# This is the nexbit Menu System v1.0
## ----------------------------------
# Define variables
# ----------------------------------
EDITOR=nano
RED='\033[0;41;30m'
STD='\033[0;0;39m'
# ----------------------------------
@bitbd83
bitbd83 / bdb.sh
Last active Apr 29, 2020
BDB cross-compile script for mingw32 to make build for windows.
View bdb.sh
#!/bin/bash
MXE_PATH=/mnt/mxe
sed -i "s/WinIoCtl.h/winioctl.h/g" src/dbinc/win_db.h
mkdir build_mxe
cd build_mxe
CC=$MXE_PATH/usr/bin/i686-w64-mingw32.static-gcc \
CXX=$MXE_PATH/usr/bin/i686-w64-mingw32.static-g++ \
../dist/configure \
--disable-replication \