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 / gist:e3e0d5808ee24064d63f8e44f2dc14f3
Created December 17, 2018 10:45 — forked from ryanpitts/gist:1304725
GROUP BY and Select MAX from each group in Django, 2 queries
'''
given a Model with:
category = models.CharField(max_length=32, choices=CATEGORY_CHOICES)
pubdate = models.DateTimeField(default=datetime.now)
<other fields>
Fetch the item from each category with the latest pubdate.
'''
@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 / 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": "",