随笔分类 - 脚本
摘要:[1] Install Bibtex: Text studio download from the official website: https://www.tug.org/texlive/acquire-netinstall.html [2]install Tex Live can check
阅读全文
摘要:问题描述: yum install ** 失败 [Errno 14] HTTP Error 404 - Not FoundTrying other mirror. 可以直接更新源缓存: [root@linuxprobe yum.repos.d]# yum clean all //清楚缓存 Loade
阅读全文
摘要:今天改一段小代码,发现怎么改都没用,公式重推了一遍,还是没问题。后来发现是整除忘了转换类型了: printf(" \n"); printf(" \n"); printf(" \n"); double aaaaa; double bbbbb; aaaaa=1/2; printf("1/2 is= %.
阅读全文
摘要:首先下载到本地 git clone https://github.com/aperezdc/ngx-fancyindex 具体网址为: https://www.nginx.com/resources/wiki/modules/fancy_index/ 然后 先卸载Nginx,然后安装,安装选择编译安
阅读全文
摘要:首先: Openwrt镜像下载地址:https://downloads.openwrt.org/releases/ 选择一个版本,然后点targets/x86/64/,来到下载列表 如: 【1】https://downloads.openwrt.org/releases/18.06.8/target
阅读全文
摘要:it's fine to use shell script to get job done username='pat' wget -N -O "github_user.list" "https://api.github.com/users/${username}/repos?per_page=10
阅读全文
摘要:大写转小写: for fname in *; do mv $fname `echo $fname|tr [A-Z] [a-z]`; done 小写转大写: [zengs@SYS SOS]$ for cpplive in *; do mv $cpplive `echo $cpplive|tr [a-z
阅读全文
摘要:鉴于某新版极度不友好,因此打算下载,搬到系统自带音乐播放器中使用 (1)在线转换,界面友好,低于50个文件可以自动转: http://ncm.worthsee.com/ (2)github: https://github.com/lianglixin/ncmdump 依赖pycrypto,最好在ub
阅读全文
摘要:wget -nd -r -l1 --no-parent http://www.foo.com/mp3/ 比如说这个网站 https://www3.nd.edu/~powers/ame.60636/chemkin/ 手动一个个下载会累死的 使用命令: wget -nd -r -l1 --no-pare
阅读全文
摘要:一开始以为只有Liunx下有ssh、sshd服务,其实windows 自带的系统也支持ssh服务,十分方便啦 首先打开程序: 添加功能中找到OpeSSH 安装服务 接下来是管理员权限的cmd开启 net start sshd net stop sshd 也可在系统服务中查询到 如果需要更改默认端口,
阅读全文
摘要:“WebDAV (Web-based Distributed Authoring and Versioning) 一种基于 HTTP 1.1协议的通信协议。它扩展了HTTP 1.1,在GET、POST、HEAD等几个HTTP标准方法以外添加了一些新的方法,使应用程序可对Web Server直接读写,
阅读全文
摘要:首先,推荐使用caddy 系列软件,但Caddy系列软件功能太多,因此此软件更加纯粹一些 再者虽然这个项目今年之后不再被更新,但基本功能已经完全够小型服务所使用~ https://github.com/filebrowser/filebrowser/releases 找到windows 的安装包,也
阅读全文
摘要:word 宏批量修改图片的大小 Sub 批量图片大小() Dim iSha As InlineShape For Each iSha In ActiveDocument.InlineShapes If iSha.Type = wdInlineShapePicture Then 'iSha.LockA
阅读全文
摘要:This code was created two years ago,It can be used to cut the image automatically with a batch script and the size of the frame can be manually defini
阅读全文
摘要:为了防止掉线,人为制造一些流量 Linux 中创建如下脚本: #!/bin/bash while [ 1 = 1 ] dowget -N info.tsinghua.edu.cn sleep 800; done Windows 中创建如下脚本: :start ping -n 5 lib.tsingh
阅读全文
摘要:写一个小脚本,可以手动开启或者关闭绿色护眼背景 复制右键保存.bat文件即可,如: 绿色护眼开启关闭脚本,右键管理员权限运行即可 @echo off echo. echo echo "1" Start Green Background echo "0 " Turn off Green backgro
阅读全文

浙公网安备 33010602011771号