08 2020 档案

【Raspberry Pi】Wiring Pi无法读取树莓派4B GPIO(Oops - unable to determine board type... model: 17)
摘要:Oops - unable to determine board type... model: 17 $ sudo apt-get install wiringpi Reading package lists... Done Building dependency tree Reading stat 阅读全文

posted @ 2020-08-23 12:32 严中辉 阅读(1767) 评论(0) 推荐(0)

【Android】软键盘遮挡布局的解决办法
摘要:AndroidBug5497Workaround.class public class AndroidBug5497Workaround { // For more information, see https://issuetracker.google.com/issues/36911528 // 阅读全文

posted @ 2020-08-18 08:24 严中辉 阅读(347) 评论(0) 推荐(0)

【Raspberry Pi】树莓派(在SD卡上创建映像后)WiFi网络和SSH的设置
摘要:WiFi网络设置,在SD卡(boot)下创建一个wpa_supplicant.conf文件,示例如下: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=CN network={ ssid= 阅读全文

posted @ 2020-08-13 22:31 严中辉 阅读(540) 评论(4) 推荐(0)

【Raspberry Pi】树莓派查看GPU和ARM CPU的温度
摘要:$ vi my-pi-temp.sh $ cat my-pi-temp.sh #!/bin/bash # Script: my-pi-temp.sh # Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3 # Au 阅读全文

posted @ 2020-08-11 15:37 严中辉 阅读(994) 评论(1) 推荐(0)

【FRP】frp配置信息
摘要:服务端 $ cat frps.ini [common] bind_port = 7000 vhost_http_port = 80 vhost_https_port = 443 客户端 $ cat frpc.ini [common] server_addr = example.com server_ 阅读全文

posted @ 2020-08-11 15:26 严中辉 阅读(163) 评论(0) 推荐(0)

【MINIO】minio设置开机自启
摘要:$ sudo vi /etc/rc.local $ cat /etc/rc.local ...... # minio export MINIO_ACCESS_KEY=minio export MINIO_SECRET_KEY=minio123 nohup /minio/minio server st 阅读全文

posted @ 2020-08-11 15:08 严中辉 阅读(1044) 评论(0) 推荐(0)

【Gogs】gogs设置开机自启服务
摘要:$ sudo cp /gogs/scripts/systemd/gogs.service /lib/systemd/system/ $ sudo vi /lib/systemd/system/gogs.service $ cat /lib/systemd/system/gogs.service [U 阅读全文

posted @ 2020-08-11 14:54 严中辉 阅读(1251) 评论(0) 推荐(0)

【FRP】frp设置开机自启服务
摘要:服务端 $ sudo vi /lib/systemd/system/frps.service $ cat frps.service [Unit] Description=Frp Server Service After=network.target [Service] Type=simple Use 阅读全文

posted @ 2020-08-11 14:39 严中辉 阅读(1074) 评论(3) 推荐(0)

【Android】ScrollView不显示滚动调、波纹效果
摘要:<ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:overScrollMode="never" android:scrollbars="none" /> 阅读全文

posted @ 2020-08-11 14:10 严中辉 阅读(262) 评论(0) 推荐(0)

【Android】使用StateListAnimator实现TextSize的Selector
摘要:selector.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:color="@color/ 阅读全文

posted @ 2020-08-04 19:20 严中辉 阅读(347) 评论(0) 推荐(0)