Skip to content

Instantly share code, notes, and snippets.

View lugondev's full-sized avatar
🎯
Focusing

0xLugon lugondev

🎯
Focusing
View GitHub Profile
@lugondev
lugondev / gif.go
Created June 9, 2024 08:56
Generate base64 encoding from GIF
package main
import (
"encoding/base64"
"fmt"
"log"
"os"
)
func main() {
@lugondev
lugondev / runsignet.sh
Created January 14, 2024 03:41 — forked from brakmic/runsignet.sh
Build and run Bitcoin Signet
#!/usr/bin/env bash
#-----------------------------------------------------------------------------------------------------#
# Build and run Bitcoin Signet - developed by Kalle Alm (@kallewoof) #
# #
# Follow the development on GitHub: https://github.com/bitcoin/bitcoin/pull/18267 #
# #
# For this script to run you'll have to install several packages first (boost, libevent, libzmq3) #
# Check this doc for more info: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md #
# #
# Script usage: #
@lugondev
lugondev / generate_blocks.sh
Created January 14, 2024 03:40 — forked from System-Glitch/generate_blocks.sh
Tutorial for bitcoin regtest
# Script to generate a new block every minute
# Put this script at the root of your unpacked folder
#!/bin/bash
echo "Generating a block every minute. Press [CTRL+C] to stop.."
address=`./bin/bitcoin-cli getnewaddress`
while :
do

Keybase proof

I hereby claim:

  • I am lugondev on github.
  • I am lugon (https://keybase.io/lugon) on keybase.
  • I have a public key ASCkYhUSWNnrhazclIxdPEmvv9MjTuqeR1nxpmDHqVtjswo

To claim this, I am signing this object:

@lugondev
lugondev / contracts...1_Storage.sol
Created March 13, 2022 18:33
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.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
panic(cpu 2 caller 0xfffffe0023cd0ca8): DCP PANIC - ASSERT: AFKWorkloop_rtkit.cpp:251: [status == RTK_ST_OK]
ASSERT: RTK_workloop_init:80000008 - additionThread(27)
ASSERT: AFKWorkloop_rtkit.cpp:251: [status == RTK_ST_OK]
ASSERT: RTK_workloop_init:80000008
RTKit: RTKit-1826.60.2.debug - Client: local-t600xdcp.release
!UUID: d66133a2-256b-3785-8a04-d8d0622efeb4
Time: 0x000012de9716c911
Faulting task 27 Call Stack: 0x000000000001d9b0 0x000000000001d4b4 0x000000000001d308 0x0000000000020438 0x0000000000030520 0x00000000000a02a0 0x00000000000a1800 0x0000000000037d6c 0x00000000000a1ce0 0x000000000005bc14 0x0000000000037d6c 0x000000000004aec8 0x000000000003737c 0x00000000000370ec 0x0000000000052cb0 0x000000000006da2c 0x0000000000030864 0x000000000001e154 0x0000000000030694 0x000000000006bf34 0x00000000000b2ba4 0x00000000000a0154 0x0000000000030864 0x000000000001e154 0x0000000000030694 0x00000000000a0060 0x000000000003a2e4 0x0000000000034dbc 0x000000000001de44 0x0000000000011200 000000000000000000
RTKit Task List:
@lugondev
lugondev / genesis.json
Last active August 22, 2020 10:26
genegis
{
"genesis_time": "2020-08-22T10:23:11.227015Z",
"chain_id": "band-consumer",
"consensus_params": {
"block": {
"max_bytes": "22020096",
"max_gas": "-1",
"time_iota_ms": "1000"
},
"evidence": {

Keybase proof

I hereby claim:

  • I am lugondev on github.
  • I am lugondev (https://keybase.io/lugondev) on keybase.
  • I have a public key ASCbZV8xwOYJw3AvXj5Gos6LGhELt4RhM9PkUsQBUOywTAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am lugondev on github.
  • I am lugondev (https://keybase.io/lugondev) on keybase.
  • I have a public key ASCbZV8xwOYJw3AvXj5Gos6LGhELt4RhM9PkUsQBUOywTAo

To claim this, I am signing this object: