Skip to content

Instantly share code, notes, and snippets.

@OMEGAYALFA
OMEGAYALFA / .. MediaCreationTool.bat ..md
Created Oct 10, 2021 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 21H1 with business (Enterprise) edition support
View .. MediaCreationTool.bat ..md

We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!

Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
Preview
A powerful yet simple windows 10 / 11 deployment automation tool as well!

configure via set vars, commandline parameters or rename script like iso 21H2 Pro MediaCreationTool.bat
recommended windows setup options with the least amount of issues on upgrades set via auto.cmd
awesome dialogs with keyboard focus to pick target version and preset action

@OMEGAYALFA
OMEGAYALFA / gist:fb5d9c8b29e2998450d65908d8bbe809
Created Aug 31, 2019 — forked from hieblmedia/gist:29c93d3b45e4da97147c
Detect Adblock using user and log in Analytics
View gist:fb5d9c8b29e2998450d65908d8bbe809
// Found here: http://www.labnol.org/internet/adblock-with-google-analytics/28819/
window.onload = function() {
// Delay to allow the async Google Ads to load
setTimeout(function() {
// Get the first AdSense ad unit on the page
var ad = document.querySelector("ins.adsbygoogle");
View gist:b1995e73e8203ef79caccdfef4f7be95
<!--
rel=logo is lovely.
I have a few ideas on making it better. The core idea is great, but if we're
pushing a new thing, we have an opportunity to encourage web developers to
provide more than just a single color logo. All of the ideas below are optional
enhancements for anybody wanting to use rel=logo on their site.
-->
View RemoveWin10DefaultApps.ps1
# See Remove default Apps from Windows 10 https://thomas.vanhoutte.be/miniblog/delete-windows-10-apps/
Get-AppxPackage Microsoft.Windows.ParentalControls | Remove-AppxPackage
Get-AppxPackage Windows.ContactSupport | Remove-AppxPackage
Get-AppxPackage Microsoft.Xbox* | Remove-AppxPackage
Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage # Mail and Calendar
#Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsCamera | Remove-AppxPackage
Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage
Get-AppxPackage Microsoft.Zune* | Remove-AppxPackage
@OMEGAYALFA
OMEGAYALFA / Decrypt using C# (H2 script).cs
Created May 28, 2016 — forked from DinisCruz/Decrypt using C# (H2 script).cs
Html and C# scripts to decrypt an AES string (used to communicate between a html server and a flash movie)
View Decrypt using C# (H2 script).cs
//based on code sample from this MSDN article: http://msdn.microsoft.com/en-us/library/system.security.cryptography.aes(v=vs.100).aspx)
Func<byte[], byte[],byte[], string> decryptStringFromBytes_AES =
(cipherText, Key, IV) =>
{
// Check arguments.
if (cipherText == null || cipherText.Length <= 0)
throw new ArgumentNullException("cipherText");
if (Key == null || Key.Length <= 0)
throw new ArgumentNullException("Key");
if (IV == null || IV.Length <= 0)
@OMEGAYALFA
OMEGAYALFA / rAF.js
Last active Apr 5, 2016 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
View rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@OMEGAYALFA
OMEGAYALFA / MemeMaker-Solution.html
Created Apr 5, 2016 — forked from jwill/MemeMaker-Solution.html
Simple MemeMaker Solution Code
View MemeMaker-Solution.html
<!DOCTYPE html>
<html>
<head>
<title>MemeMaker-Simple</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<style>
@OMEGAYALFA
OMEGAYALFA / MemeMaker.html
Created Apr 5, 2016 — forked from jwill/MemeMaker.html
Starter code for Meme Maker
View MemeMaker.html
<!DOCTYPE html>
<html>
<head>
<title>MemeMaker-Simple</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<style>