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 March 27, 2025 04:19
Восстанавливаем доступ к ДС с помощью Amnezia WG

Оживляем ДС

Быстрый способ (на ~10 минут) для разблокировки Discord вместе с голосовыми каналами. Этот способ также разблокирует YouTube и X/Twitter, а также любые другие заблокированные сайты.

Спасибо ImMAILWARE за скрипт для генерации конфигов.

Я рекомендую сразу перейти к способу с браузером, так как его относительно проще провернуть.

Способ с Linux

@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 February 27, 2025 20:35

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

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

Легенда
⚠️ Ограниченный трафик
@mrbluecoat
mrbluecoat / vpn-options.md
Last active February 20, 2025 17:03
Open Source VPN options
  • Amnezia VPN (OpenVPN & WireGuard protocols) - Windows, MacOS, iOS, Android, Linux (no ARM support)
  • 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, NetBSD
  • Cloak (OpenVPN & Shadowsocks protocols) - Windows, MacOS
@danieldogeanu
danieldogeanu / RenameGitBranch.md
Last active March 1, 2025 12:41
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.