安装spring boot

下载java 下载地址 https://www.oracle.com/technetwork/java/javase/downloads/index.html java --version java 11.0.2 2019-01-15 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode) whereis java /usr/bin/java IntelliJ IDEA 新建项目 可以在这里添加框架支持 目录结构 maven中添加 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.2.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.example</groupId> <artifactId>demo</artifactId> <version>0.0.1-SNAPSHOT</version> <name>demo</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.……

阅读全文

mpchc和madvr

下载并解压madVR http://www.madvr.com 管理员身份运行install.bat 设置使用madVR 使用mpc hc 播放影片 右下角小图标右键edit……

阅读全文

蓝牙鼠标掉线

允许蓝牙设备查找这台电脑 在设备管理器中关闭“允许计算机关闭此设备以节约电源”选项 ……

阅读全文

ssh隧道远程端口转发

设置GatewayPort sudo vim /etc/ssh/sshd_config GatewayPort yes 重启ssh使其生效 /etc/init.d/ssh restart ssh -NfR {localport}:{localhost}:{remoteport} {username}@{remoteip} #举例 ssh -NfR 222:0.0.0.0:22 [email protected]地址 -N:不执行远程指令 -f:后台执行ssh指令 -R: 远程端口转发 保持连接 vim ~/.ssh/config ServerAliveInterval 30 关闭 fuser -v -n tcp {端口} kill 9 {进程号} ……

阅读全文

搭建speedtest

安装nginx和php sudo apt install nginx php-fpm php --version #测试是否安装成功 在目录下下载speedtest speedtest地址 https://github.com/adolfintel/speedtest cd /var/www/ git clone https://github.com/adolfintel/speedtest 配置nginx的设置,这里我没有动nginx.conf , 而是修改的/etc/nginx/sites-enabled/default 文件 server { listen 80 default_server; listen [::]:80 default_server; # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server!……

阅读全文

windows下telegram更换字体

下载TGFont.dll https://github.com/ysc3839/TGFont/releases 重命名为winmm.dll并且放入telegram的文件夹下面 重启telegram,会出现TGFont.json文件 { "fonts": { "SimSun": { "replace": "Microsoft YaHei UI", "size": 40, "#width": 0, "#weight": 0, "#italic": false, "#underLine": false, "#strikeOut": false, "#charSet": 0, "#outPrecision": 0, "#clipPrecision": 0, "#quality": 0, "#pitchAndFamily": 0 } }, "debug": false } 再次重启telegram……

阅读全文

实用软件

Windows quick look https://github.com/QL-Win/QuickLook cmder http://cmder.net/ cygwin https://www.cygwin.com/ xshell https://www.netsarang.com/en/free-for-home-school/ Universal USB Installer etcher ComicRack http://comicrack.cyolito.com/ Linux neofetch https://github.com/dylanaraps/neofetch diffuse 比较文本 http://diffuse.sourceforge.net/download.html Mac homebrew https://brew.sh/ macdown https://macdown.uranusjr.com/ iterm2 https://www.iterm2.com/ termius iStats https://github.com/Chris911/iStats LuLu https://objective-see.com/index.html pock https://github.com/pigigaldi/Pock 在bar上显示docker SwitchKey https://github.com/itsuhane/SwitchKey 不同应用自动切换输入法 cross-platform typora https://typora.io/ snipaste https://zh.snipaste.com/ wireshark https://www.wireshark.org DeaDBeeF http://deadbeef.sourceforge.net/ MComix https://sourceforge.net/projects/mcomix/ Zettlr https://www.zettlr.com/ mark text https://github.com/marktext/marktext/releases dupuguru 处理重复软件 https://github.com/arsenetar/dupeguru/releases 终端 autojump ranger https://ranger.github.io/ 配置终端PS1工具 http://bashrcgenerator.com/ 插件 https://chrome.google.com/webstore/detail/url-render/flhclpkhoiajoikkabbfbinnjapaflog 字体 Dejavu https://dejavu-fonts.github.io……

阅读全文

用dnsmasq搭建dns服务器

1 安装dnsmasq sudo apt-get install dnsmasq 说明:/etc/resolv.conf是默认的文件,记录的是本机器的上游dns服务器。 2 设置dnsmasq配置文件 dnsmasq的默认配置文件是/etc/dnsmasq.conf sudo vim /etc/dnsmasq.conf 设置dnsmasq的监听的地址,也就是本机ip地址 # Or which to listen on by address (remember to include 127.0.0.1 if # you use this.) listen-address=127.0.0.1, {ip_address} #({ip_address}添加自己的本机器ip地址) 测试dns服务器可以用dig(Domain Information Groper)和nslookup 若没有这些命令,先安装 ubuntu sudo apt-get install dnsutils debian apt-get update apt-get install dnsutils centos yum install bind-utils dig @dns服务器的ip 网站域名 dig @1.0.0.1 www.bing.com nslookup 网站域名 dns服务器的ip nslookup www.bing.com 1.0.0.1 如果不想读取本机hosts,可以设置no-hosts # If you don't want dnsmasq to read /etc/hosts, uncomment the # following line.……

阅读全文

隐藏模块中出现错误 link

mac的word打开时出现隐藏模块中出现错误 link 删除Word文件夹下的内容 cd ~/Library/Group\ Containers/UBF8T346G9.Office/User\ Con tent.localized/Startup.localized/Word/ rm * ……

阅读全文