Skip to content

Instantly share code, notes, and snippets.

View palkx's full-sized avatar
🙃

Mykhailo N. palkx

🙃
View GitHub Profile
@palkx
palkx / local-network-1803-fix.cmd
Created October 17, 2018 13:52
Fix local network issues in Windows 10 1803 and later
@ECHO OFF
SC config fdPHost start=delayed-auto
sc failure fdPHost reset=86400 actions=restart/120000/restart/120000/restart/120000
SC start fdPHost
SC config FDResPub start=delayed-auto
sc failure FDResPub reset=86400 actions=restart/120000/restart/120000/restart/120000
SC start FDResPub
SC config SSDPSRV start=delayed-auto
sc failure SSDPSRV reset=86400 actions=restart/120000/restart/120000/restart/120000
SC start SSDPSRV
@palkx
palkx / Windows-registry-tweak.reg
Last active September 4, 2022 12:31
Windows personalized settings registry tweak
Windows Registry Editor Version 5.00
;Добавить пункт "Копировать в папку..." в контекстное меню файлов
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\CopyTo]
@="{C2FBB630-2971-11d1-A18C-00C04FD75D13}"
;Добавить пункт "Переместить в папку..." в контекстное меню файлов
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\MoveTo]
@="{C2FBB631-2971-11d1-A18C-00C04FD75D13}"
@palkx
palkx / proxy.pac
Last active November 25, 2017 19:45
Proxy.pac for ukraine (ips from zaborona.help)
function FindProxyForURL(url, host) {
const nets = `
pasted content of https://zaborona.help/ips.txt here
# Vkontakte
# ------------------------
87.240.128.0/18
93.186.224.0/20
95.142.192.0/20
95.213.0.0/18
185.29.130.0/24

Copy this script and insert in console

var nodes = document.querySelectorAll(".ui_actions_menu_item"), i = 0, inter = setInterval( function() { if (i == nodes.length) { clearInterval(inter);}; if (nodes[i].innerHTML === "Delete post" || nodes[i] === "Удалить запись") nodes[i].click(); i++; }, 100);
@palkx
palkx / VK remove all audio.md
Last active November 19, 2018 22:41
Remove all audio on vk

Load all audio on page, then open developer console (ctrl+shift+i) and insert this code:

var nodes = document.querySelectorAll("._audio_act_delete"), i = 0, inter = setInterval( function() { if (i == nodes.length) { clearInterval(inter);}; var evObj = new Event('click'); nodes[i].dispatchEvent(evObj); i++; }, 100);

Keybase proof

I hereby claim:

  • I am madxkk on github.
  • I am madxkk (https://keybase.io/madxkk) on keybase.
  • I have a public key whose fingerprint is DE6D 1B6F 92BE 303E 729E 44BC 6507 0186 D0C9 21AA

To claim this, I am signing this object: