2018年8月11日
下载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……
阅读全文
2018年8月1日
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……
阅读全文
2018年8月1日
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.……
阅读全文
2018年8月1日
mac的word打开时出现隐藏模块中出现错误 link
删除Word文件夹下的内容
cd ~/Library/Group\ Containers/UBF8T346G9.Office/User\ Con tent.localized/Startup.localized/Word/ rm * ……
阅读全文
2018年7月30日
autojump
brew install autojump
brew info autojump……
阅读全文
2018年7月30日
1 安装hugo 首先在本地安装hugo
https://github.com/gohugoio/hugo/releases/
wget https://github.com/gohugoio/hugo/releases/download/v0.45.1/hugo_0.45.1_Linux-64bit.deb sudo dpkg -i hugo_0.45.1_Linux-64bit.deb 新建博客
hugo new site myblog 添加主题
此处主题使用的是hyde https://github.com/spf13/hyde.git
cd myblog/themes git clone https://github.com/spf13/hyde.git 也可以选择maupassant主题
本地测试一下
hugo server --theme=hyde --buildDrafts --watch 如果需要其他机器访问,ip替换博客所在的机器的ip
hugo server --theme=hyde --buildDrafts --watch --bind {ip} -p {port} -b http://{ip} 2 生成静态网站 hugo --theme=hyde --baseUrl="https://{name}.github.io/" 3 上传到github 在GitHub上创建一个Repository,命名为:{name}.github.io 这里{name}是用户名
在本地设置git
git config --global user.email "
[email protected]" git config --global user.name "Your Name" clone自己的空项目,{name}填写自己的用户名,把public下的内容提交到github上
git clone https://github.com/{name}/{name}.github.io.git cp -r {博客目录/public/*} {name}.……
阅读全文
2018年7月30日
transmission 安装transmission
sudo apt-get install transmission-daemon 给用户权限
sudo usermod -a -G pi debian-transmission 设置/etc/transmission-daemon/settings.json
下载文件夹 "download-dir": "/var/lib/transmission-daemon/download" 未完成的文件存放位置 "incomplete-dir": "/var/lib/transmission-daemon/Downloads" 网页登录密码 "rpc-password": "password" 网页登录用户名 "rpc-username": "transmission" 允许网页登录 "utp-enabled": true 将访问的ip保存到白名单 "rpc-whitelist": "127.0.0.1,192.168.*.*" 保存配置文件
重启transmission
sudo service transmission-daemon reload 在浏览器中访问 ip:9091
aira2 aria2的项目主页是 https://aria2.github.io/
(1) 安装aria2 sudo apt-get install aria2 配置文件在 /home/pi/.aria2 目录下,需要的文件有aria2.session 和 aria2.conf
mkdir ~/.aria2 cd ~/.aria2 touch aria2.session vim aria2.conf 参照后文的配置文件修改配置
测试一下是否有问题
aria2c --conf-path=/home/pi/.aria2/aria2.conf sudo service aria2c start (2)设置开机启动 #!……
阅读全文
2018年7月30日
1. 下载raspbian raspbian网址 https://www.raspberrypi.org/downloads/raspbian/
2. 格式化tf卡 格式化工具 https://www.sdcard.org/downloads/formatter_4/eula_windows/index.html
3. 写入系统镜像 写入工具 https://sourceforge.net/projects/win32diskimager/
4. 初始设置 (1) 开启ssh连接 在tf卡新建ssh文件
(2) 建立连接,用户名pi,密码raspberry
ssh
[email protected]_address The authenticity of host 'ip_address (ip_address)' can't be established. ECDSA key fingerprint is SHA256:2NujoCiByTabrwE3bPHxzVol5G5pZTZufUyWegxvW+A. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'ip_address' (ECDSA) to the list of known hosts.
[email protected]_address's password: (3) 安装tightvnc
安装tightvncserver
sudo apt-get install tightvncserver 设置密码
vncpasswd Using password file /home/pi/.……
阅读全文
2018年7月26日
在 /var/www/www2 目录下新建html文件index.html。
/var/www# tree . ├── html │ ├── index.nginx-debian.html │ └── test.php └── www2 └── index.html 配置的目录在 /etc/nginx
在conf.d中新建配置文件
此处我新建的是www2.conf
server { listen 80; server_name ip_address; #此处是ip地址或者域名 location /www2 { alias /var/www/www2; index index.html index.php index.htm; } } 保存并且退出
用下面的命令检查一下是否出现错误
sudo nginx -s reload 或者直接重启
sudo /etc/init.d/nginx restart 访问ip_address/www2……
阅读全文
2018年7月26日
安装nginx
sudo apt-get install nginx 启动
sudo /etc/init.d/nginx start
sudo nginx -s reload……
阅读全文