Skip to content

Instantly share code, notes, and snippets.

Verify Connection

ping -c4 archlinux.org

Disk Partitioning

cgdisk /dev/nvme0n1
@s0racat
s0racat / user.js
Last active December 12, 2023 13:45
フォント指定を無視するfirefoxのuser.js
user_pref("dom.security.https_only_mode", true);
user_pref("browser.display.use_document_fonts", 0);
user_pref("font.minimum-size.ja", 20);
user_pref("font.name-list.sans-serif.ja", "BIZ UDGothic, Meiryo, Yu Gothic, MS PGothic, MS Gothic, Yu Mincho, MS PMincho, MS Mincho");
user_pref("font.name-list.monospace.ja", "Consolas, BIZ UDGothic, MS Gothic, MS Mincho, Meiryo, Yu Gothic, Yu Mincho, MS PGothic, MS PMincho");
@s0racat
s0racat / settings.json
Last active September 23, 2024 06:55
Windows Terminal config
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command": "unbound",
"keys": "ctrl+v"
},
{
########### boot iso in vm ###########
echo exfat >> /etc/initramfs-tools/modules
cd /usr/share/initramfs-tools
grep iso-scan . -r
less scripts/casper-premount/20iso_scan
grep find_path . -r
vi scripts/casper-helpers
# Add a condition for `exfat` in the case statement of the is_supported_fs function.
@s0racat
s0racat / keymap.txt
Last active April 17, 2025 07:24
Google IMEを^SpaceでIME ON/OFF
status key command
Composition Backspace Backspace
Conversion Backspace Cancel
Precomposition Backspace Revert
Composition Ctrl a MoveCursorToBeginning
Conversion Ctrl a SegmentFocusFirst
Composition Ctrl Backspace Backspace
Conversion Ctrl Backspace Cancel
Precomposition Ctrl Backspace Undo
Composition Ctrl d MoveCursorRight
{
"settingsVersion": "2.2.1",
"exclusionRules": [
{
"passKeys": "",
"pattern": "https?://mail.google.com/*"
},
{
"passKeys": "",
"pattern": "https?://remotedesktop.google.com/*"
Unattended-Upgrade::Allowed-Origins {
*:*;
};
Unattended-Upgrade::Automatic-Reboot "true";
Unattended-Upgrade::Automatic-Reboot-Time "02:00";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Dpkg::Options {
"--force-confdef";
{
"Non-ASCII Characters Check": {
"regex": "[^\\x00-\\x7F]",
"enabled": "true"
},
"Force HTTPS": {
"regex": "^http:\/\/(?![^\/]*\\.(onion|i2p|bit|ano|loki)(\/|$))",
"replacement": "https:\/\/",
"enabled": "true"
},
// ==UserScript==
// @name YouTube Shorts Remover
// @namespace https://gist.github.com/s0racat/1415a0a75fe8a2520b71dc1a71df9a5a
// @version 1.0
// @description 自動でYouTubeのShorts動画やセクションを非表示にします(スクロールしても復活しません)
// @author s0racat
// @updateURL https://gist.githubusercontent.com/s0racat/1415a0a75fe8a2520b71dc1a71df9a5a/raw/youtube-shorts-remover.user.js
// @match https://www.youtube.com/*
// @grant none
// @run-at document-idle
// ==UserScript==
// @name YouTube Custom CSS Hide Shorts and Navigation
// @namespace https://gist.github.com/s0racat/a94c89fb8e42492da429cff61336754d
// @version 1.3
// @description Hide YouTube shorts container overflow, navigation container elements, and remove grid-shelf-view-model tags dynamically
// @author s0racat
// @updateURL https://gist.githubusercontent.com/s0racat/a94c89fb8e42492da429cff61336754d/raw/remove-shorts-dependency.user.js
// @downloadURL https://gist.githubusercontent.com/s0racat/a94c89fb8e42492da429cff61336754d/raw/remove-shorts-dependency.user.js
// @match https://www.youtube.com/*
// @grant none