Skip to content

Instantly share code, notes, and snippets.

View enihsyou's full-sized avatar

九条涼果 enihsyou

View GitHub Profile
@enihsyou
enihsyou / 获取移动光猫H2-2管理员密码.md
Last active March 15, 2024 08:58
获取移动光猫 H2-2 管理员密码 ver.2022-04

长话短说,直接列出操作方法。求解过程用到的阅读链接放在最后

适用型号

设备名称:吉比特无源光纤接入用户端设备(GPON ONU)
设备类型:中国移动智能家庭网关 类型二
设备型号:H2-2
生产日期:2021/03

开启telnet并登陆

@enihsyou
enihsyou / split_tunneling.sh
Created December 20, 2019 08:04
Network tweaking script to make Internet access available while connection to Danone Pulse Secure VPN (Split tunneling).
#! /usr/bin/env bash
# Author: Ryoka Kujo s1131234@gmail.com
# Descripthon: Network tweaking script to make Internet access available
# while connection to Pulse Secure VPN.
# network interface list can be retrieved by `networksetup -listallhardwareports`
# specify your network interface for internet access.
PUBLIC_INTERFACE=en7
# specify your network interface for VPN tunnel access.
TUNNEL_INTERFACE=utun2
@enihsyou
enihsyou / 黑雾回收站(高纬度高流量有电网).txt
Created January 12, 2024 16:31
戴森球计划 黑雾回收站(高纬度高流量有电网版)视频说明书 https://www.bilibili.com/video/BV1ZK4y1B79x 相比原版添加了中间的电线杆
BLUEPRINT:0,50,5206,5204,5202,5203,5205,0,638407006633706293,0.10.28.21308,%E9%BB%91%E9%9B%BE%E5%9B%9E%E6%94%B6%E7%AB%99%EF%BC%88%E9%AB%98%E7%BA%AC%E5%BA%A6%E9%AB%98%E6%B5%81%E9%87%8F%E6%9C%89%E7%94%B5%E7%BD%91%EF%BC%89,%E8%A7%86%E9%A2%91%E8%AF%B4%E6%98%8E%E4%B9%A6%20https%3A%2F%2Fwww.bilibili.com%2Fvideo%2FBV1ZK4y1B79x%0Amodified%20by%20%40enihsyou%20%E7%9B%B8%E6%AF%94%E5%8E%9F%E7%89%88%E6%B7%BB%E5%8A%A0%E4%BA%86%E4%B8%AD%E9%97%B4%E7%9A%84%E7%94%B5%E7%BA%BF%E6%9D%86"H4sIAAAAAAAAC+y9B5QVxRM3OpvYJciiIFlBDICgSJCFBdmZuRhQERXEDBjBiFkUFVBJJsDwBxQFI4oi6JJBQSUp5oQKAqKCgYyS2fvVb7rqTrlb8r7jeee9o+w9p4efHopO1dVV1dXVaZ7n1aKS7blfSyq5jNO8pOf14f+d643K4f+/LTkywJ97ksN8jT/xpoQoX2Qf6R2S5nlJ+qXhn0n9e/Qr49UNVyYLgp5eH19jz2uRQGmTc3MaCMdl0F8+wBFemtnfS+d/4Lhb1b9Y+ttvfph/ryjZKMUwGhdnng/Bzsw8fbNKmWd//0GWkIgaGeR4lYI8YhiNizPPDZBzzDxXZZYyz/7+y8QHDCPSRuPizHMx/jYzz+WZpcyzv/+y8CnrTQ72EsNA2mhcnHnqqG3rrCqlzLO//8rgA4bBVrU0ebuvcXHmuQl/m5lnW0Yp8+zvv2z3aRyKnqNxceapqZhnVmYp8+zvv8jU35vMSzGMxsWZ50lwCDPPjlLJs9//yuKTTM4Nnth8Uqsq3jxf42xvSpjNTqKHM0o6icrh
@enihsyou
enihsyou / DefaultKeyBinding.Dict
Created July 22, 2020 06:20
My DefaultKeyBinding.dict for macOS
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@enihsyou
enihsyou / README.md
Created May 3, 2022 07:53
my kitty symbol_map section for Nerd Font patch and CJK characters.

What's this

symbol_map section from my kitty.conf dotfile, it follows Kitty best practice to NOT use patched font in favor of multiple symbol_map directives.

I use [Sarasa Mono][sarasa_mono] for CJK unicode ranges and [Menlo] for misc codepoints which Nerd Font doesn't cover.

Copy and paste (maybe follow by some modifacations) into your kitty.conf, and your terminal will be beautiful.

@enihsyou
enihsyou / README.md
Last active July 13, 2023 07:31
Make kitty terminal emulator aware macOS system appearance change (aka Dark Mode).

What's this

Make kitty terminal emulator aware macOS system appearance change. But not perfect, since this script is not "listening" change event, but rather be triggered by new shell creation.

How to use

  1. pick two theme conf, one for light (basic-light.conf here) and one for dark (basic-dark.conf)
  2. create two file inside KITTY_CONFIG_DIRECTORY(~/.config/kitty here), macos-launch-services-cmdline-dark.conf and macos-launch-services-cmdline-light.conf
  3. tweak macos-launch-services-cmdline-*.conf, add kitty.conf and theme.conf, note that args should use full path.
@enihsyou
enihsyou / custom-ui.css
Last active October 18, 2022 05:45
VSCode custom CSS imports content
/* vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css */
/* 从放置在底部的终端面板中移除顶部的空白
在窗口多余空间不满一行的时候 这个空白尤为明显
会让顶部文本和边框之间产生一段空隙 */
.monaco-workbench .editor-instance .xterm,
.monaco-workbench .pane-body.integrated-terminal .xterm {
bottom: unset;
top: 0;
}
@enihsyou
enihsyou / basic-dark.conf
Created April 30, 2022 16:46
A Kitty theme: Basic profile on Terminal.app for macOS.
# vim:ft=kitty
## name: Basic Dark
## author: enihsyou
## license: MIT
## blurb: Basic (dark) profile on Terminal.app for macOS.
#: The basic colors
foreground #ffffff
@enihsyou
enihsyou / Merlin Enable IPv6 Passthrough.md
Created April 4, 2022 07:04
NetGear R8500 Merlin 380.70_0-X7.9.1 开启IPv6能力
@enihsyou
enihsyou / ligatures.py
Created November 19, 2021 15:29
Disable font ligatures on iTerm2 by monitoring on window size change
#!/usr/bin/env python3.7
# This script monitoring iTerm2 window state,
# disable font-ligatures when window size is big enough to drag FPS down,
# and (re-)enable ligatures when window size shrinks to acceptance range.
# Put this script under AutoLaunch folder to launch automatically when iTerm2 starts,
# as described at https://iterm2.com/python-api/tutorial/running.html#auto-run-scripts
import asyncio
import iterm2