Skip to content

Instantly share code, notes, and snippets.

View MewX's full-sized avatar
🙀
Backing to the office!

MewX MewX

🙀
Backing to the office!
View GitHub Profile
@MewX
MewX / 少女们向荒野进发ova.ass
Created June 25, 2024 13:39
少女们向荒野进发OVA字幕文件
[Script Info]
; Script generated by Aegisub 3.2.2
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: TV.601
PlayResX: 1920
PlayResY: 1080
@MewX
MewX / client.json
Last active January 14, 2024 00:44 — forked from Eminlin/client.json
v2ray服务器配置笔记
{
"policy": {
"system": {
"statsInboundUplink": true,
"statsInboundDownlink": true
}
},
"log": {
"access": "",
"error": "",
@MewX
MewX / block_gc.txt
Last active April 11, 2023 11:09
Block Adobe Hosts C:\drivers\etc\hosts
For anyone who might read this in the future, I've found the best solution to this problem. For some reason I didn't need to go through all these steps on my surface pro adobe programs, but my desktop gave me issues. So if you're still having issues after doing the following, read on.
If you just end the process in Task Manager, the pop-up comes back up eventually.
If you just delete the files in "C:\Program Files (x86)\Common Files\Adobe\AdobeGCClient" or the folder itself, they may just recreate themselves every day or two.
If you delete/disable the Adobe services or schedules in Task Scheduler, those may just come back too.
To solve these issues, I decided to make a .bat file that deletes every file in that AdobeGCClient folder (exact location may depend on your Adobe install folder) and schedule it to do this every time I log on/turn on my pc. So far that has worked for the past few days.
@MewX
MewX / gazelle-free.user.js
Created May 16, 2022 12:13
Gazelle Freeleech Browser
// ==UserScript==
// @name Gazelle Freeleech Browser
// @author mewx, the_dunce
// @namespace http://tampermonkey.net/
// @description Inserts a freeleech link in main menu for Gazelle trackers. Torrents are grouped by default.
// @include http*://*orpheus.network/*
// @include http*://*redacted.ch/*
// @include http*://*dicmusic.club/*
// @include http*://*greatposterwall.com/*
// @include http*://*gazellegames.net/*
@MewX
MewX / split.sh
Created April 5, 2022 13:11
Split files in one directory into two directories randomly.
from_dir="."
save_dirs=("dir1" "dir2")
ls "$from_dir" |sort -R |tail -$N |while read file; do
echo mv "\"$from_dir/$file\"" "${save_dirs[RANDOM%${#save_dirs[@]}]}"
done
@MewX
MewX / main.tf
Last active February 19, 2022 11:18
Get oracle free arm64 instance in high demand area
# Not required after running "$ oci session authenticate".
provider "oci" {
region = "<your region>"
config_file_profile = "<your profile>
}
resource "oci_core_instance" "generated_oci_core_instance" {
agent_config {
is_management_disabled = "false"
is_monitoring_disabled = "false"
@MewX
MewX / hdbits.js
Last active April 18, 2022 13:07
HDBits Freeleech highlights and downloads
// ==UserScript==
// @name HDBits Showing Free Leech Info
// @namespace http://tampermonkey.net/
// @version 0.12
// @description Let HDB torrent list show freeleech information (and auto download).
// @author MewX
// @match https://hdbits.org/browse.php*
// @icon https://hdbits.org/pic/favicon/favicon.ico
// @require https://code.jquery.com/jquery-3.4.1.min.js
// @grant GM_download
@MewX
MewX / pt.highlight.user.js
Last active April 19, 2022 02:42 — forked from LostInsight/NexusPHP Hightlight.user.js
A script for highlighting free and 2xfree items in PT sites for MewX's own use.
// ==UserScript==
// @name MewX Row Free Highlight
// @version 0.7
// @description A script for highlighting free and 2xfree items in PT sites.
// @author MewX, LostMelody
// @note 大量站点未测,特别是CHD,影客,U2,HDChina
// @note 网址和入口参考PT-Plugin-Plus内置地址
// @note 部分识别接口参考Juszoe的flexget-nexusphp但具体未测
// @require https://code.jquery.com/jquery-3.4.1.min.js
// @match *://*.52pt.site/*
@MewX
MewX / jump_car.py
Created October 12, 2021 02:21
deluge jump car
import deluge_client
import time
import logging
import traceback
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
logging.basicConfig(level=logging.INFO, format=LOG_FORMAT)
client = deluge_client.DelugeRPCClient("10.0.0.1", 53274, "xxxxxxx", "xxxxxxxxxx")
client.connect()
logging.info("is connected: {}".format(client.connected))
@MewX
MewX / oursteps.user.js
Last active May 16, 2022 05:05
Disquz auto enter full mode
// ==UserScript==
// @name Disquz auto full mode
// @namespace http://mewx.org/
// @version 0.1
// @description Automatically load the full text version.
// @author MewX
// @match https://www.oursteps.com.au/bbs/archiver/*
// @match http://www.oursteps.com.au/bbs/archiver/*
// @match https://oursteps.co/bbs/archiver/*
// @match http://oursteps.co/bbs/archiver/*