分类目录归档:其他

Using FORERUNNER 935 Virtual Partner

Using Virtual Partner
The Virtual Partner® feature is a training tool designed to help you meet your goals. You can set a pace for the Virtual Partner and race against it.

NOTE: This feature is not available for all activities.
From the watch face, select START.
Select an activity.
Hold Menu symbol.
Select the activity settings.
Select Data Screens > Add New > Virtual Partner.
Enter a pace or speed value.
Start your activity (Starting an Activity).
Select UP or DOWN to scroll to the Virtual Partner screen and see who is leading.

Virtual partner data

 

 

http://download.garmin.com/tw/download/manuals/forerunner935_TW_0A.pdf

https://www8.garmin.com/manuals/webhelp/forerunner935/EN-US/Forerunner_935_OM_EN-US.pdf

pip or pip3 update all packages

$ pip freeze > requirements.txt
Open the text file, replace the == with >=, or have sed do it for you:

$ sed -i ‘s/==/>=/g’ requirements.txt
and execute:

$ pip install -r requirements.txt –upgrade

 

 

https://stackoverflow.com/questions/2720014/how-to-upgrade-all-python-packages-with-pip

r2s lsusb result

root@FusionWrt:/# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0bda:b812 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

faq

kodi链接失败?
把 api.themoviedb.org 翻墙看看

n1电视盒子或者安卓设备时间不对?
换个网络看看,说不定是连不上时间服务器。

如何添加公钥

wget -q ‘https://www.abc.com/key.txt’ -O – >>/root/.ssh/authorized_keys

oracle cloud机器修改主机名不起效

vi /etc/oci-hostname.conf

测试翻墙速度的一些文件

test_file_urls=https://download.microsoft.com/download/2/0/E/20E90413-712F-438C-988E-FDAA79A8AC3D/dotnetfx35.exe|Default
test_file_urls=https://dl.google.com/android/studio/maven-google-com/stable/offline-gmaven-stable.zip|Google
test_file_urls=http://cachefly.cachefly.net/200mb.test|Cachefly
test_file_urls=http://updates-http.cdn-apple.com/2019FallFCS/fullrestores/061-22552/374D62DE-E18B-11E9-A68D-B46496A9EC6E/iPhone12,1_13.1.2_17A860_Restore.ipsw|Apple

 

*back data to onedrive
onedrive –synchronize –upload-only –no-remote-delete
*add ip address to black list
iptables -I INPUT -s 121.12.125.240 -j DROP
*delete
iptables -D INPUT -s 121.12.125.240 -j DROP
*find big file
find . -type f -size +1M -mtime -1 -exec ls -lh {} \;

ubuntu修改主机名

sudo apt install systemd
hostnamectl set-hostname jiarm1

 

git 

ssh://juhui@192.168.5.10:2022/volume1/gitRepos/test.git

升级openssl

ssh
apt-get install -y aptitude
aptitude install -f libpam0g-dev libselinux1-dev
apt-get install -y libssl-dev zlib1g-dev

# 备份ssh配置
cp -rf /etc/ssh /etc/ssh.bak

# 设置文件权限
chmod 600 /etc/ssh/ssh_host_rsa_key
chmod 600 /etc/ssh/ssh_host_ecdsa_key
chmod 600 /etc/ssh/ssh_host_ed25519_key

# 配置sshd配置
sed -i ‘s/^#PermitRootLogin yes/PermitRootLogin yes/’ /etc/ssh/sshd_config
sed -i ‘s/^GSSAPIAuthentication/#&/’ /etc/ssh/sshd_config
sed -i ‘s/^GSSAPICleanupCredentials/#&/’ /etc/ssh/sshd_config
sed -i ‘s/^UsePAM/#&/’ /etc/ssh/sshd_config

# 配置service, 取消notify
sed -i ‘s/^Type/#&/’ /lib/systemd/system/ssh.service

# 下载包

wget https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.6p1.tar.gz
tar zxf openssh-8.6p1.tar.gz

# 编译安装
cd openssh-8.6p1
./configure –prefix=/usr –with-privsep-path=/var/empty/sshd/ \
–sysconfdir=/etc/ssh –with-ssl-dir=/usr/local/openssl/ \
–with-default-path=/usr/local/bin:/bin:/usr/bin \
–with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin \
–with-pam –with-selinux –disable-strip –with-md5-passwords
make
make install

# 重启服务
systemctl daemon-reload

systemctl restart sshd

# 现在版本
ssh -V

openssl
https://www.howtoforge.com/tutorial/how-to-install-openssl-from-source-on-linux/

也可以看这个

https://stackoverflow.com/a/49578644

但是记得要看Openssl是不是在path里面

 

服务器安装推荐

安装lnmp
lnmp ssl add
强制所有的走https
include black.conf
传输文件 用管道
导入数据
安装v2ray
安装 monit
配置crontab
lnmp 安装exif opcache memcached
开启bbr
——————
nginx配置
cut log脚本
monit配置
配置mon
v2ray配置

digitalocean.com优惠码

digitalocean.com是在美国纽约的一个vps提供商,点击下面链接注册,你能得到10美元的优惠券。

https://www.digitalocean.com/?refcode=7ca8065bcdd9

最新优惠码:目前仅需通过本站注册并激活即可获得10美元账号余额,点击注册
UBUNTUDROPLET 获得10美元账号余额。
10TOSHIP 获得10美元账号余额。
RUBYDROPLET 获得10美元账号余额。
DEPLOY2DO 获得10美元账号余额。
2014SSD 获得10美元账号余额。
HOLIDAYSSD 获得10美元账号余额。
BLACK50 获得50美元账号余额,仅限黑色星期五当天有效。
DIVEIN10 获得10美元账号余额。
SSDTWTTR 获得10美元账号余额。
OCT15FREE 获得15美元账号余额。

有问题请留言