This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"request": [ | |
{ | |
"enable": true, | |
"name": "知乎-外链重定向", | |
"ruleType": "redirect", | |
"matchType": "regexp", | |
"pattern": "^https?:\\/\\/link\\.zhihu\\.com\\/\\?target=(.*)", | |
"exclude": "", | |
"group": "外链重定向", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 打开选中文件夹或者当前文件夹的,最后一个不是单文件夹的路径。 | |
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 = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
阿里巴巴开屏 | |
/data/user/0/com.alibaba.wireless/files/SPLASH_IMAGE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 微信 | |
! 公众号文章 | |
||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"/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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", "下页", "下頁", "下一页", "下一頁", "后一页", "后一頁", "翻下页", "翻下頁", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
NewerOlder