Skip to content

Instantly share code, notes, and snippets.

@chenyue404
chenyue404 / TransLocalMaven.kt
Last active November 13, 2023 09:46
gradle缓存转成本地maven库
import java.io.File
import java.io.FileFilter
import java.nio.file.Files
import java.nio.file.StandardCopyOption
fun main() {
print("输入工作目录:")
val input = readlnOrNull()
val workFile = File(input ?: "").absoluteFile
if (!workFile.isDirectory) {
{
"request": [
{
"enable": true,
"name": "知乎-外链重定向",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/link\\.zhihu\\.com\\/\\?target=(.*)",
"exclude": "",
"group": "外链重定向",
@chenyue404
chenyue404 / qttabbar脚本0
Last active June 1, 2022 01:45
qttabbar脚本
// 打开选中文件夹或者当前文件夹的,最后一个不是单文件夹的路径。
var qs = new ActiveXObject("QTTabBarLib.Scripting");
var fso = new ActiveXObject("Scripting.FileSystemObject");
var wnd = qs.activewindow;
if (wnd) {
var activeTab = wnd.ActiveTab;
var selectedItems = wnd.SelectedItems
var currentPath = activeTab.Path;
var selectedFolderPath = ""
Capslock::PgDn
^Capslock::Send {PgUp}
^F12::SendMessage, 0x112, 0xF170, 2,, Program Manager
F13::Run nircmd.exe muteappvolume chrome.exe 2
>^>!F14::WheelUp
>^>!F15::WheelDown
>^F10::AppsKey
#If WinActive("ahk_class CabinetWClass") ; explorer
阿里巴巴开屏
/data/user/0/com.alibaba.wireless/files/SPLASH_IMAGE
"""
VectorDrawable2Svg
This script convert your VectorDrawable to a Svg
Author: Alessandro Lucchet
Usage: drop one or more vector drawable onto this script to convert them to svg format
"""
from xml.dom.minidom import *
import sys
@chenyue404
chenyue404 / adguard rules
Last active November 11, 2022 14:00
adguard rules
! 微信
! 公众号文章
||mp.weixin.qq.com/mp/getappmsgad^
! 知乎
||api.zhihu.com/appview/api/*/recommendations^
||api.zhihu.com/fringe/ad$app=com.zhihu.android
||api.zhihu.com/*/questions^$replace=/"ad_info"/"ad_indo"/
||api.zhihu.com/moments^$replace=/"ad_list"/"ad_"/
||api.zhihu.com/moments^$replace=/"adjson"/"adjson2"/
// ==UserScript==
// @name 翻页相关按钮
// @author chenyue
// @description 修改自https://meta.appinn.net/t/topic/8699
// @version 1.0
// @include *
// @grant none
// ==/UserScript==
var next_page_text = ["next", "next page", "older", "earlier", "下页", "下頁", "下一页", "下一頁", "后一页", "后一頁", "翻下页", "翻下頁",
@chenyue404
chenyue404 / tempProxy
Last active January 28, 2020 08:09
临时代理
apt-get -o Acquire::http::proxy="http://127.0.0.1:1083/" upgrade
wget -e "https_proxy=127.0.0.1:1083" https://xxx.com
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
@chenyue404
chenyue404 / notification log
Created July 13, 2018 11:02
notification log
Intent intent = new Intent();
intent.setAction("android.intent.action.MAIN");
intent.addCategory("android.intent.category.DEFAULT");
intent.setComponent(new ComponentName("com.android.settings", "com.android.settings.Settings$NotificationStationActivity"));
startActivity(intent);