Skip to content

Instantly share code, notes, and snippets.

@milnak
milnak / ubuntu20-hyperv-enhanced-session.md
Last active August 11, 2025 13:00
Enabling enhanced session in Hyper-V for Ubuntu 20: This works for me, although it seems that Hyper-V quick create now supports enhanced session by default. #ubuntu #hyperv

Setup Hyper-V enhanced session for Ubuntu 20

I couldn't find instructions that were 100% complete, so I put this together.

These instructions worked fine for me. Follow each step carefully.

Download Ubuntu 20 desktop

DO NOT create the VM by choosing Quick Create in Hyper-V Manager. Follow these instructions exactly.

@ZipFile
ZipFile / README.md
Last active October 7, 2025 10:52
Pixiv OAuth Flow

Retrieving Auth Token

  1. Run the command:

    python pixiv_auth.py login

    This will open the browser with Pixiv login page.

javascript: (async function () {const o={delay:200,filters:{minViews:1,skipTitlesWith:["on vocal","off vocal","ニコカラ"]},colors:{add:"#b0e8fc",existing:"#8ef990"},baseUrl:"https://vocadb.net"},e=o=>new Promise(e=>setTimeout(e,o)),t=(o,e,t)=>{const i=document.createElement("a");return i.textContent=o,i.href=t,i.target="_blank",i.addEventListener("click",o=>{o.stopPropagation()}),Object.assign(i.style,{backgroundColor:e,color:"black",padding:"7px 14px",border:"1px solid black",textDecoration:"none",display:"inline-block",marginLeft:"10px",marginTop:"5 px",width:"70px"}),i},i=(o,e)=>{let t=`a[href="/watch/${e}"]`,i=document.querySelector(t);if(!i&&(console.log(`First position attempt failed for video id: ${e} and position: ${t}`),t=`a[href="https://www.nicovideo.jp/watch/${e}"]`,i=document.querySelector(t),!i&&(console.log(`Second position attempt failed for video id: ${e} and position: ${t}`),t=`a[href="watch/${e}"]`,i=document.querySelector(t),!i)))throw new Error(`No position found for video id: ${e} and positi