Skip to content

Instantly share code, notes, and snippets.

View love4taylor's full-sized avatar
😅

love4taylor love4taylor

😅
View GitHub Profile
@love4taylor
love4taylor / fix_exfat_drive.md
Last active June 6, 2022 12:37 — forked from ChenxiSSS/fix_exfat_drive.md
Fix corrupted exFAT disk macOS/OSX

exFAT support on macOS seems to have some bugs since exFAT drives may or maynot randomly get corrupted.

In my case, "not ejected properly" often casue the drive in Resource busy, Volume on xxx failed to mount, File system check exit code is 1, or Timed out waiting, when try to use both Disk Utility or diskutil to mount, repair, or first aid the disk.

Possible fix is this:

  1. Use diskutil list to find the right drive id.
    • You want the id under the IDENTIFIER column, it should look like disk1s1.
    • disk1 marks the entire Disk. disk1s1 or disk1s2 marks each Volume.
  2. Usually, you want to check if the disk is occupied by one or many process.
#!/bin/bash
#
# lvmcache-statistics.sh displays the LVM cache statistics
# in a user friendly manner
#
# Copyright (C) 2014 Armin Hammer
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
DOMAIN,bahamut.akamaized.net
DOMAIN,gamer-cds.cdn.hinet.net
DOMAIN,gamer2-cds.cdn.hinet.net
DOMAIN-SUFFIX,bahamut.com.tw
DOMAIN-SUFFIX,gamer.com.tw
USER-AGENT,Anime*
var body = $response.body;
var obj = JSON.parse(body);
var play_url = JSON.stringify(obj.data.dash);
play_url = play_url.replace(/https:\/\/([^\/:]+):\d*/g,"https://upos-sz-mirrorcos.bilivideo.com");
obj.data.dash = JSON.parse(play_url)
body = JSON.stringify(obj);
$done(body);
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
ipv6: false
experimental:
sniff-tls-sni: true
profile:
PROCESS-NAME,v2ray
PROCESS-NAME,xray
PROCESS-NAME,ss-local
PROCESS-NAME,clash
PROCESS-NAME,ClashX
PROCESS-NAME,trojan
PROCESS-NAME,trojan-go
PROCESS-NAME,privoxy
PROCESS-NAME,cloudflared
PROCESS-NAME,aria2c
let app = JSON.parse($request.body);
app.storefrontId = '143441-19,29';
$done({body:JSON.stringify(app)});
@love4taylor
love4taylor / README.md
Last active September 11, 2023 12:46
EOL

SukkaW/Surge DOMAIN-SET to Clash Domain behavior

  1. Please replace http://127.0.0.1:25500/ with a valid subconverter address
  2. Please replace gist.githubusercontent.com with a connectable gist reverse proxy yourself

yaml

rule-providers:
  sogouinput:
IP-CIDR6,2001:250::/35
IP-CIDR6,2001:250:2000::/35
IP-CIDR6,2001:250:4000::/34
IP-CIDR6,2001:250:8000::/33
IP-CIDR6,2001:251::/32
IP-CIDR6,2001:252::/32
IP-CIDR6,2001:253::/32
IP-CIDR6,2001:254::/32
IP-CIDR6,2001:255::/32
IP-CIDR6,2001:256::/32
# sshd_config defaults on Arch Linux
KbdInteractiveAuthentication no
UsePAM yes
PrintMotd no