slmgr /ipk your_license_key
Replace your_license_key
with following volumn license keys according to Windows Edition:
/* Copyright 2019 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* https://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
#!/bin/bash | |
wget -c https://9front.org/iso/9front-9442.0e66f87316e571f7edf5274369ec69a5905507aa.amd64.iso.gz | |
gunzip -k 9front-9442.0e66f87316e571f7edf5274369ec69a5905507aa.amd64.iso.gz | |
if ! [ -f plan9.raw ]; then | |
qemu-img create plan9.raw 10G | |
fi | |
exec qemu-system-x86_64 -enable-kvm \ | |
-smp $(nproc) \ | |
-m $((8*1024)) \ |
# 移除兩個不實用的 Cmdlet Aliases | |
If (Test-Path Alias:curl) {Remove-Item Alias:curl} | |
If (Test-Path Alias:wget) {Remove-Item Alias:wget} | |
# 快速開啟 c:\windows\system32\drivers\etc\hosts 檔案 | |
function hosts { notepad c:\windows\system32\drivers\etc\hosts } | |
# 快速產生一組亂數密碼 (預設會產生 10 個字元的密碼) | |
function New-Password { | |
<# |
#! /usr/bin/env sh | |
# A hyprland script for a laptop-external-monitor setup, toggling between which is in use | |
# Launch at startup to make hyprland disable the internal monitor if an external monitor is detected and enabled | |
# Additionally it's called with a keybind to switch between a laptop monitor and an external display | |
# Ideally the conditional monitor behaviour was instead done directly in hyprland.conf, but I'm not sure whether that's possible | |
# | |
# Relevant info: | |
# - hyprctl monitors: identifies currently enabled monitors |
Windows Registry Editor Version 5.00 | |
; Pitch Black Theme preset by AveYo, AccentPalette idea by /u/Egg-Tricky | |
; for Ctrl+Alt+Del, Logon, Taskbar, Start Menu, Action Center (10 & 11) | |
; revised 2022-06-16: show active taskbar button in accent color | |
[-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent] | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent] | |
"AccentColorMenu"=dword:aa000000 ; Window borders and titlebar | |
"StartColorMenu"=dword:aa202020 ; Modals in UWP ex. Apply new refresh rate in 10 |
import streamlit as st | |
import io | |
import contextlib | |
import sys | |
import re | |
import threading | |
class _Redirect: | |
class IOStuff(io.StringIO): |
/* Terminal */ | |
yarn create vite my-project | |
cd my-project | |
yarn add -D tailwindcss postcss autoprefixer | |
yarn tailwindcss init -p | |
/* tailwind.config.cjs */ | |
/** @type {import('tailwindcss').Config} */ | |
module.exports = { |