Libraries I need a few libraries for NLP and each of them are very powerful. I downloaded all of these libraries via pip, like pip install -U {package}. In the last section, I summaraized the libraries and I can install them at once later.
spaCy: Open source NLP library. NLTK: Natural Language ToolKit. It is older than spaCy (spaCy 2015~, NLTK 2001~). gensim: NLP tools. I installed it for Doc2Vec. TensorFlow: For custom models of machine learning including Keras.
I followed this post.
cf) DNS-01 Challenge: https://letsencrypt.org/de/docs/challenge-types/.
Check the certificate certbot certificates Create a new certificate Prepare E-mail address for notifications from Let’s Encrypt (in followin case foo@bar.com). You should be ables to change the DNS records (TXT records) of the domain. Create the certificate certbot --manual --preferred-challenges dns certonly \ -d yourwebsite.com \ -d www.yourwebsite.com \ # SAN in the certificate Here is the sample messages.
Saving debug log to /var/log/letsencrypt/letsencrypt.
Vivaldi (or Chromium or Chrome) setting Go to Preferences -> Search.
Sample I use Lexico often to search the meaning of words (as dictionary).
Name: Lexico Nickname: lex URL: https://www.lexico.com/en/definition/%s Check the Use POST method With this configuration, I can search the word, for example, “test” by type “lex test” in the browser’s URL box.
Concept of iptables It is a realy rule table in which the IP communication rules are. There are groups of these rules, and it’s called “chain'.
iptables configuration Configuration file You can see the configurations in the file /etc/iptables/rule.v4. Here is a sample line in the file.
-A chain-outgoing-services -s 192.168.100.50/32 -d 1.2.3.4/32 -p tcp -m tcp --dport 22 -m comment --comment "This is a comment." -j ACCEPT http://web.mit.edu/rhel-doc/4/RH-DOCS/rhel-rg-en-4/s1-iptables-options.html
-A chain-outgoing-services: Append the rule to chain chain-outgoing-services.
/etc/security/limits.conf Concept https://wiki.archlinux.org/index.php/Limits.conf
/etc/security/limits.conf allows setting resource limits for users logged in via PAM. This is a useful way of preventing, for example, fork-bombs from using up all system resources.
Note: The file does not affect system services. For systemd services the files /etc/systemd/system.conf, /etc/systemd/user.conf, and /etc/systemd/<systemd_unit>/override.conf control the limit. See the systemd-system.conf(5) man page for details.
Config sample https://linux.die.net/man/5/limits.conf
* soft nofile 160000 The syntax of the lines is as follows:
This is a draft page.
Connect to MySQL Open your terminal and execute the following.
mysql -u root -p mysql: Connect to MySQL. -u root: as user root. -p : with the password. This command prompt you to input the password. After input your password, MySQL prmpt mysql> will appear.
Make a normal user Create normal user There are users im MySQL, different from OS user. I recommend to make a new simple user in order to access control.
Install Install MySQL in macOS with the installer Use official installer.
MySQL - Official Download page: https://dev.mysql.com/downloads/mysql/
Initial password of the root user The root means the MySQL root user, not your macOS You should take a memo your password of root user (not Linux system super user.)
For CLI After running installer, add the PATH to ~/.zshrc (or your shell. Check with $echo SHELL).
alias mysql=/usr/local/mysql/bin/mysql alias mysqladmin=/usr/local/mysql/bin/mysqladmin Check the version mysql --version /usr/local/mysql/bin/mysql Ver 8.
Official document.
WSL (Nov, 2020) In my environment (Windows Subsystem Linux), I could install as follows.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation >1 echo "export PATH=$HOME/.cargo/bin:$PATH " >> ~/.bashrc CentOS8 CentOS 8 in GCP. Basically same, but just for a memo.
curl -sSf https://sh.rustup.rs | sh When memory allocation failed, try to set up RUSTUP_UMPACK_RAM.
https://github.com/rust-lang/rustup/issues/2128
Update Rust If you install Rust in this way, you can update your Rust by the command below:
PGP and GPG PGP - Pretty Good Privacy GPG - GNU Privacy Guard oder GnuPG https://en.wikipedia.org/wiki/Pretty_Good_Privacy
The Free Software Foundation has developed its own OpenPGP-compliant program called GNU Privacy Guard (abbreviated GnuPG or GPG).
Install GPG on MacOS Installing homebrew first
Refer to https://blog.ghostinthemachines.com/2015/03/01/how-to-use-gpg-command-line/
And install it.
brew install gnupg Use GPG keygen Generate a key pair
gpg --gen-key Real name: My Realname Email Address: foo@bar.com (Okay) (Enter the pass) As a default, the key type is RSA 2048.
Installing stacks You may be confused at first the differences between,
pyenv virtualenv pyenv-virtualenv Especially, virtualenv sounds like Linux virtual environment, but it isn’t at all. Here is the good answer about that.
Conclusion: pyenv-virtualenv is the best choice.
pyenv-virtualenv official: https://github.com/pyenv/pyenv-virtualenv
Install pyenv Install pyenv in macOS (or other Linux environments).
# Download source under ~/.pyenv git clone https://github.com/yyuu/pyenv.git ~/.pyenv # Set PATH and another variable echo -e '\n export PYENV_ROOT=$HOME/.