Skip to content

Instantly share code, notes, and snippets.

View nyanshiba's full-sized avatar
🎃
in the kotatsu

nyanshiba

🎃
in the kotatsu
View GitHub Profile
@pandax381
pandax381 / ccr2116.config
Last active February 4, 2025 06:54
CCR2116 Config
[admin@MikroTik] > export
# 2025-02-04 04:35:47 by RouterOS 7.18beta2
# software id = ETY3-XJA9
#
# model = CCR2116-12G-4S+
# serial number = XXXXXXXXXXX
/interface bridge
add fast-forward=no frame-types=admit-only-vlan-tagged name=bridge1 protocol-mode=none vlan-filtering=yes
/interface ethernet
set [ find default-name=ether13 ] name=mng
@unchama
unchama / CROSS_CPU_VENDOR_LIVE_MIGRATION.md
Last active December 31, 2024 04:51
AMD/Intel CPU間での安全なライブマイグレーションの検証

AMD/Intel CPU間での安全なライブマイグレーションの検証

概要

  • ゲストOSのCPU modelをクラスタ内のホストCPUのラインナップに応じて適切に選定してやることよって特定のホストCPUにしかない命令セットをゲストVMから隠蔽すれば安全にマイグレーションできる説
  • なおデフォルトのkvm64でもある程度大丈夫っぽい記載があるが、ぼくの経験上うまくいった試しがあまりない
    • でもドキュメント上は Compatible with Intel CPU >= Pentium 4, AMD CPU >= Phenom とあるので、一番安全そうに見えるが。別原因でこけてただけなのかなあ。
  • だいたいダメな時はマイグレーション後数十分後にフリーズしてることがよくあるように思う。マイグレーション後のホストCPUにない命令セット触った時にオワるんだろうか

ABI compatibility levels for CPU models

! NEC Portable Internetwork Core Operating System Software
! IX Series IX3315 (magellan-sec) Software, Version 10.9.11, RELEASE SOFTWARE
! Compiled Dec 15-Fri-2023 13:25:17 JST #2
! Last updated May 20-Mon-2024 03:25:54 JST
!
service ssl-protocol tls1.2-and-later
!
hostname HomeLab
timezone +09 00
@thesamesam
thesamesam / xz-backdoor.md
Last active November 2, 2025 15:34
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@aamiaa
aamiaa / RevertNewLayout.md
Last active August 26, 2025 06:39
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
@Xeukxz
Xeukxz / RevertUI.md
Last active October 14, 2025 20:46
Revert Discord UI

Updated Version:

If you want to download an older version ive heard 205.15 works well, i reccomend ApkMirror

Using a modified app (Android & IOS friendly):

  1. Follow the instructions from https://github.com/vendetta-mod/Vendetta
  2. After the client is installed, navigate to Settings > Plugins, then click the +, and finally paste https://vd-plugins.github.io/proxy/maisymoe.github.io/strife/Experiments into the input and click Install
  3. Once the experiments plugin is enabled, reload the app then go to Settings > Experiments > Tabs V2 - redesign opt-out/in for all and select Control Bucket.

Ive also heard enmity works well for IOS.

THIS GIST IS NOW DEPRECATED NEW ONE IS AVAILABLE HERE I WONT BE UPDATING THIS ONE OR REPLYING TO COMMENTS ON THIS ONE (COMMENTS NOW DISABLED).

Enable Dual Stack (IPv4 and IPv6) OpenFabric Routing

this gist is part of this series

This assumes you are running Proxmox 8.2 and that the line source /etc/network/interfaces.d/* is at the end of the interfaces file (this is automatically added to both new and upgraded installations of Proxmox 8.2).

This changes the previous file design thanks to @NRGNet for the suggestions to move thunderbolt settings to a file in /etc/network/interfaces.d it makes the system much more reliable in general, more maintainable esp for folks using IPv4 on the private cluster network (i still recommend the use of the IPv6 FC00 network you will see in these docs)

@doraTeX
doraTeX / ocr.sh
Last active February 20, 2025 14:25
A shell script to perform OCR on images/PDFs using macOS built-in OCR engine -- https://doratex.hatenablog.jp/entry/20230629/1687977178
#!/bin/bash
SCRIPTNAME=$(basename "$0")
function realpath () {
f=$@;
if [ -d "$f" ]; then
base="";
dir="$f";
else
base="/$(basename "$f")";
@sheepla
sheepla / Install-OpenSSH.ps1
Last active September 4, 2023 12:39
Install OpenSSH server for Windows and configure to manage Windows computer remotely
<#
.DESCRIPTION
Install OpenSSH and configure to manage Windows computer remotely.
.LINK
https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview
#>
Write-Host "Installing OpenSSH..."
Get-WindowsCapability -Online | Where-Object {$_.Name -ILike "openssh*"} | ForEach-Object {
@voluntas
voluntas / learning-webrtc_2023-05.md
Last active February 2, 2025 07:02
時雨堂 WebRTC 入門 (講師資料) v2023-05

時雨堂 WebRTC 入門 (講師資料) v2023-05

これは時雨堂が開催しているオンラインイベントである WebRTC 入門の 講師用 の資料であり、 参加者用の資料ではありません。

時雨堂 WebRTC 入門 オンラインイベント

概要

ChatGPT がある今、学ぼうと思えば好きなだけ学べる時代がきています。