thanks to https://timesaving.hatenablog.com/entry/2023/04/01/150000 (Japanese)
Tested in macOS Monterey.
Everything will done in terminal, except for downloading the Ubuntu image.
thanks to https://timesaving.hatenablog.com/entry/2023/04/01/150000 (Japanese)
Tested in macOS Monterey.
Everything will done in terminal, except for downloading the Ubuntu image.
as a premise, you can access to the remote server by ssh
You need homebrew for mac
brew install macfuse
brew install gromgit/fuse/sshfs-mac
<prefix>
は,デフォルトでは,ctrl + b
.
ref: https://www.folkstalk.com/2022/09/tmux-kill-other-clients-with-code-examples.html
どこかの端末からつながっているコネクションを切りたいときなどに.
update 2023/1/1 (check on macOS Monterey, Homebrew 3.6.16)
basically, this is a copy of
https://gist.github.com/nkcr/6f5c6db4dccd3b32e8ba
followings are done on macOS Catalina
#!/bin/bash | |
# you also need to set this script in `pam.d/<what you want>`. | |
# for example, | |
# in file `/etc/pam.d/common-password` | |
# add following: | |
# | |
# session optional pam_exec.so /usr/local/bin/notify_login.sh | |
# | |
# the file names under the `pam.d` may differ in OS and version, |
This is NOT a way to illegally bypass a paywall.
This is for some people who have a access to university/organization account of some paywall pages (e.g., https://ieeexplore.ieee.org).
Also, this method requires a access of ssh login to some machines which has a valid domain.
<your_machine> -> <remote_machine> -> <website>
Basically, you need 2 steps.
#ref: https://pc.casey.jp/archives/153903095 | |
##!/bin/sh | |
#host_name="<your host>" | |
#message_tag="[WARNING]" | |
#disk_usage=`/bin/df / | /usr/bin/tail -1 | /bin/sed 's/^.* \([0-9]*\)%.*$/\1/'` | |
#slack_msg_head="${message_tag} ${host_name}" | |
#slack_msg_body="\`\`\`Disk usage ${disk_usage}%\`\`\`" |
like
https://stackoverflow.com/questions/55112345/conda-modulenotfound-after-installing-pytorch
which raise
from conda.cli import main
ModuleNotFoundError: No module named 'conda'
Install opencv4 from source
git clone https://github.com/opencv/opencv.git
cd opencv
mkdir build
cd build
cmake ../
make -j 8 # what ever you want
sudo make install
aaaaaaaaaa