Skip to content

Instantly share code, notes, and snippets.

View windows10-reduce-winsxs-folder-plus-delete-temporary-files.cmd
REM you need to execute in adminstrator command prompt
REM based on
REM https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder
Dism.exe /online /Cleanup-Image /StartComponentCleanup
REM All existing service packs and updates cannot be uninstalled after this command is completed.
REM This will not block the uninstallation of future service packs or updates
Dism.exe /online /Cleanup-Image /SPSuperseded
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
@Coldblackice
Coldblackice / Start-WindowsCleanup.ps1
Created Oct 3, 2022 — forked from DrEmpiricism/Start-WindowsCleanup.ps1
Clean-up system clutter and reclaim disk space
View Start-WindowsCleanup.ps1
Function Start-WindowsCleanup
{
<#
.SYNOPSIS
`Start-WindowsCleanup` cleans-up a system clutter and reclaims disk space.
.DESCRIPTION
The `Start-WindowsCleanup` cmdlet performs the following clean-up tasks to reclaim disk space:
Clears the contents of common directories of the Windows file system for both the current running user and the global system that are used to store temporary, logging, backup, cache and dump files.
@Coldblackice
Coldblackice / Start-WindowsCleanup.ps1
Created Oct 3, 2022 — forked from Ioan-Popovici/Start-WindowsCleanup.ps1
Performs a windows cleanup by removing volume caches, update backups, update and CCM caches.
View Start-WindowsCleanup.ps1
<#
.SYNOPSIS
Performs a windows cleanup.
.DESCRIPTION
Performs a windows cleanup by removing volume caches, update backups, update and CCM caches.
.PARAMETER CleanupOptions
Supported options:
"comCacheRepair" # Component Cache Repair
"comCacheCleanup" # Component Cache Cleanup
"volCacheCleanup" # Volume Cache Cleanup
@Coldblackice
Coldblackice / MozLZ4-garbage.md
Created Sep 15, 2022 — forked from ATRescue/MozLZ4-garbage.md
MozLZ4/JsonLZ4 is a moronic idea. Here's why.
View MozLZ4-garbage.md

MozLZ4/JsonLZ4 is a moronic idea. Here's why.

Written by ATrescue.

I am not implying the comperssion algorithm Lz4 is bad. But adding an Lz4 layer to JSON files was a terrible idea by Mozilla.

Since Firefox version 56 (which is the last non-quantum version of Firefox), the session files in the 📁 sessionstore-backups directory are no longer recovery.bak and recovery.json, but recovery.baklz4 and recovery.jsonlz4. They should have called it recovery.bak.lz4 and recovery.json.lz4, which would be more logical file names, but they should not have done it in first place. Also the folders 📁bookmarkbackups 📁crashes/store.json.mozlz4 📁datareporting is affected (intoxicated) by Lƶ4.

“If it isn't broken, don't ‘fix’ it” does not apply to everything (e.g. when improving so

@Coldblackice
Coldblackice / export-from-stylish.py
Created Nov 14, 2020 — forked from ExE-Boss/export-from-stylish.py
Export styles from Stylish for Firefox
View export-from-stylish.py
#! /usr/bin/env python3
import os.path
import glob
import sqlite3
import json
def main():
styles_glob = os.path.expanduser('~/AppData/Roaming/Mozilla/Firefox/Profiles/*.default/stylish.sqlite');
styles_path = glob.glob(styles_glob)[0];
@Coldblackice
Coldblackice / SearchEverything.ahk
Created Feb 10, 2017 — forked from Onurtag/ExploreEverything.ahk
Search current folder using Everything
View SearchEverything.ahk
#NoTrayIcon
#SingleInstance Force
MyUsername := "Onurtag" ;Go to your %userprofile% and change this to the title of that window. Keep the quotes.
MyRecycleBin := "Recycle Bin" ;Go to your Recycle Bin and change this to the title of that window. Keep the quotes.
MyThisPC := "This PC" ;Go to your This PC and change this to the title of that window. Keep the quotes.
;You can delete below blocks if you don't want the features.
;BLOCK 1 - DESKTOP