Skip to content

Instantly share code, notes, and snippets.

@jiz4oh
jiz4oh / giffgaff.json
Last active April 12, 2024 15:14
get giffgaff esim code
{
"info": {
"_postman_id": "b452c872-707a-42fb-9e1b-c8520c4e0a19",
"name": "Giffgaff",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "2203562"
},
"item": [
{
"name": "發送認證郵件 Send Email Verification",
@jiz4oh
jiz4oh / google-vpn.txt
Last active December 19, 2023 15:18
some clash rules
# https://outti.me/use_google_one_vpn
# https://www.techkoala.net/google_one_vpn/
payload:
- '136.22.64.0/24'
- '136.22.65.0/24'
- '136.22.67.0/24'
- '136.22.76.0/24'
- '136.22.83.0/24'
- '136.22.85.0/24'
- '136.22.86.0/24'
@jiz4oh
jiz4oh / ipv6.sh
Created June 6, 2023 14:00
enable ipv6 in debian
#!/bin/bash
sudo mv /etc/network/interfaces /etc/network/interfaces.save
sudo sh -c "echo '[Match]
Name=enp0s3
[Network]
DHCP=yes' >> /etc/systemd/network/z.network"
@jiz4oh
jiz4oh / .projections.json
Created January 16, 2023 12:10
A .projections.json for hexo project. Mostly used by [vim-projectionist](https://github.com/tpope/vim-projectionist)
{
"scaffolds/*.md": {
"type": "scaffold"
},
"source/_posts/*.md": {
"type": "post"
},
"source/_drafts/*.md": {
"type": "draft"
},
@jiz4oh
jiz4oh / TerminalVim.scpt
Last active February 6, 2022 05:29
how to open file in vim through Finder
on run {input, parameters}
-- If run without input, open random file at $HOME
try
set filename to POSIX path of input
on error
set filename to "vim-" & (do shell script "date +%F") & "__" & (random number from 1000 to 9999) & ".txt"
end try
-- Set your editor here
set myEditor to "${EDITOR:-vim}"
-- Open the file and auto exit after done
@jiz4oh
jiz4oh / sys.sh
Last active February 5, 2021 08:35
usefull shell scripts
function info() { echo -e "\033[32m[info] $*\033[0m"; }
function warn() { echo -e "\033[33m[warn] $*\033[0m"; }
function error() {
echo -e "\033[31m[error] $*\033[0m"
exit 1
}
check_sys() {
OS=$(uname -s)
if [ "${OS}" == "Darwin" ]; then
@jiz4oh
jiz4oh / trojan.json
Last active March 20, 2023 02:12
梯子软件服务端配置参考
{
"run_type": "server",
"local_addr": "0.0.0.0",
"local_port": 443,
"remote_addr": "127.0.0.1",
"remote_port": 80,
"password": [
"密码"
],
"ssl": {
@jiz4oh
jiz4oh / default.custom.yaml
Last active March 3, 2023 13:51
Rime-配置
# 基础引擎框架配置,patch 会更新 default.yaml 文件
patch:
schema_list:
- schema: double_pinyin_flypy
- schema: luna_pinyin_simp
switcher/hotkeys:
# 切换选项菜单的快捷键
- "Alt+Shift+grave"
- "Control+grave"