Skip to content

Instantly share code, notes, and snippets.

View niikoo's full-sized avatar
🐌

Nikolai Ommundsen niikoo

🐌
View GitHub Profile
// ==UserScript==
// @name M365 Copilot for Work Incident Preventer
// @namespace https://gist.github.com/niikoo
// @match https://m365.cloud.microsoft/chat*
// @grant none
// @version 1.2
// @author niikoo
// @icon https://icons.duckduckgo.com/ip2/m365.cloud.microsoft.ico
// @description Prevent accidentally navigating away from a M365 Copilot for Work chat
// @supportURL https://gist.github.com/niikoo/00120afe78f25d0e1f8a1f1e952c4648
@niikoo
niikoo / fix-cyber-chef-field-width.user.js
Last active January 22, 2025 20:30
Fix CyberChef field width. Userscript for https://gchq.github.io/CyberChef/
// ==UserScript==
// @name Fix CyberChef field width
// @namespace https://gist.github.com/niikoo
// @version 2025-01-22
// @description CyberCheft ingredient fields have a small width by default.
// @author niikoo
// @match https://gchq.github.io/CyberChef/
// @icon https://gchq.github.io/CyberChef/assets/aecc661b69309290f600.ico
// @grant none
// @supportURL https://gist.github.com/niikoo/75a0b72b058d6035f9a56e6b7a0ea106
@niikoo
niikoo / README.md
Last active July 1, 2022 17:13 — forked from linuxr01/README.md
Using AdGuard DNS over HTTPS (DoH) on Windows 11

Why

You may want to use AdGuard's DNS over HTTPS[^1] service if you

  1. Want to make it harder for your ISP to know what websites you are requesting
  2. Want to block most traditional ads from your web browsing experience across your entire PC
  3. Want to make the web more family friendly (using the AdGuard Family protection server [^2])

Setup instructions

@niikoo
niikoo / rishexec.sh
Created April 5, 2022 22:29
./rish -c sh
settings put global settings_provider_model false
settings put secure sysui_qs_tiles “wifi,cell,$(settings get secure sysui_qs_tiles)”
@niikoo
niikoo / no-hypervisor-boot-entry-win11.md
Last active October 25, 2021 20:01
Creating a "no hypervisor" boot entry on Windows 11

From time to time I want to run Virtual PC / Virtual Server / HAXM on my Hyper-V system.

While I can do this with the hypervisor running, the result is that Virtual PC / Virtual Server run quite slowly. An easy fix for this is to create a second boot entry for my system that starts Windows without starting the hypervisor.

To do this you need to open an administrative PowerShell and run:

bcdedit /copy "{current}" /d "Windows 11 - no Hyper-V"

This copies your currently active boot entry (assuming that this is the one you want to copy) and gives the new copy an appropriate description.

@niikoo
niikoo / clock.html
Created October 24, 2021 11:12 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@niikoo
niikoo / useful-registry-tweaks.reg
Last active March 12, 2025 07:29
Useful registry tweaks
Windows Registry Editor Version 5.00
; Speed up Windows Explorer by disabling automatic folder type discovery (for example photos view in folders with photos) [Applied per user]
[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]
[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagsMRU]
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"
; Not sure if the above was working as expected. Use this instead: https://lesferch.github.io/WinSetView/
; Fix Windows 11 BSOD so that it shows the error code, disable auto reboot and ensure that minidumps and logs are made
@niikoo
niikoo / webvtt-decoder.cyber.chef
Created July 16, 2021 14:03
WEBVTT Decoder 1.1
Find_/_Replace({'option':'Simple string','string':'WEBVTT'},'',true,false,false,false)
Find_/_Replace({'option':'Regex','string':'([0-9]{2}\\:[0-9]{2}(\\:[0-9]{2}){0,1}\\.[0-9]{3}\\s\\-\\-\\>\\s[0-9]{2}\\:[0-9]{2}(\\:[0-9]{2}){0,1}\\.[0-9]{3,4})'},'',true,false,false,false)
Regular_expression('User defined','^(.{0,})?(?![0-9]{2}\\:[0-9]{2}\\:[0-9]{2}\\.[0-9]{3}\\s\\-\\-\\>\\s[0-9]{2}\\:[0-9]{2}\\:[0-9]{2}\\.[0-9]{3}){1(.{0,}?)$',true,true,true,false,false,false,'List capture groups'/disabled)
Find_/_Replace({'option':'Extended (\\n, \\t, \\x...)','string':'\\n\\n\\n'},'\\n\\n',true,false,true,false)
Find_/_Replace({'option':'Extended (\\n, \\t, \\x...)','string':'\\n\\n'},'\\n',true,false,true,false)
Find_/_Replace({'option':'Regex','string':'(\\"{0,1}\\[\\<.+?\\,\\s[a-zA-Z]{0,20}\\])'},'',true,false,true,false)
Find_/_Replace({'option':'Regex','string':'([,a-zA-Z]{1}\\s{0,}?)(\\r{0,1})\\n'},'$1 ',true,false,true,false)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig]
"BypassTPMCheck"=dword:00000001
"BypassSecureBootCheck"=dword:00000001
@niikoo
niikoo / ffmpeg-mp4-to-animated-webp.md
Created July 5, 2021 19:21 — forked from witmin/ffmpeg-mp4-to-animated-webp.md
Convert MP4 file to animated WebP in ffmpeg

Convert MP4 file to animated WEBP file in ffmpeg CLI

1. Install ffmpeg CLI through homebrew

In terminal.app, install ffmpeg through homebrew

brew install ffmpeg

Validate the installation: