那些年,我玩过的黑科技
发布于2020-01-04 03:02:40,更新于2024-08-11 02:44:38,标签:life tips 文章会持续修订,转载请注明来源地址:https://meethigher.top/blog2.4G鼠标通用对码操作
我买的异能者G700属于比较小众的一个鼠标。因为他支持有线和2.4G,每次充电后,鼠标就连不上了,问客服,客服也实际解决不了问题。
经过一番摸索,原来是需要重新对码。
1.) 鼠标开机,长按左、中、右三个键,3-5秒后放开。这时候会有提示灯亮。
2.) 插入2.4G接收器。这时候就可以了。
QQ/微信防撤回
QQ端QNotified,同时支持保存原画质闪照!
电脑定时关机
指定时间后自动关机
1 | shutdown -s -t 3600 #1小时候自动关机 |
自动关机
1 | shutdown -s #弹出消息框自动关机,30s后 |
定点关机
1 | at 04:00 shutdown -s #凌晨四点自动关机 |
指定时间关机需要用schtasks,命令太麻烦了,不如直接打开计划任务来手动添加
网页视频去除logo
f12搜索、删除
腾讯视频
1 | txp-ui-watermark-mod |
爱奇艺
1 | iqp-logo-top logoShowAnimation |
优酷
1 | youku-layer-logo |
网页内容可编辑
console中输入
1 | document.body.contentEditable=true |
百度网盘
- 速盘(付费)
- 亿寻(免费)
虚拟定位
可以修改定位,甚至可以以指定的速度移动,很强大。
MIUI刷机包&&IOS刷机包
小米首先按住音量下键和电源键,直到出现fastboot。
然后连接电脑线刷即可。
2021年1月5日更新:这个不太良心了,开始收费了,又不是用自己的服务器存储,只是收集整理就要收钱,格局太小了,免费的建议看下面的。
QQ卡片消息
具体的使用教程,我在B站发了视频,链接
今天早上在某个群,看到一个红包,我就点了,点击去发现是一个购物群。然后我直接把群退了,然后把源代码给他复制了下来。
现在整理一下
以下部分内容,像图片链接、跟文字内容都是空的,自己自行往里面加入即可。
有点链接,不带cdn.vip.qq.com是打不开的,有兴趣自行研究吧。
以下代码放心使用,内部无推广链接、加群邀请等。
回执消息s
1 | <msg serviceID="107" templateID="1" action="viewReceiptMessage" brief="" m_resid="" m_fileName="6862690782327914927" sourceMsgId="0" url="" flag="3" adverSign="0" multiMsgFlag="0"><item layout="29" advertiser_id="0" aid="0"><type>1</type></item><source name="" icon="" action="" appid="-1" /></msg> |
王者荣耀点券
1 | {"app":"com.tencent.gamecenter.wzryRedpack","desc":"","view":"indexView","ver":"1.0.0.1","prompt":"[王者荣耀]点券","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"shareData":{"appid":"1104466820","bgUrl":"http://imgcache.gtimg.cn/ark_msg/202001101435_1dianquan.png?ts=1578638150326","buttons":[{"bgUrl":"http:\/\/imgcache.gtimg.cn\/ark_msg\/202001101436_anniu.png?ts=1578638168399","jumpUrl":"https:\/\/cdn.vip.qq.com\/club\/themes\/mobile\/middle_page\/index.html?url=https://meethigher.top/"}],"gamedata":"RedEnvelopeMsg_1_932630632774173750","jumpUrl":"https:\/\/cdn.vip.qq.com\/club\/themes\/mobile\/middle_page\/index.html?url=https://meethigher.top/"}},"config":{"config":{"type":"normal"},"ctime":1587447079,"token":"5050ace6eed03ce46e86314d846f3ed0"},"text":"","extraApps":[],"sourceAd":"","extra":""} |
王者荣耀皮肤碎片
1 | {"app":"com.tencent.gamecenter.wzryRedpack","desc":"","view":"indexView","ver":"1.0.0.1","prompt":"[王者荣耀]皮肤碎片","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"shareData":{"appid":"1104466820","bgUrl":"http://imgcache.gtimg.cn/ark_msg/202001101442_6pifusuipian.png?ts=1578638530997","buttons":[{"bgUrl":"http:\/\/imgcache.gtimg.cn\/ark_msg\/202001101442_anniu.png?ts=1578638541669","jumpUrl":"http:\/\/h5.vip.qq.com\/p\/cgireport\/cgi-bin\/handle?dc=10535&adId=81046&posId=85&classId=36&url="}],"gamedata":"RedEnvelopeMsg_1_17568364407905649653","jumpUrl":"app","scene":"MSG_WZZD_PFSP_ARK"}},"config":{"config":{"type":"normal"},"ctime":1582893526,"token":"a50cac990543523e54f06efcab1801f3"},"text":"","extraApps":[],"sourceAd":"","extra":""} |
匿名聊天加入
1 | {"app":"com.tencent.mobileqq.reading","desc":"","view":"singleImg","ver":"1.0.0.70","prompt":"匿名聊天 ","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"singleImg":{"mainImage":"http://shp.qpic.cn/collector/2891404183/fe660152-4179-4669-bd8f-690289d389c2/0","mainUrl":"mqqapi%3A%2F%2Fforward%2Furl%3Furl_prefix%3Dhttps://meethigher.top/"}},"text":"","sourceAd":""} |
周年福利,人人可领
1 | {"app":"com.tencent.qqVipGame_v2","desc":"","view":"template","ver":"1.0.0.8","prompt":"周年福利人人可领","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"template":{"DATA10":"","DATA11":"","DATA12":"","DATA13":"","DATA14":"http:\/\/h5.vip.qq.com\/p\/cgireport\/cgi-bin\/handle?dc=10535&adId=81046&posId=85&classId=36&url=https://meethigher.top","DATA15":"","DATA16":"","DATA7":"https:\/\/tianshu.gtimg.cn\/tianshu\/1597632725271.png","DATA8":"","DATA9":"","time":""}},"text":"","extraApps":[],"sourceAd":""} |
视频跳转卡片
1 | {"app":"com.tencent.gamecenter.gameshare","desc":"","view":"noDataView","ver":"0.0.0.1","prompt":"大话西游","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"shareData":{"height":360,"scene":"SCENE_SHARE_VIDEO","buttons":[{"url":"http:\/\/h5.vip.qq.com\/p\/cgireport\/cgi-bin\/handle?dc=10535&adId=81046&posId=85&classId=36&url=","text":"点就恶搞你"}],"jumpUrl":"https:\/\/game.gtimg.cn\/images\/cfm\/act\/a20190620act\/index.mp4","width":640,"type":"video","cover":"","appid":"1104466820cfm","url":"https://game.gtimg.cn/images/yxzj/cp/a20190125dhxy/header_reload.mp4"}},"text":"","sourceAd":"","config":{"forward":1,"showSender":1},"config":{"forward":1,"showSender":1}} |
每日风景
1 | {"app":"com.tencent.mobileqq.reading","desc":"","view":"singleImg","ver":"1.0.0.70","prompt":"随机风景照","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"singleImg":{"mainImage":"https:\/\/uploadbeta.com\/api\/pictures\/random\/?key=BingEverydayWallpaperPicture","mainUrl":"https://cdn.vip.qq.com/club/client/read/common/transfer.html?_wv=16778247&url=%68%74%74%70%3a%2f%2f%68%35%2e%76%69%70%2e%71%71%2e%63%6f%6d%2f%70%2f%63%67%69%72%65%70%6f%72%74%2f%63%67%69%2d%62%69%6e%2f%68%61%6e%64%6c%65%3f%64%63%3d%31%30%35%33%35%26%61%64%49%64%3d%38%31%30%34%36%26%70%6f%73%49%64%3d%38%35%26%63%6c%61%73%73%49%64%3d%33%36%26%75%72%6c%3d"}},"text":"这里无需填写","sourceAd":""} |
每日美女
1 | {"app":"com.tencent.mobileqq.reading","desc":"","view":"singleImg","ver":"1.0.0.70","prompt":"随机美女","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"singleImg":{"mainImage":"https:\/\/uploadbeta.com\/api\/pictures\/random\/?key=%E6%8E%A8%E5%A5%B3%E9%83%8E","mainUrl":"https://cdn.vip.qq.com/club/client/read/common/transfer.html?_wv=16778247&url=%68%74%74%70%3a%2f%2f%68%35%2e%76%69%70%2e%71%71%2e%63%6f%6d%2f%70%2f%63%67%69%72%65%70%6f%72%74%2f%63%67%69%2d%62%69%6e%2f%68%61%6e%64%6c%65%3f%64%63%3d%31%30%35%33%35%26%61%64%49%64%3d%38%31%30%34%36%26%70%6f%73%49%64%3d%38%35%26%63%6c%61%73%73%49%64%3d%33%36%26%75%72%6c%3d"}},"text":"","sourceAd":""} |
爱他就要告诉他
1 | {"app":"com.tencent.mobileqq.reading","desc":"","view":"singleImg","ver":"1.0.0.70","prompt":"爱Ta就写信告诉Ta","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"singleImg":{"mainImage":"http:\/\/tianshu.gtimg.cn\/tianshu\/1598010537642.png","mainUrl":"https://cdn.vip.qq.com/club/client/read/common/transfer.html?_wv=16778247&url=%68%74%74%70%3a%2f%2f%68%35%2e%76%69%70%2e%71%71%2e%63%6f%6d%2f%70%2f%63%67%69%72%65%70%6f%72%74%2f%63%67%69%2d%62%69%6e%2f%68%61%6e%64%6c%65%3f%64%63%3d%31%30%35%33%35%26%61%64%49%64%3d%38%31%30%34%36%26%70%6f%73%49%64%3d%38%35%26%63%6c%61%73%73%49%64%3d%33%36%26%75%72%6c%3d"}},"text":"","sourceAd":""} |
二次元动漫
1 | {"app":"com.tencent.mobileqq.reading","desc":"","view":"singleImg","ver":"1.0.0.70","prompt":"二次元动漫","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"singleImg":{"mainImage":"http:\/\/xialinzhijia.club\/wp-img.php","mainUrl":"https://cdn.vip.qq.com/club/client/read/common/transfer.html?_wv=16778247&url=%68%74%74%70%3a%2f%2f%68%35%2e%76%69%70%2e%71%71%2e%63%6f%6d%2f%70%2f%63%67%69%72%65%70%6f%72%74%2f%63%67%69%2d%62%69%6e%2f%68%61%6e%64%6c%65%3f%64%63%3d%31%30%35%33%35%26%61%64%49%64%3d%38%31%30%34%36%26%70%6f%73%49%64%3d%38%35%26%63%6c%61%73%73%49%64%3d%33%36%26%75%72%6c%3d"}},"text":"","sourceAd":""} |
最新公告
1 | {"app":"com.tencent.mannounce","desc":"群公告","view":"main","ver":"1.0.0.43","prompt":"[群公告]测试测试","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"mannounce":{"cr":0,"encode":1,"fid":"fb40082100000000cfa6495f004f0c00","gc":"554189051","sign":"1cd3b58df1e8222b7a1dcb44d6b2b8c9","text":"5rWL6K+V5rWL6K+V","title":"576k5YWs5ZGK","tw":1,"uin":"5201314"}},"config":{"ctime":1598662148,"forward":0,"token":"2f4b34dc143c29f9eb6d4f5c057a2e41"},"text":"","sourceAd":""} |
网页分享
1 | {"app":"com.tencent.structmsg","desc":"","view":"news","ver":"0.0.0.1","prompt":"[分享]言成的个人博客,记录生活","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"news":{"action":"","android_pkg_name":"","app_type":1,"appid":100951776,"desc":"","jumpUrl":"https://meethigher.top","preview":"https://meethigher.top/images/kitchen.jpg","source_icon":"","source_url":"","tag":"博客","title":"言成的个人博客,记录生活..."}},"text":"","extraApps":[],"sourceAd":""} |
QQ红包
1 | {"app":"com.tencent.mobileqq.reading","desc":"","view":"singleImg","ver":"1.0.0.70","prompt":"[QQ红包]恭喜发财!","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"singleImg":{"mainImage":"http:\/\/shp.qpic.cn\/collector\/2891404183\/5fa972cf-6144-460c-b433-d2448cd71968\/0","mainUrl":"mqqapi%3A%2F%2Fforward%2Furl%3Furl_prefix%3D"}},"text":"","sourceAd":""} |
QQ会员专属礼物
1 | {"app":"com.tencent.qqVipGame_v2","desc":"","view":"template","ver":"1.0.0.8","prompt":"[QQ会员]专属礼物🎁","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"template":{"DATA10":"","DATA11":"","DATA12":"","DATA13":"","DATA14":"http:\/\/h5.vip.qq.com\/p\/cgireport\/cgi-bin\/handle?dc=10535&adId=81046&posId=85&classId=36&url=","DATA15":"","DATA16":"","DATA7":"https:\/\/tianshu.gtimg.cn\/tianshu\/1595813105678.png","DATA8":"","DATA9":"","time":""}},"text":"","extraApps":[],"sourceAd":""} |
欢迎新人
1 | <?xml version='1.0' encoding='UTF-8' standalone='yes' ?><msg serviceID="104" templateID="1" action="" brief="新人入群!点击欢迎" sourceMsgId="0" url="" flag="0" adverSign="0" multiMsgFlag="0"><item layout="2" advertiser_id="0" aid="0"><picture cover="" w="0" h="0" /><title>新人入群</title></item><source name="" icon="" action="" appid="0" /></msg> |
创建群聊
1 | {"app":"com.tencent.creategroupmsg","desc":"建群消息","view":"main","ver":"0.0.0.1","prompt":"建群成功","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"groupinfo":{"cateid":31,"desc":"群聊创建成功!\n完善资料,让更多人发现你的群!","status":0,"subid":10048,"troopnum":"5201314"}},"config":{"autosize":true,"ctime":1598667529,"forward":true,"token":"0caafb70a5ee9a5e7c8250d85092cb83","type":"normal"},"text":"","extraApps":[],"sourceAd":""} |
自动发消息
1 | {"app":"com.tencent.autoreply","desc":"","view":"autoreply","ver":"0.0.0.1","prompt":"[动画表情]","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"metadata":{"title":"点下面按钮送妹子","buttons":[{"slot":1,"action_data":"成功激活妹子大礼包*1,获得妹子*99个","name":"我要妹子","action":"notify"}],"type":"guest","token":"LAcV49xqyE57S17B8ZT6FU7odBveNMYJzux288tBD3c="}},"config":{"forward":1,"showSender":1},"text":"","sourceAd":""} |
游戏战绩分享
1 | {"app":"com.tencent.gamecenter.gameshare_sgame","desc":"游戏分享","view":"commonView","ver":"0.0.0.1","prompt":"[应用]游戏分享","appID":"","sourceName":"","actionData":"","actionData_A":"","sourceUrl":"","meta":{"shareData":{"appid":"1104466820","cardUrl":"http:\/\/image.smoba.qq.com\/Banner\/img\/QQArk\/shareskin\/15004.jpg","extData":{"gameSeq":"1600505319","gameSvrEntity":"641806","heroid":"108","openId":"9AAA6C7F357E7EC9B3650B6AC09869EA","playerNum":"10","relaySvrEntity":"320340481"},"openId":"9AAA6C7F357E7EC9B3650B6AC09869EA","roleInfo":{"avatar":"http:\/\/image.smoba.qq.com\/Banner\/img\/QQArk\/heroicon\/108.png","partition":"0杀\/2助攻\/15死亡","roleName":"王者荣耀(5v5排位)"},"scene":"33","textBoxData":{"desc":"0杀\/2助攻\/15死亡","pic":"","tips":"","title":"超鬼打野"},"textGameData":{"data":[{"num":"0","text":"击杀数"},{"num":"15","text":"死亡数"},{"num":"2","text":"助攻数"}],"title":"我的战绩"},"url":"http:\/\/imgcache.gtimg.cn\/vipstyle\/game\/act\/north\/ark_gc843\/wzry_game_share\/bg.png","wzryRecordInfo":{"isWin":1,"loseNum":25,"score":12.7,"scoreImg":"http:\/\/imgcache.gtimg.cn\/vipstyle\/game\/act\/north\/ark_gc843\/wzry_game_share\/MVP.png","winNum":51}}},"config":{"ctime":1600506601,"forward":1,"token":"b4ac273b4b4b8df42e89969c24b9a1e5","type":"normal"},"text":"","sourceAd":""} |
英雄id
1 | 105廉颇 |
部分参考资料自xml-json.tk
用来恶搞人真好玩,哈哈
ps去掉字幕、水印
示例一
选区-选择-色彩范围(用吸管吸色-选择合适的容差)
选择-修改-扩展(扩展合适的像素)
按下快捷键shift+F5,选择内容识别,即可去掉字幕
示例二
选区-通道-双击红色-ctrl+l调整色阶(最右侧的是控制亮色,最左侧的是控制暗色)
具体看这个
腾讯王卡全局免流
手动配置的话,下载下面三款软件
- TinyProxy
- Model
- HttpCanary免费版
- HttpCanary高级版
此处不放置软件,太费劲了。
首先抓包QQ浏览器,QQ浏览器是9.9.3版本及以下才可以
然后搜索端口是8090的,打开请求内容
复制ip、guid、token到model,自动生成腾讯王卡配置文件,保存在根目录下tiny文件夹中
TinyProxy打开右上角,选择配置,腾讯王卡配置,即可
但是这个Toke是每两小时,失效一次。所以,有大佬做了,动态免流的api以及软件,但是我用了发现不太好用,经常需要重启软件,更新ip,所以,还是用TinyProxy吧。
动态更新api
1 | http://kc.iikira.com/kingcard |
放上一份我自己在用的TinyProxy配置文件,里面的两个ip,可以通过抓包获取。
1 | listen_port=65080; |
参考
其实还是自己手动配的这种网速好点,如果不想配,可以直接用无脑版,后台锁定即可,token失效,他会用少量流量更新token,大佬写的。
放张图,自己对比一下
小米wifi开启热点
之前MIUI11的时候,小米可以直接通过wifi开启个人热点,连接,就能用。
自从升级了MIUI12之后,这个功能别人连了就一直没网,我就尝试更新系统,但还是没用。
仔细想了想,要不就改一下DNS,尝试将连接wifi的设备的DNS,改成
1 | 114.114.114.114 |
果真就可以了,记录一下。
小米自制倒计时息屏
首先,说一下息屏的安装位置:/data/user_de/0/com.miui.aod/app_themes,当然了,不是root就不用试了。
基于小米商店大佬的息屏作品,扒了源代码,进行修改。放上主要代码。倒计时的图片daojishi.png可以自己用ps自定义
目标时间在trigger里面设置
1 | <Aod frameRate="60" screenWidth="1080" version="1"> |
放上效果图
eclipse删除launch configuration
两种方法
- 手动在磁盘删除
- 通过代码删除
以我的项目为例子,保存在下面路径,直接进入删除即可。
1 | D:\Develop\JavaDev\.metadata\.plugins\org.eclipse.debug.core\.launches |
代码删除的源码如下
1 | import java.io.File; |
解决Github文件无法下载
访问raw.githubusercontent.com的时候,老是没网。说来说去,不还是因为中间有道墙吗!
进入IPaddress,输入raw.githubusercontent.com,得到ip地址,199.232.96.133。
windows进入C:\Windows\System32\drivers\etc\hosts,添加一行
1 | 199.232.96.133 raw.githubusercontent.com |
记住,前面一定要加raw,否则没用。
如果不生效,就刷新dns
1 | ipconfig /flushdns |
Idea文件夹层次问题
这个其实只要设置一下compact middle packages即可。
Idea通过debug寻找实现类
参考教程
Idea设置运行环境
因为公司的项目在我电脑上跑不起来,所以我就设置了jdk版本。
首先,打开项目。
Hexo查看所有文章包括草稿
命令
1 | hexo s --drafts -p 80 |
安卓无Root卸载app
首先下载adb工具,如果链接失效,就去我的cloud里面注册获取即可。
步骤
开启usb调试,数据线连接电脑。下面的步骤都是基于电脑命令行执行。
获取连接的设备
如果连接上,启用adb命令
执行卸载
获取连接设备
1 | adb devices |
启用adb命令
1 | adb shell |
执行卸载
1 | pm uninstall -k --user 0 软件包名 |
效果如下图
阿里云邮
因为换了服务器,后来又把域名解析都关闭了,只开了几个必要的,结果导致阿里云邮用不了了。
进入阿里云控制台,搜索域名,重新打开了域名解析。
进入阿里云控制台,搜索企业邮箱,查看解析是否生效。
修改全局UA
手机端,当然首选via浏览器了,设置中修改浏览器标识。
PC端,当然首选我强大的chrome了,什么edge去死吧,不配!安装chrome扩展
推荐两款
第一款支持自己修改的ua,第二款只能使用提供的ua。我就不一样了,我直接把ua改成了鸿蒙。
1 | HarmonyOS/99.99 (Copy from android; Android 2; HarmonyOS Build/HarmonyOS2) HarmonyOSWebKit/999.99 (KJSP, like HTML) Version/99.99 |
哎,就是喜欢黑鸿蒙,就是玩~从没见过抄人家代码抄得这么理直气壮的!
2022年,我又发现了更好用的一个扩展,ModHeader - Chrome 网上应用店。
Navicat备份功能
这个是以Postgresql数据库为准。
备份之后,是可以提取成Sql的
手环模拟加密门禁
小米手环:打开小米运动,进入非加密卡模拟,会提示仅支持市面上未经加密且频率为13.56MHz的门卡。
小米手机:打开小米钱包,添加实体门卡,会提示仅支持市面上频率为13.56MHz的门卡。
因为手环不能模拟加密的,所以如果想要在手环上模拟门禁。
- 小米手机去模拟加密门禁
- 小米手环再去模拟小米手机上的门禁
禁用流氓软件读取列表
说到流氓软件,大众第一时间会想到的是360,想要治流氓,需要自己本身就是个大流氓。
像腾讯系列的app、阿里系列的app,感觉也是个大流氓。比如腾讯的链式启动,我登个游戏,我想输入密码,而他非给我跳到QQ、腾讯。
解决这种方法也很简单,直接adb暂时冻结你要唤起的app即可。两种途径,一个是adb命令行(usb调试、无线调试均可),另一个是借助第三方工具(冰箱、小黑屋等)
但是上面这种方式,对于常用的app,就很不方便。
小米本身提供了禁用读取应用权限,但是不好使,毕竟流氓有好多种方式可以拿到app,小米不能全部禁用,不然就成全国各大厂的公敌了不是,还想不想混了?推荐一个root后使用的模块,用于禁用读取app列表。Dr-TSNG/Hide-My-Applist: An Xposed module to intercept applist detections
如果magisk使用的是24以下版本,推荐下载2.2.4版本。
工作模式的白名单、黑名单,好像有点问题。推荐直接启用所有隐藏方式,如下。不好使就再次重启就ok。注意,右上角记得点击保存
安卓无线调试终端
使用第三方工具,甲壳虫ADB助手
小米进入参数-狂点miui版本,直到弹窗已处于开发者模式。然后进入开发者模式,打开无线调试,点击使用配对码配对设备。
按要求输入进行配对即可。
文件链接
windows
创建软硬链接示例
1 | mklink [[/d] | [/h] | [/j]] link target |
比如,我为maven仓库创建目录软链接
1 | mklink /d C:\Users\meethigher\.m2 D:\Develop\apache-maven-3.6.3\repo |
硬链接:临死拉个垫背的。删除时,源文件也会被删除
软链接:牺牲小我成全大我。删除时,源文件不会被删除。
linux
创建软硬链接示例
1 | ln 源文件 硬链接文件 |
比如,我给test.yml创建一个文件软链接
1 | ln -s test.yml soft.yml |
硬链接:临死拉个垫背的。删除时,源文件也会被删除
软链接:牺牲小我成全大我。删除时,源文件不会被删除。
生成指定大小文件
快速生成指定大小的空文件_AllenLeungX的博客-CSDN博客_创建指定大小的空文件
windows
单位字节,生成大小为1字节的文件text.txt
1 | fsutil file createnew text.txt 1 |
linux
of:fileName为文件名称,例如test.txt ;
bs:设置一次复制的大小,例如1M;
count:设置复制次数,例如50;
生成一个50M大小的文件1.txt
1 | dd if=/dev/zero of=1.txt bs=1M count=50 |
热点转发vpn
android
安卓的话,使用google play提供的vpn热点即可
windows
有的vpn连接后会生成一个网络适配器,通过开启热点,共享即可。
搜索引擎使用技巧
指定/屏蔽网站
如
1 | # 指定某个网站 |
指定/屏蔽文件类型
如
1 | # 指定 |