hw-1

apple developer cert is not trusted in big sur

apple developer cert is not trusted in big sur

1
2
3
4
5
Issued by: Apple Worldwide Developer Relations Certification Authority[]
downlaod new root ca
wget https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer
add ca to trust keychain
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain AppleWWDRCAG3.cer

AttributeError: module 'tensorflow.python.keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects'

/Volumes/wd1/APP/hw-1.github.io/source/_posts/AttributeError-module-tensorflow-python-keras-utils-generic-utils-has-no-attribute-populate-dict-with-module-objects.md

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## keras to tensorflow.python.keras
replace: from keras.utils import generic_utils
with: from tensorflow.python.keras.utils import generic_utils

## keras.applications to tensorflow.keras.applications
from keras.preprocessing.image import load_img
from keras.preprocessing.image import img_to_array
from keras.applications.vgg16 import preprocess_input
from keras.applications.vgg16 import decode_predictions
from keras.applications.vgg16 import VGG16
became this:
from tensorflow.keras.preprocessing.image import load_img
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.applications.vgg16 import preprocess_input
from tensorflow.keras.applications.vgg16 import decode_predictions
from tensorflow.keras.applications.vgg16 import VGG16

:db_mysql:wrapper_single_mysql_stmt_execute: driver error (4031): The client was disconnected by the server because of inactivity. See wait_timeout and

:db_mysql:wrapper_single_mysql_stmt_execute: driver error (4031): The client

was disconnected by the server because of inactivity. See wait_timeout and

1
2
3
4
5
6
7
8
#mysql
interactive_timeout for configuring this behavior.
SHOW SESSION VARIABLES LIKE '%timeout%';
#config
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
wait_timeout = 2880000
interactive_timeout = 2880000
sudo service mysql restart

No more variables left in this MIB View (It is past the end of the MIB tree) 问题

No more variables left in this MIB View (It is past the end of the MIB tree) 问题

vim /etc/snmp/snmpd.conf

1
2
3
4
5
6
7
8
9
10
11
rocommunity public  localhost
#rocommunity public default -V systemonly
#rocommunity6 public default -V systemonly

service snmpd restart
#trafic
snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.31.1.1.1
#in_trafic
snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.31.1.1.1.6.2
#out_trafic
snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.31.1.1.1.10.2

brew ghcr.io/v2 404

brew ghcr.io/v2 404

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

# 1.执行安装脚本
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
# 2.安装完成后设置
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/' >> ~/.bash_profile
source ~/~/.bash_profile

cd $(brew --repo); git fetch; git reset --hard origin/master
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"; git pull https://github.com/Homebrew/homebrew-core
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"; git pull https://github.com/Homebrew/homebrew-cask

brew update-reset