Skip to content

Instantly share code, notes, and snippets.

// sudo unattended-upgrade -d --dry-run
// apt-cache policy
Unattended-Upgrade::Origins-Pattern {
"origin=Tailscale,codename=${distro_codename},label=Tailscale";
};
Unattended-Upgrade::Automatic-Reboot "true";
Unattended-Upgrade::Automatic-Reboot-Time "02:00";
Dpkg::Options {
"--force-confdef"; # デフォルトの処理を自動選択
pm uninstall --user 0 com.nttdocomo.android.dhome
pm uninstall --user 0 com.nttdocomo.android.applicationmanager
pm uninstall --user 0 com.nttdocomo.android.bugreport
pm uninstall --user 0 com.nttdocomo.android.devicehelp
pm uninstall --user 0 com.nttdocomo.android.databackup
pm uninstall --user 0 jp.dmapnavi.navi02
pm uninstall --user 0 jp.co.nttdocomo.dbook
pm uninstall --user 0 com.ipg.gguide.dcm_app.android
@s0racat
s0racat / kali.md
Last active December 4, 2025 13:24

enable autologin in lightdm

/etc/lightdm/lightdm.conf

[Seat:*]
autologin-user=kali

automount

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Unattended&UILanguage=ja-JP&Locale=ja-JP&Keyboard=00000411&GeoLocation=122&ProcessorArchitecture=amd64&BypassNetworkCheck=true&KeepSensitiveFiles=true&ComputerNameMode=Custom&ComputerName=sub-laptop&CompactOsMode=Default&TimeZoneMode=Implicit&PartitionMode=Interactive&DiskAssertionMode=Skip&WindowsEditionMode=Firmware&InstallFromMode=Automatic&PEMode=Default&UserAccountMode=Unattended&AccountName0=takumi&AccountDisplayName0=&AccountPassword0=&AccountGroup0=Administrators&AutoLogonMode=Own&PasswordExpirationMode=Unlimited&LockoutMode=Default&HideFiles=HiddenSystem&ShowFileExtensions=true&ClassicContextMenu=true&LaunchToThisPC=true&ShowEndTask=true&TaskbarSearch=Icon&TaskbarIconsMode=Empty&DisableWidgets=true&DisableBingResults=true&StartTilesMode=Empty&StartPinsMode=Empty&DisableSac=true&D
/* ==UserStyle==
@name YouTube: Hide Shorts, Navigation, Sidebar, and Home
@namespace https://gist.github.com/s0racat/e94ef1628957676403e20cf421805c73
@version 1.1.1
@description Hide Shorts section, navigation, sidebar, and homepage feed on YouTube
==/UserStyle== */
@-moz-document domain("youtube.com") {
/* Hide shorts from search page */
grid-shelf-view-model {
// ==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
// ==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
{
"Non-ASCII Characters Check": {
"regex": "[^\\x00-\\x7F]",
"enabled": "true"
},
"Force HTTPS": {
"regex": "^http:\/\/(?![^\/]*\\.(onion|i2p|bit|ano|loki)(\/|$))",
"replacement": "https:\/\/",
"enabled": "true"
},
@s0racat
s0racat / 52unattended-upgrades-local
Last active January 22, 2026 14:43
Ubuntu setup
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";
{
"settingsVersion": "2.2.1",
"exclusionRules": [
{
"passKeys": "",
"pattern": "https?://mail.google.com/*"
},
{
"passKeys": "",
"pattern": "https?://remotedesktop.google.com/*"