Skip to content

Instantly share code, notes, and snippets.

View aakash4dev's full-sized avatar

Aakash Singh Rajput aakash4dev

View GitHub Profile
@aakash4dev
aakash4dev / .prettierrc.json
Created May 6, 2023 11:15
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.18+commit.87f61d96.js&optimize=false&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
@aakash4dev
aakash4dev / leveldb golang CRUD operations
Last active June 19, 2023 14:38
code to create, read, update, delete leveldb database on golang
package main
import (
"fmt"
"github.com/syndtr/goleveldb/leveldb"
)
func main() {
// connect leveldb: no URL required
db, err := leveldb.OpenFile("airdata/db", nil)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract MyToken is ERC721, ERC721URIStorage, Ownable {
using Counters for Counters.Counter;
//SPDX-License-Identifier:MIT
pragma solidity ^0.8.0;
library Address {
function isContract(address account) internal view returns (bool) {
return account.code.length > 0;
}
//SPDX-License-Identifier:MIT
pragma solidity ^0.8.0;
library Address {
function isContract(address account) internal view returns (bool) {
return account.code.length > 0;
}
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts@4.8.0/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts@4.8.0/token/ERC20/utils/SafeERC20.sol";
interface VerifierWithdrawInterface {
function verifyProof(
uint256[2] calldata proofA,
uint256[2][2] calldata proofB,
Privacy Policy
Effective Date: July 3, 2025
This Privacy Policy describes how [Your App Name, e.g., Wishlist App] ("the App") collects, uses, and protects your information.
1. Data Collection
The Wishlist App is designed with your privacy in mind. We **do not collect, store, or transmit any personal data** from your device. All your wishes, including titles, descriptions, and their fulfillment status, are stored **locally on your device only**. This means your data is never uploaded to our servers or shared with any third parties.

Android Studio installation codes for Ubuntu 24.04.3 LTS

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386 -y
sudo apt install wget unzip openjdk-21-jdk -y
sudo snap install android-studio --classic
android-studio
# Import MongoDB public GPG key
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
# Add MongoDB repository
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
# Update and install
sudo apt-get update
sudo apt-get install -y mongodb-org
@aakash4dev
aakash4dev / gh-export-issues.sh
Created November 14, 2025 12:03
A portable Bash tool that fetches labels, milestones, and every issue (open & closed) from any GitHub repo using the GH CLI. Supports multiple repos, URLs, and owner/repo formats. Generates ISSUE_STATUS.json + ISSUE_STATUS.md in the current folder. No personal access tokens needed.
#!/usr/bin/env bash
#
# gh-export-issues.sh
#
# A portable shell script that exports GitHub repository data
# (labels, milestones, open issues, closed issues)
# using the authenticated GitHub CLI session (gh auth login).
#
# Output:
# ISSUE_STATUS.json — machine-friendly full dataset