Skip to content

Instantly share code, notes, and snippets.

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

onokatio onokatio

🏠
Working from home
View GitHub Profile
@fortinmike
fortinmike / reclaim-disk-space.bat
Last active June 8, 2024 16:07
Aggressively reclaim disk space in a Windows partition
::
:: Reclaims Windows disk space in a "destructive" manner (can't uninstall service packs and updates afterwards, etc.).
:: Use at your own risk. Useful for Windows installations in space-constrained environments, such as a small Boot Camp
:: partition on a Mac.
::
:: [IMPORTANT] It is strongly suggested to make a full-disk backup of your Windows partition before running this script,
:: as you can't roll back service packs and updates afterwards.
::
:: [IMPORTANT] Run this script as admin (required to run `Dism.exe` among other things).
::
@akihikodaki
akihikodaki / README.en.md
Last active June 13, 2024 11:44
Linux Desktop on Apple Silicon in Practice

Linux Desktop on Apple Silicon in Practice

I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.

Fortunately, Linux already works on Apple Silicon/M1. But how practical is it?

  • Two native ports exist.
@mkizka
mkizka / youtube-scroll-mini-player.user.js
Last active March 31, 2023 06:38
YouTubeでスクロールしたら小さいプレーヤーを表示するUserScript
// ==UserScript==
// @name YouTube Scroll Mini Player
// @version 1.0.5
// @author mkizka
// @description YouTubeでスクロールしたら小さいプレーヤーを表示するUserScript
// @homepage https://gist.github.com/mkizka/e5771459a160dc39f3fc632269ab6c57
// @match https://www.youtube.com/*
// ==/UserScript==
(function () {
@flanger001
flanger001 / containers.js
Last active August 7, 2023 16:40
If you use Firefox Multi-Account Containers with Firefox sync, sometimes you will get a number of extra containers, even thousands of them. Run this in the devtools console in the Firefox containers section `about:preferences#containers`. Add your own container tags on line 48.
let removeContainers = (...containers) => {
let items, isValid, removeButtons;
items = document.querySelectorAll("#browserContainersGroupPane richlistitem");
isValid = (el) => typeof (el) != "undefined" || el != null;
removeButtons = [];
items.forEach((el, idx) =>
{
const hbox_1 = el.getElementsByTagName("hbox").item(0);
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.