My VPP custom patch for home router use. Tested on VPP 26.02.
- RA: Allow setting RDNSS
- RA: Renew derived subnet (e.g.
/64) when its parent (e.g./56) is renewed
| #!/usr/sbin/nft -f | |
| # キー: SNAT後の送信元ポート + 宛先グローバルIP | |
| # 値: SNAT前の (送信元プライベートIP + 送信元ポート) | |
| map known-entries { | |
| type inet_service . ipv4_addr : ipv4_addr . inet_service | |
| flags dynamic, timeout | |
| timeout 10m | |
| } |
SF Pro JP については他記事を参照のこと
User-Agent と Referer なしで普通にダウンロードしようとしても拒否される東大構内で使える無線LAN(0000UTokyo と eduroam)はいずれも 802.1x (EAP-PEAP方式)の認証を要求する。当然 iwd もこれに対応している。
基本的にはArchWikiの記載どおりに設定すれば接続できるが、どの設定項目が最低限必要かは実際に接続してみないとわからない(ネットワークによって異なるため)。そこで何度か試行し、最小項目のみを抜き出したのが下のファイルである。
下のファイルの必要項目を埋め、0000UTokyo.8021x および eduroam.8021x として /var/lib/iwd/ 以下に配置し、iwdを再起動すれば接続できる(iwdの全体設定 /etc/iwd/main.conf が済んでおり、DNS / DHCP等の設定が適切に行われていることが前提)。
| import { visit } from "unist-util-visit"; | |
| import { isMdxJsxAttribute, isMdxJsxFlowElement } from "./hast-util-node-is"; | |
| import type { Root } from "hast"; | |
| import type { Plugin } from "unified"; | |
| interface RehypeAstroFigureOptions { | |
| /** | |
| * Class names to add to the figure element. |
| # do nothing if fzf is not installed | |
| (( ! $+commands[fzf] )) && return | |
| # Bind for fzf history search | |
| (( ! ${+ZSH_FZF_HISTORY_SEARCH_BIND} )) && | |
| typeset -g ZSH_FZF_HISTORY_SEARCH_BIND='^r' | |
| # Args for fzf | |
| (( ! ${+ZSH_FZF_HISTORY_SEARCH_FZF_ARGS} )) && | |
| typeset -g ZSH_FZF_HISTORY_SEARCH_FZF_ARGS='+s +m -x -e --preview-window=hidden' |
| #!/usr/bin/env bash | |
| # based on the script by @lbatalha | |
| # https://github.com/emersion/slurp/issues/104#issuecomment-1381110649 | |
| # requirements: sway, grim, slurp, swayimg, libvips, wl-clipboard | |
| # Freezes the focused screen, allows capturing an area, even with floating / hover windows (ex. IME window) | |
| # imagemagick and ffmpeg can also be used instead of libvips | |
| TMPIMG="$(mktemp --suffix ss.png)" | |
| IMGCLASS="sway-crop-screen" | |
| FOCUSED=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused)') |
I hereby claim:
To claim this, I am signing this object: