Skip to content

Instantly share code, notes, and snippets.

View niikoo's full-sized avatar
🐌

Nikolai Ommundsen niikoo

🐌
View GitHub Profile
@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 September 26, 2022 07:54
Useful registry tweaks
Windows Registry Editor Version 5.00
; Add "Extract MSI" to MSI context menu
[HKEY_CLASSES_ROOT\Msi.Package\shell\Extract MSI\command]
@="msiexec.exe /a \"%1\" /qb TARGETDIR=\"%1_contents\""
; Enable Hex Numpad (Useful for certain Alt character insertions)
[HKEY_CURRENT_USER\Control Panel\Input Method]
"EnableHexNumpad"=dword:00000001
@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:

@niikoo
niikoo / enable-explorer.exe-script-previews.cmd
Last active June 27, 2021 10:49
Windows 10 Improve explorer.exe Previews
REM Run this file as Administrator
REM Python
reg add HKLM\SOFTWARE\Classes\.py /v PerceivedType /t REG_SZ /d text /f
REM Lua
reg add HKLM\SOFTWARE\Classes\.lua /v PerceivedType /t REG_SZ /d text /f
REM node.js/npm
reg add HKLM\SOFTWARE\Classes\.npmignore /v PerceivedType /t REG_SZ /d text /f
// ==UserScript==
// @name SAS EuroBonus Online Shopping - Sort by points descending
// @namespace http://tampermonkey.net/
// @version 0.1.3
// @description Sorting the points
// @author niikoo
// @match https://onlineshopping.flysas.com/*
// @icon https://icons.duckduckgo.com/ip2/flysas.com.ico
// @updateURL https://gist.github.com/niikoo/0a86f8cd0b71c971f2284f04cf75a3f2/raw/sas-eurobonus-online-shopping-pointsort.user.js
// @downloadURL https://gist.github.com/niikoo/0a86f8cd0b71c971f2284f04cf75a3f2/raw/sas-eurobonus-online-shopping-pointsort.user.js