Skip to content

Instantly share code, notes, and snippets.

View vyach-vasiliev's full-sized avatar

ฬะทçะรโลนร vyach-vasiliev

  • Milky Way galaxy, planet Earth
View GitHub Profile
@Csqhi515
Csqhi515 / CompactWSL.bat
Created October 18, 2024 17:35
Script to help compact WSL and vhdx.
@echo off
net session >nul 2>&1
if %errorlevel% neq 0 (
echo Requesting administrative privileges...
powershell -Command "Start-Process '%~f0' -Verb RunAs"
exit /b
)
wsl sudo fstrim --all; echo "Exit status: $?";
@EgorBron
EgorBron / discord-revive.md
Last active October 6, 2025 13:05
Восстанавливаем доступ к ДС с помощью Amnezia WG

Оживляем ДС

Ранее, здесь находился гайд по тому, как вернуть доступ к Discord и прочим недоступным ресурсам.

Но в свете последних событий — сбои Cloudflare (как с их стороны, так и со стороны этой страны), появления адекватных способов сделать всё как раньше, [вставьте-сюда-ваши-необузданные-догадки-почему-всё-накрылось-медным-тазом] — теперь тут пусто.

Да и банальный уход автора из ДС, ровно как и малое понимание в тунеллировании и прочем таком, как-то отбросили желание поддерживать актуальность статьи.

@vyach-vasiliev
vyach-vasiliev / Install_Ignore_From_Dropbox_Context_Menu.reg
Last active August 5, 2024 02:02
Ignore from Dropbox by context menu in Windows OS [updated 2024]
Windows Registry Editor Version 5.00
;= Setup ignore file/folder menu.
;= Context menu to folders:
[HKEY_CLASSES_ROOT\Directory\shell\Dropbox F Ignore]
"AppliesTo"="System.ItemPathDisplay:\"Dropbox\""
"Icon"="C:\\Program Files (x86)\\Dropbox\\Client\\Dropbox.exe,12"
@="Ignore from Dropbox"
[HKEY_CLASSES_ROOT\Directory\shell\Dropbox F Ignore\command]
@Saiv46
Saiv46 / VPN.md
Last active October 10, 2025 21:16

VPN нужен любому человеку пользующимся интернетом в России. Другой вопрос - какой VPN всё ещё работает и как его достать? Благодаря людям и их ответам в VPN-треде, был составлен данный список.

Примечание: Возможно вам не требуется VPN для обхода блокировок, сначала посмотрите Дополнительные инструменты.

Легенда
⚠️ Ограниченный трафик
@mrbluecoat
mrbluecoat / vpn-options.md
Last active October 26, 2025 14:23
Open Source VPN options
  • Amnezia VPN (OpenVPN & WireGuard protocols) - Windows, MacOS, iOS, Android, Linux (no ARM support)
  • Anywherelan (TCP & QUIC) - Windows, Linux, Android, MacOS
  • boringproxy (in-house developed "NameDrop" protocol) - Windows, MacOS, Linux, FreeBSD, OpenBSD
  • boringtun (WireGuard protocol) - MacOS, Linux (mobile clients not open source)
  • Brook (in-house developed "Brook" protocol as well as WebSocket Secure, SOCKS5, and QUIC protocols) - Windows, MacOS, Linux, OpenWrt (mobile clients not open source)
  • Chisel (SSH protocol) - Windows, MacOS, Linux
  • cjdns (in-house developed "CryptoAuth" protocol) - Windows, MacOS, Linux, FreeBSD, N
@danieldogeanu
danieldogeanu / RenameGitBranch.md
Last active August 3, 2025 16:05
How to rename your Git master branch to main.

To rename your Git master branch to main, you must do the following steps:

  1. Navigate to your repository in the command line and issue the following commands: - git branch -m master main - git push -u origin main

  2. Change your default branch on GitHub by going to your GitHub repository in your browser, and navigate to Settings > Branches and click on the dropdown and switch from master to main and click Update (this will only show if you have two or more branches). The main branch is now your default branch.

  3. Update the tracking of the branch from your command line with the following command: - git branch -u origin/main main

@vyach-vasiliev
vyach-vasiliev / getM3U8.js
Last active June 2, 2020 10:39
Kinopub bookmarklet (m3u8-playlist downloader, one season at a time)
// ver 20200601
function getM3U8() {
// parsing and building playlist
var blocks = [];
for (var i = 0; i < playlist.length; i++) {
// var block = '#EXTINF:%duration logo="%cover",%title %status\n%url\n#EXTALB:%album\n#EXTIMG:%image\n'; // alt version
var block = '#EXTINF:%duration,%title %status\n%url\n';
var item = playlist[i];
block = block
.replace('%duration', item.duration)
@a1ip
a1ip / youtube-video-thumbnails-sizes-and-formats.md
Created April 7, 2020 18:53
YouTube video thumbnails sizes and formats

Note: YouTube is serving thumbnails from 2 servers:

  • //img.youtube.com
  • //i.ytimg.com

Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.

  • Player Background Thumbnail (480x360):

@Bnaya
Bnaya / dep.ts
Last active April 28, 2022 16:23
ts-node + esm
export function funci() {
return "AHH HHHHAAA";
}
@generall
generall / shrink_embeddings.ipynb
Created April 27, 2019 22:32
Shrinking Fasttext embeddings
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.