Skip to content

Instantly share code, notes, and snippets.

@mikhasd
mikhasd / uninstall_bloatware.ps1
Created January 5, 2024 17:27
Uninstall Windows 11 Bloatware
# Unable to uninstall the following packages
#
# - Microsoft.Windows.ParentalControls
# - Microsoft.MicrosoftEdgeDevToolsClient
# - Microsoft.XboxGameCallableUI
$undesired_apps = @(
'Microsoft.ZuneMusic',
'Microsoft.MicrosoftSolitaireCollection',
'Microsoft.XboxIdentityProvider',
@mikhasd
mikhasd / remove-facebook-ads.user.js
Last active June 30, 2023 07:58
Tampermonkey user script to Block/Remove Ads from Facebook timeline - Working as of 28-10-2021
// ==UserScript==
// @name Remove Facebook Ads
// @namespace https://gist.github.com/mikhasd
// @version 0.1
// @description Tampermonkey user script to remove ads from Facebook timeline.
// @author mikhasd
// @match https://www.facebook.com/
// @icon https://www.google.com/s2/favicons?domain=facebook.com
// @grant none
// ==/UserScript==
@mikhasd
mikhasd / crash.log
Created August 10, 2020 10:41
Terraform Crash Log
2020/08/10 11:36:25 [INFO] Terraform version: 0.12.29
2020/08/10 11:36:25 [INFO] Go runtime version: go1.12.13
2020/08/10 11:36:25 [INFO] CLI args: []string{"I:\\tools\\terraform.exe", "destroy"}
2020/08/10 11:36:25 [DEBUG] Attempting to open CLI config file: C:\Users\mikhasd\AppData\Roaming\terraform.rc
2020/08/10 11:36:25 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/08/10 11:36:25 [INFO] CLI command args: []string{"destroy"}
2020/08/10 11:36:25 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2020/08/10 11:36:25 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2020/08/10 11:36:25 [DEBUG] New state was assigned lineage "9e324b13-8deb-44c1-ce14-69ffcc195094"
2020/08/10 11:36:25 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@mikhasd
mikhasd / Throwables.java
Created January 11, 2013 18:50
Hides checked exception
public final class Throwables {
private Throwables() {
}
/**
* Wraps and throws a checked {@link Exception} as a
* {@link RuntimeException}
*
* @param exception