Skip to content

Instantly share code, notes, and snippets.

@imylomylo
imylomylo / video_noob_guide.md
Created January 3, 2026 04:28 — forked from arch1t3cht/video_noob_guide.md
What you NEED to know before touching a video file

What you NEED to Know Before Touching a Video File

Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.

If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of computing power, storage space, or video quality.

@imylomylo
imylomylo / hits.md
Created September 10, 2025 15:27
Number of hits on the rpc that responds to raw.verus.trading

Each page load hits about 10 rpc requests, count them next time you visit https://raw.verus.trading :)

#!/bin/bash
cd /var/www/rpc.vrsc.komodefi.com/logs
for i in `ls` ; do   cd $i ; echo $i `cat access_log | wc -l ` ; cd .. ; done
$ ./hits.sh 
2023-09-05 270
@imylomylo
imylomylo / unique_ips_rpc_host.md
Last active September 10, 2025 15:22
Count of unique IPs on the rpc server that responds to raw.verus.trading
#!/bin/bash
cd /var/www/HOST/logs
for i in `ls` ; do   cd $i ; echo $i `awk '{print $1}' access_log | sort | uniq | wc -l` ; cd .. ; done
$ ./ip_unique.sh 
2023-09-05 44
2023-09-06 51
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": [
{