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 / 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 / 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 / block_gc.txt
Last active October 21, 2024 17:13
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 / 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 / 少女们向荒野进发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 / settings.json
Created January 26, 2025 12:24
Prettier on vscode on IDX
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.configPath": ".prettierrc",
"prettier.documentSelectors": [
"**/*.json",
"**/*.jsonc",
@MewX
MewX / find_all_window_handles.ps1
Created May 25, 2025 13:15
Scripts to disable the super super annoying error: "GOG Galaxy - Error" Connection to Communication Service was lost and could not be restored! GOG Galaxy will now shutdown.
Get-Process | Where-Object {$_.MainWindowTitle -ne ""} | Select-Object MainWindowTitle, Id, MainWindowHandle
pause