Skip to content

Instantly share code, notes, and snippets.

View vladdou's full-sized avatar
🏠
Working from home

Vladimir Douritski vladdou

🏠
Working from home
  • Prolog
  • Chernivtsi
  • 00:54 (UTC +02:00)
  • X @vladdou
View GitHub Profile
@vladdou
vladdou / .. MediaCreationTool.bat .md
Created November 8, 2020 17:15 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 20H2 with business (Enterprise) edition support

Preview1 Preview2

2018.10.10: reinstated 1809 [RS5]! using native xml patching for products.xml; fixed syntax bug with exit/b
2018.10.12: added data loss warning for RS5
2018.11.13: RS5 is officially back! + greatly improved choices dialog - feel free to use the small snippet in your own scripts
2019.05.22: 1903 [19H1]
2019.07.11: 1903 __release_svc_refresh__ and enable DynamicUpdate by default to grab latest CU
2019.09.29: UPDATED 19H1 build 18362.356 ; RS5 build 17763.379 and show build number
static class StringExtensions
{
public static string Shorten(this string text, int length)
{
// Truncate a string to n characters
return text.Substring(0, length);
}
public static string Reverse(this string input)
{
@vladdou
vladdou / x-wifi-ap-wrapper.sh
Created January 31, 2018 15:35 — forked from pfactum/x-wifi-ap-wrapper.sh
Wi-Fi wrapper
#!/usr/bin/env bash
delay="1000"
pid1=`pidof hostapd`
if [[ $pid1 != "" ]]
then
notify-send -t $delay "Зупиняю точку доступу Wi-Fi…"
sudo iptables -t nat -F
sudo iptables -t mangle -F