Skip to content

Instantly share code, notes, and snippets.

import time
import os
import sys
import json
from create_currency import create_currency
from dotenv import load_dotenv
load_dotenv(verbose=True)
rpc_user = str(os.environ['vrsctest_rpc_user'])
@imylomylo
imylomylo / learning-komodo-crypto-conditions-programming.md
Last active April 3, 2023 18:35
Learning Komodo Crypto Conditions Programming
@imylomylo
imylomylo / gist:edbf8eeb9b6ed634d72cc6095201e5b6
Created January 25, 2023 20:43
Get YouTube video transcript into a text file
from youtube_transcript_api import YouTubeTranscriptApi
# https://www.geeksforgeeks.org/python-downloading-captions-from-youtube/
srt = YouTubeTranscriptApi.get_transcript("_6YwF1OkbVU")
with open("subtitles.txt", "w") as f:
for i in srt:
f.write("{}\n".format(i.get('text')))
```
sudo apt-get install libssl-dev libcurl4-openssl-dev python3.8-dev
git clone https://github.com/KMDLabs/pos64staker
cd pos64staker/
sudo apt-get install python3-venv
python -m venv venv
source venv/bin/activate
pip3 install setuptools
pip3 install wheel
pip3 install base58 slick-bitcoinrpc
@imylomylo
imylomylo / #tg_conv_bot.md
Created November 27, 2021 23:43 — forked from aahnik/#tg_conv_bot.md
A simple conversation bot that will ask user's name, and save it. Persistent, Polling, Shows Button, Has conversation flow, Conversation Handler, python-telegram-bot, ptb,

How to run

  1. Install dependancies.
pip3 install python-dotenv python-telegram-bot
  1. Then put the files of this gist inside a folder.
// Try on DartPad.dev
import 'package:flutter/foundation.dart'
show debugDefaultTargetPlatformOverride;
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'dart:math';
import 'dart:async';
var random = Random(0);
```
{
"txid": "5d9f4a5f726e3f3bf8dba9bb161e87d4c53b40bb86567d222bdc917bd03b2ec2",
"overwintered": true,
"version": 4,
"versiongroupid": "892f2085",
"locktime": 0,
"expiryheight": 90470,
"vin": [
{
@imylomylo
imylomylo / komodo-on-arm.txt
Last active May 26, 2021 12:25
komodo on arm testers install instructions
## 1. Install termux cli on android (tablet or phone)
go to store and install termux, andronix (& vnc viewer if you wanna run gui desktop env)
## 2. Update termux repos
termux in 2021, first command change repo
```
# termux-change-repo
```
```
[
{
"id": 2,
"name": "Bialobrzegi",
"pubkey": "020601143b9058cf20246e8a999cf761215d1e26e41d709b51afbb89faeccde4a5",
"raddress": "R9NkPTewaHywvWGN9UzXcrZJZygx1JCCT2",
"organization": 2
},
{
@imylomylo
imylomylo / python-django-postgres-ci.yml
Created May 10, 2021 05:15 — forked from jefftriplett/python-django-postgres-ci.yml
This is a good starting point for getting Python, Django, Postgres running as a service, pytest, black, and pip caching rolling with GitHub Actions.
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services: