Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

Discover gists

@yovko
yovko /arch_linux_install_notes.md
Last activeDecember 18, 2025 10:34
Arch Linux installation (BTRFS+LUKS2+Limine)

LUKS2 encrypted BTRFS system partition with Limine/Snapper integration and hybernate to swapfile

Table of Contents

@zaxebo1
zaxebo1 /README.md
CreatedOctober 28, 2017 15:28
How to enable SecureBoot with own keys in KVM and on a laptop (T450s)

For KVM and Laptop

Rationale

I want full control what boots the computer to avoid the so calledevil maid attack. That requires setting SecureBoot with only my own keys.

Intro

@paulirish
paulirish /what-forces-layout.md
Last activeDecember 18, 2025 10:31
What forces layout/reflow. The comprehensive list.

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow orlayout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft,elem.offsetTop,elem.offsetWidth,elem.offsetHeight,elem.offsetParent
@BlueSkyXN
BlueSkyXN /BaiduPan-Checkin.py
CreatedAugust 8, 2024 02:13
BaiduPan-Checkin.py
importrequests
importtime
importre
importos
# 从环境变量中获取 Cookie
COOKIES=os.environ.get('BAIDU_COOKIE','')
HEADERS= {
'Connection':'keep-alive',
@qoomon
qoomon /conventional-commits-cheatsheet.md
Last activeDecember 18, 2025 10:25
Conventional Commits Cheatsheet

See howa minor change to your commit message style can make a difference.

git commit -m"<type>(<optional scope>):<description>" \  -m"<optional body>" \  -m"<optional footer>"
port:7890
socks-port:7891
redir-port:7892
allow-lan:true
mode:Rule
log-level:info
external-controller:0.0.0.0:9090
secret:"xxxxxx"
dns:
enable:true
@yamamaya
yamamaya /SortingNetwork.c
Last activeDecember 18, 2025 10:18
Sorting network for 9 elements
#defineSWAP(a,b) if (arr[a] > arr[b]) { uint8_t tmp = arr[a]; arr[a] = arr[b]; arr[b] = tmp; }
// Sorting network for 9 elements (25 steps)
voidSortingNetwork9(uint8_t*arr) {
SWAP(0,1);
SWAP(3,4);
SWAP(6,7);
SWAP(1,2);
SWAP(4,5);
SWAP(7,8);
@rvrsh3ll
rvrsh3ll /windows-keys.md
CreatedFebruary 18, 2024 22:44
Windows Product Keys

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@Mark-Marks
Mark-Marks /loader.luau
CreatedDecember 18, 2025 09:56
Roblox module loader with topological sorting via dependency resolution
typeArray<T>= {T }
typeMap<K,V>= { [K]:V }
typeGraph<T>=Map<T,Array<T>>
-- Based on Kahn's algorithm
localfunctiontoposort<T>(graph:Graph<T>):Array<T>
localin_degree:Map<T,number>= {}
fornode,neighborsingraphdo
in_degree[node]=0
for_,neighborinneighborsdo
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp