Skip to content

Instantly share code, notes, and snippets.

View kamikazechaser's full-sized avatar

Mohamed Sohail 天命 kamikazechaser

View GitHub Profile
@kamikazechaser
kamikazechaser / README.md
Created March 11, 2024 07:08
[OpenWrt] Unifi AC mesh flashing guide

Flashing a Unifi AC Mesh with OpenWrt

Requirements

  • Linux machine with a LAN port

Configure Wired Connection on Your OS

  1. Open your network manager and go to IPv4 settings.
  2. Set method to manual and use the following settings:
@kamikazechaser
kamikazechaser / metadata.json
Created October 5, 2023 03:59
GrassrootsEconomics Celo Validator Claim
{"claims":[{"timestamp":1696478290,"type":"ACCOUNT","address":"0xd8457a4b949c1b7Bc26538F54743Aa61EEcA38B6"}],"meta":{"address":"0xce55dda5933D94482001012504C56762103190a1","signature":"0x470b9340d2e507080da6a65c19c87af14a8353140668bf0e9b7159b9d0e043fb276b6d58b10c2c96ff9080e4f6fa9fd27c13e67a0d0d72e24207930b68cf349101"}}
@kamikazechaser
kamikazechaser / metadata.json
Created October 5, 2023 03:51
GrassrootsEconomics Celo Claims
{"claims":[{"domain":"grassrootseconomics.org","timestamp":1696476486,"type":"DOMAIN"},{"timestamp":1696477531,"type":"ACCOUNT","address":"0xce55dda5933D94482001012504C56762103190a1"}],"meta":{"address":"0xd8457a4b949c1b7Bc26538F54743Aa61EEcA38B6","signature":"0x7149f88032e94722d7e8c621241ec275d6e39c1b7652c01983e3d07f7714301a147d4515516c8f493da8bdf83d720e0e857fc0ccf20aeacef18ee88a01bda31701"}}
@kamikazechaser
kamikazechaser / DemurrageTokenSingleNocap.sol
Last active March 20, 2024 06:55
erc20-demurrage-token-inlined v0.5.6
pragma solidity >= 0.8.0;
/*
* ABDK Math 64.64 Smart Contract Library. Copyright © 2019 by ABDK Consulting.
* Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com>
* License: BSD-4-Clause
*/
/**
Computer Information:
Manufacturer: Gigabyte Technology Co., Ltd.
Model: A520M DS3H
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 PRO 4650G with Radeon Graphics
CPU Family: 0x17
@kamikazechaser
kamikazechaser / frontends.md
Last active October 17, 2022 09:53
GE frontends

Public facing dashboard (Public Blockchain explorer)

1. Detailed summary stats (Global; all tokens):

  • Token trade count
@kamikazechaser
kamikazechaser / simple_create_pk_wallet.dart
Last active September 26, 2022 09:09
Creating ethereum keys
import 'dart:math';
// https://pub.dev/packages/web3dart
import 'package:web3dart/web3dart.dart';
import 'package:web3dart/crypto.dart';
// https://pub.dev/packages/bip39
import 'package:bip39/bip39.dart' as bip39;
// https://pub.dev/packages/dart_bip32_bip44/
@kamikazechaser
kamikazechaser / pgx_bul_insert.go
Created July 12, 2022 10:20
pgx_bul_insert.go
// getBulkInsertSQL is a helper function to prepare a SQL query for a bulk insert.
//
// For example:
//
// SQLString = "INSERT INTO notes (thing_a, thing_b) VALUES %s"
// rowValueSQL = "?, ?"
// numRows = 3
//
@kamikazechaser
kamikazechaser / gdrive.service
Created June 2, 2022 12:55
GDrive Rclone Mount (E.g. for MPV Streaming)
[Unit]
Description=GDrive Mount
Requires=network.target
After=network.target
[Service]
ExecStart=/usr/bin/rclone mount gdrive: /home/kamikaze/Desktop/tv \
--allow-other \
--dir-cache-time 72h \
--drive-chunk-size 32M \
package main
import (
"context"
"fmt"
"log"
"math/big"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus/clique"