Skip to content

Instantly share code, notes, and snippets.

View benzBrake's full-sized avatar
🏪
忙着赚钱

Ryan Lieu benzBrake

🏪
忙着赚钱
View GitHub Profile
@benzBrake
benzBrake / clash.ini
Last active September 24, 2023 11:33
[custom]
;不要随意改变关键字,否则会导致出错
;acl4SSR规则
;自动测速:支持
;微软分流:支持
;苹果分流:支持
;增强中国IP段:支持
;增强国外GFW:支持
@benzBrake
benzBrake / nginx-hostloc.com.conf
Last active June 21, 2023 11:41
NGINX 反代 HOSTLOC 可登录可回复
server {
listen 80;
listen [::]:80;
server_name hostloc.eu.org;
#SSL Configuration
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /ssl/hostloc.eu.org.crt;
ssl_certificate_key /ssl/hostloc.eu.org.key;
ssl_session_timeout 5m;
@benzBrake
benzBrake / jhssd_yuedu.json
Created October 22, 2022 15:18
精华小说阁 WAP 版阅读书源
{
"bookSourceComment": "",
"bookSourceGroup": "",
"bookSourceName": "精华书阁手机版",
"bookSourceType": 0,
"bookSourceUrl": "https://wap.jhssd.com/",
"customOrder": -2085958774,
"enabled": true,
"enabledCookieJar": false,
"enabledExplore": false,
// ==UserScript==
// @name DownloadPlus_ff98.uc.js
// @description 修改整合自(w13998686967、ywzhaiqi、黒仪大螃蟹、Alice0775、紫云飞)
// @author Ryan
// @include main
// @include chrome://browser/content/places/places.xhtml
// @include chrome://browser/content/places/places.xul
// @include chrome://mozapps/content/downloads/unknownContentType.xhtml
// @include chrome://mozapps/content/downloads/unknownContentType.xul
// @version 0.0.1
@benzBrake
benzBrake / bitwarden_firefox.reg
Last active April 7, 2022 03:37
Enable Firefox native message between For Bitwarden
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Mozilla\NativeMessagingHosts\com.8bit.bitwarden]
@="C:\\Users\\{Your User Name}\\AppData\\Roaming\\Bitwarden\\browsers\\firefox.json"
@benzBrake
benzBrake / fakecpu.reg
Created January 8, 2022 00:55
Fake CPU Name on WIndows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0]
"Component Information"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"Identifier"="Intel64 Family 6 Model 94 Stepping 8"
"Configuration Data"=hex(9):ff,ff,ff,ff,ff,ff,ff,ff,00,00,00,00,00,00,00,00
"ProcessorNameString"="Intel(R) Core(TM)i5-2430M @ 2.40GHz"
"VendorIdentifier"="Intel"
"FeatureSet"=dword:351b3fff
"~MHz"=dword:00000960
@benzBrake
benzBrake / renderHTML.html
Created December 28, 2021 07:12
render html text quickly
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML文本快捷渲染</title>
</head>
@benzBrake
benzBrake / README.md
Last active June 22, 2021 12:30 — forked from djfdyuruiry/README.md
WSL 2 - Enabling systemd

Enable systemd in WSL 2

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

    cd /tmp
@benzBrake
benzBrake / upload_transmission.sh
Created February 24, 2021 02:07
transmission 下载完成自动上传
#!/bin/bash
# transmission远程 登陆用户名
USERNAME=""
# transmission 远程 登陆密码
PASSWORD=""
# transmission download 目录
DLDIR="/data/Transmission/bt/downloads"
# rcone 上传目录
@benzBrake
benzBrake / set_computer_name.cmd
Created January 18, 2021 00:16
设置计算机名
@echo off
set /p name=请输您的计算机名:
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ActiveComputerName" /v ComputerName /t reg_sz /d %name% /f
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t reg_sz /d %name% /f
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v Hostname /t reg_sz /d %name% /f