Skip to content

Instantly share code, notes, and snippets.

View Kenya-West's full-sized avatar
💻
Windows

Innokenty Ivanov Kenya-West

💻
Windows
View GitHub Profile
@Kenya-West
Kenya-West / (Almost) automatically install oh-my-posh.md
Last active February 12, 2025 17:04
This is a guide that helps you install oh-my-posh and its necessary boilerplate without deep dive to their documentation

(Almost) automatically install oh-my-posh

This is a guide that helps you install oh-my-posh and its necessary boilerplate without deep dive to their documentation

0. Pre-requisites

In this guide, it is assumed that you have installed:

  1. VS Code (User setup, not system one);
  2. PowerShell 6+, whatever way (Microsoft Store, WinGet, Portable);
@Kenya-West
Kenya-West / script.js
Last active October 23, 2023 17:11
VK get posts in feed
// This is a script to get posts from feed, mark them with emoji (similar to reaction you set on post)
// In the end, it returns a text you can copy and post directly to VK.
// The text will reference all the posts you've reacted to.
const config = {
timeToLoad: 1000,
timeToUnload: 350,
zeroResultLimit: 10
};
@Kenya-West
Kenya-West / script.js
Created February 10, 2023 12:08
Get members of current selected feed in Telegram Web Z
const namesList = new Set();
let namesListDelta = 1;
let scrollingCounter = 0;
const scrollingCounterLimit = 10;
while(namesListDelta > 0 || scrollingCounter < scrollingCounterLimit) {
let delta = namesList.size;
const elems = document.querySelectorAll(".Transition.zoom-fade .Transition.slide-optimized .Transition__slide--active .chat-list .ListItem .info .info-row .title");
const names = Array.from(elems).map((elem) => elem.innerText);

Здравствуйте!

Для эмиграции в наше нелегкое время вам потребуются все документы, в том числе:

  • Загранпаспорт
  • Внутренний паспорт
  • ИНН (ХЗ зачем, "ну надо"©)
  • СНИЛС, Полис и прочие документы
  • Запасной работающий телефон (рекомендуется)

🇷🇺 Перед вылетом местным вылетом в другой город РФ:

@Kenya-West
Kenya-West / README.md
Last active May 1, 2022 06:14
Krisha.kz mobile phone number copier allow you to copy any Russian/Kazakh mobile phone number to your device's clipboard

Description

A js file for Tampermonkey that allows you to copy any Russian/Kazakh mobile phone number in Krisha.kz website redirect to the new item page. This project is a script for Krisha.kz website.

How to contribute

Copy source code of this project on GitHub Gist and start your changes. If you want to use the script from source code directly by yourself, then create new script in Tampermonkey extension and put source code in opened window.

How to use this script?

@Kenya-West
Kenya-West / VK-get-videos-links-wall.js
Created March 31, 2022 14:00
Get links of external videos you have in wall (on your profile VK.com)
@Kenya-West
Kenya-West / FindSmallVerticalVideos.ps1
Created March 31, 2022 13:08
Find vertical videos MP4 that has resolution smaller than 400 by height. This script uses TagLibSharp. Get it here first: https://www.nuget.org/packages/TagLibSharp
Import-Module "Path\To\TagLibSharp.dll";
$dir = ".\";
$files = Get-ChildItem -Path $dir -Filter "*.mp4";
[array] $arr = @();
function Format-CoubName {
param (
[string]$Name
)
@Kenya-West
Kenya-West / VK-get-videos-links-im.js
Created March 30, 2022 14:49
Get links of external videos you have in chat (on VK Messenger web)
@Kenya-West
Kenya-West / find-VK-messages.js
Created March 30, 2022 12:42
Find messages with links pattern on VK IM page
const config = {
filterBySender: "Вы",
regex: /coub\.com\/view\/[a-z0-9]+/,
timeToLoad: 750,
};
const dialogsRoot = document.querySelector("#im_dialogs");
const dialogScrollableArea = document.querySelector(
"#im_dialogs .ui_scroll_inner.tt_noappend"
@Kenya-West
Kenya-West / check-files-from-txt.ps1
Last active March 30, 2022 12:41
[Poweshell] Check files existing by names defined in txt file and save non-existent to new txt file
$urls = Get-Content "List of links - all.txt"
$dir = ".\"
[array] $arr = @();
foreach ($i in ($urls.Count - 1)..0) {
$filename = "$dir$(Split-Path -Leaf $urls[$i]).mp4";
if ((Test-Path -Path $filename -PathType Leaf) -eq $False) {
$arr += $urls[$i];