Skip to content

Instantly share code, notes, and snippets.

View FounderDAO's full-sized avatar
🏠
Работаю из дома

Abdulaziz Kholbaev FounderDAO

🏠
Работаю из дома
View GitHub Profile
@FounderDAO
FounderDAO / check-tvc-votes.sh
Created September 28, 2024 09:37 — forked from AshwinSekar/check-tvc-votes.sh
Check the current status of the TVC proposal on mainnet
#!/bin/bash
export LC_NUMERIC="en_US.UTF-8"
RPC_URL="https://api.mainnet-beta.solana.com"
MINT="tvcUX2gkQWsPYK2Uq7DeuX9ZJTFF9V3BGJ2isfLMgrg"
YES_ACCT="5ByopEuFqdd1AvXc6czKu6JQkCXdbWJwFMc4Bxe2dgYQ"
NO_ACCT="AhaUueUXYWEuksQdAJMjvjPGAbjnXhYdk2ZrBVtNA9YT"
ABSTAIN_ACCT="AYHPwv8WSNBKYStSQJ7NfgtWxMPz5WSw3MeDtc2Pww5r"
function fetch_vote_token_balance() {
@FounderDAO
FounderDAO / gist:e34e322b0d80ce0a2a2db260f85e22f7
Created January 31, 2024 08:49
DOCKER COMPOSE CONFIG FILE TO FOODBOT
version: '3.8'
services:
fooddb:
container_name: fooddb
image: postgres:12.2
restart: always #unless-stopped #always
environment:
POSTGRES_DB: food
POSTGRES_USER: postgres
@FounderDAO
FounderDAO / gist:a615b3d875430788c3ea5c12353783cf
Created January 27, 2024 18:06
SOLANA AND JITO RELAYER
# RELAYER SERVICE
[Unit]
Description=Solana transaction relayer
#Requires=network-online.target chrony.service
After=network-online.target
StartLimitIntervalSec=0
ConditionPathExists=/root/solana/relayer-keypair.json
ConditionPathExists=/root/solana/private.pem
ConditionPathExists=/root/solana/public.pem
[Unit]
Description=Solana Main node
After=network.target syslog.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
LimitNOFILE=1000000
Environment="PATH=/bin:/usr/bin:/root/.local/share/solana/install/releases/v1.16.23-jito/bin"
@FounderDAO
FounderDAO / python ec2 script
Last active August 26, 2023 21:37
Скрипт Python для запуска/перезагрузки/завершения экземпляра EC2 с помощью Boto3
# python script.py create
# python script.py start --instance-id i-0123456789abcdef0
# python script.py stop --instance-id i-0123456789abcdef0
# python script.py terminate --instance-id i-0123456789abcdef0
#
#
#
#
import boto3
@FounderDAO
FounderDAO / timestamp_converter.dart
Created January 25, 2023 09:53 — forked from slightfoot/timestamp_converter.dart
Timestamp/DateTime Converter for Cloud Firestore and Dart/Flutter.
// MIT License
//
// Copyright (c) 2020 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
from datetime import datetime
def to_isoformat(dt: datetime) -> str:
return (
dt.isoformat(timespec="milliseconds")
.replace("+00:00", "Z")
.replace(".000Z", "Z")
)
@FounderDAO
FounderDAO / Flutter.md
Last active November 14, 2022 15:02
FLUTTER TEST TO MIDDLE

1-Durt da necha xil compilator bor ? JAVOB: 2-ta compilator bor 1-Justin time Hot reload Hot restart devolepmen mode da ishlash unimdorligini oshirish uchun yordam beradi 2-Had of time Run qilgan vaqtda barcha codeni tekshirib analayz qilib keyn agar xatoli bo'lmasa uni complile qiladi

2-Compile qilgandan so'ng biz qanday natija olamiz yani outputda nima chiqadi JAVOB:

Шпаргалка по Markdown
---------------------
(перевод, [оригинал](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet))
Поиграть с разметкой Markdown можно на [демо-странице](http://www.markdown-here.com/livedemo.html).
##### Содержание
[Заголовки](#headers)
[Выделение](#emphasis)
@FounderDAO
FounderDAO / generate_address.ts
Created August 24, 2022 12:28
GENARATE WALLET COSMOS
import { encodeSecp256k1Pubkey, Secp256k1HdWallet } from "@cosmjs/amino";
import { Bip39, Random } from "@cosmjs/crypto";
const mnemonic = Bip39.encode(Random.getBytes(16)).toString();
const wallet = await Secp256k1HdWallet.fromMnemonic(mnemonic);
const [{ address, pubkey }] = await wallet.getAccounts();
console.info("mnemonic:", mnemonic);