Skip to content

Instantly share code, notes, and snippets.

View Aryog's full-sized avatar
:shipit:
OG

Aryog Aryog

:shipit:
OG
View GitHub Profile
[{"token_contract_address":"0x79f7a9a5ad9a2e3243d4e483ddb024093821c011","token_id":71613,"balance":6164198792.38,"user_address":"0x0e453a7bdb17a12ad2de211ecea16f5b86c202ff","twitter_handle":null,"twitter_pfp_url":null,"twitter_username":null,"twitter_followers":null,"is_contract":true},
{"token_contract_address":"0x79f7a9a5ad9a2e3243d4e483ddb024093821c011","token_id":71613,"balance":1551674230.00,"user_address":"0x92d461a0ae914575894ca4a1bef26cd72df09b52","twitter_handle":"whoisanku","twitter_pfp_url":"https://static.starsarena.com/uploads/78c41c8e-5e16-f403-5d6f-9f8bfb4ffc281741346540941.png","twitter_username":"anku","twitter_followers":713,"is_contract":false},
{"token_contract_address":"0x79f7a9a5ad9a2e3243d4e483ddb024093821c011","token_id":71613,"balance":429969629.04,"user_address":"0xacd5396a625d47f10cdc84c95683cde4d0688ce8","twitter_handle":"Cryptopepper3","twitter_pfp_url":"https://static.starsarena.com/uploads/44e3c717-6f44-bac3-57c6-5e9e5f9477701748345543730.png","twitter_username":"Pepper","tw
@Aryog
Aryog / v1.py
Created January 30, 2025 12:27
from coincurve import PrivateKey
from ecdsa import SigningKey, SECP256k1
from ecdsa.util import sigencode_der
import binascii
import requests
import json
import hashlib
import base58
from typing import Dict, Any, Optional, Tuple, List
from coincurve import PrivateKey
from ecdsa import SigningKey, SECP256k1
from ecdsa.util import sigencode_der
import binascii
import requests
import json
import hashlib
import base58
from typing import Dict, Any, Optional, Tuple, List
@Aryog
Aryog / main.rs
Created January 18, 2025 17:04
Example for creating the rust http request
use actix_web::{get, web, App, HttpResponse, HttpServer, Responder};
use chrono::Utc;
use lazy_static::lazy_static;
use serde::{Deserialize, Serialize};
use std::collections::{HashMap, HashSet};
use std::sync::Arc;
lazy_static! {
static ref CATEGORIES: HashMap<&'static str, u32> = {
let mut m = HashMap::new();
#!/bin/bash
# Fail on any error
set -e
# Create Hadoop user
sudo useradd -m -s /bin/bash hadoop
sudo usermod -aG sudo hadoop
# Update and install dependencies

This error typically occurs when Brave Browser detects that its profile is already in use by another instance of Brave running on a different computer, which prevents it from launching to prevent corruption. Here’s how you can resolve this issue on Fedora:

  1. Kill the existing Brave processes (if any): Open a terminal and run the following command to list all Brave processes:

    perl aux | grep brave-browser

This will show you a list of processes related to Brave. Look for any processes that are still running and note down their process IDs (PIDs). For example:

@Aryog
Aryog / BlastNFT.sol
Created February 1, 2024 16:49
Solidity smart contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/token/ERC721/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/utils/math/SafeMath.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.5/contracts/utils/Counters.sol";
interface IBlast {
#!/bin/bash
# Set the folder path where your .ima files are located
folder_path="/home/yogesharyal/Downloads/Sample_MRI_data"
output_folder="$folder_path/output"
# Create the ouput folder if it doesn't exist
mkdir "$output_folder"
# Check if the folder exists
if [ ! -d "$folder_path" ]; then

PostgreSQL. jsonb is a binary representation of JSON data that provides various functions for indexing and querying. Here's an example:

1. Create a Table with a jsonb Column:

Let's create a table with a jsonb column to store JSON-like data.

CREATE TABLE example_jsonb_table (
    id SERIAL PRIMARY KEY,
    data JSONB
@Aryog
Aryog / learn_hstore.md
Created January 2, 2024 15:41
Learn the HSTORE in postgres commonly known as the key value storage in psql ;)

Hstore is a key-value pair data type in PostgreSQL that allows you to store sets of key-value pairs within a single PostgreSQL value. Here's a step-by-step example of implementing and using hstore in PostgreSQL:

1. Enable the Hstore Extension:

Make sure the hstore extension is available in your PostgreSQL database. You can enable it using the following command:

sqlCopy code
CREATE EXTENSION IF NOT EXISTS hstore;