Skip to content

Instantly share code, notes, and snippets.

View m0rphed's full-sized avatar

Victor Khovanov m0rphed

  • 07:53 (UTC +03:00)
View GitHub Profile
@m0rphed
m0rphed / emodipt_custom_v2.toml
Created April 4, 2026 19:12
Oh My Posh config mod v2
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
version = 3
final_space = true
[[blocks]]
type = "prompt"
alignment = "left"
newline = true
[[blocks.segments]]
@m0rphed
m0rphed / main.py
Last active November 8, 2024 01:57
import pandas as pd
from phonemizer import phonemize
from gruut import sentences
from phonemizer.punctuation import Punctuation
# input and output names
input_file_path = "./text.csv"
output_file_path = "./text_augmented.csv"
N = 50
# reading data from csv
@m0rphed
m0rphed / different_phoneme_alph.py
Created November 7, 2024 13:34
Various phoneme output
# pip install rich
# pip install phonemizer # also: sudo apt-get install festival espeak-ng mbrola # for espeak
# pip install gruut
from gruut import sentences
from phonemizer import phonemize
from phonemizer.punctuation import Punctuation
from rich.console import Console
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@m0rphed
m0rphed / docker-compose.yml
Created July 17, 2024 22:58
docker-compose wp example
version: '3.7'
volumes:
wp-data:
networks:
wp-back:
services:
db:
@m0rphed
m0rphed / suai-sem-03-prog-QandA.md
Created January 10, 2024 05:20
Основы программирования

Основы программирования

1. Конкурентность в C++ (Cuncurrency in C++).


Конкурентность в C++ относится к способности программы выполнять несколько задач параллельно для улучшения производительности. В C++ существует несколько способов реализации конкурентности, включая использование потоков, мьютексов, futures и execution policies.

  1. Потоки (Threads): Потоки в C++ (стандарт C++11 и выше) позволяют параллельное выполнение различных задач. Пример:

Make a developer-ready Win11 from ashes (user's folder named in CP-1251 😵)

(⚠️ UNSAFE) Renaming the user home folder

Method 1: fast

  • Sign in to "broken" user account && back-up valuable data
  • Open cmd (Run as administrator)
  • net user administrator /active:yes - activate administrator account
  • Sign out from "broken" user account
from typing import Callable, Awaitable, Coroutine
async def async_function() -> int:
return 42
def sync_function() -> str:
return "Hello, world!"
@m0rphed
m0rphed / app.py
Created April 10, 2022 03:17
Fwd from Twitter to Telegram bot v 0.1.0 (deps: twint, aiogram, nest_asyncio)
import asyncio
import twint
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
import nest_asyncio
nest_asyncio.apply()
TOKEN = 'YOUR_TOKEN_HERE'
bot = Bot(token=TOKEN)
@m0rphed
m0rphed / test.ipynb
Created March 24, 2022 13:56
Test: evcxr (rust in jupyter) assigning array slice to variable with confusing message
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.