I think grep man is easy way.
This way is maybe not perfect but maybe not wrong.
For examole Mac OS has BSD commands by default.
| # 清华大学: | |
| cd "$(brew --repo)" | |
| git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git | |
| cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" | |
| git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git | |
| # 手动修改 bottles 地址: | |
| export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles | |
| # 或: |
Calibre is a powerful cross-platform, open source, ebook manager and editing platform. Its calibre-server component can be used to publish an e-book library on a local network. While you can launch calibre-server as a desktop application, it can also be run as a daemon on a headless Linux server.
This tutorial on setting up calibre-server using Ubuntu 14.04 is very good, but dated.
| # This gist gives instructions to build a basic deb package of netatalk-3.1.11 using checkinstall on Ubuntu 18.04. | |
| # With the idea being that you build the deb on your build server and install from the resulting deb in production. | |
| # Given that the deb is packaged using checkinstall with basic options, think home use, not real production. | |
| # Note that this build does not provide the spotlight feature. | |
| # The tracker packages have been left out as the intent was to provide TimeMachine functionality only. | |
| #------------------------------------------------------------ | |
| # STEP ONE - Make the Netatalk deb on a build machine |
The purpose of this short howto is to show you how to:
openconnect [1] to connect to an enterprise cisco anyconnect endpointUsually VPN administrators will puth the default route to the users, so that all user traffic is routed through the vpn connection. This is to address the various security concerns around compromised user computers bridging external internet traffic into the secure VPN network.
While the VPN administrator can push routes to the clients, the client can ignore these default routes and establish client side routing so that only the required A.B.C.D/E network is routed through the VPN. All other traffic will still use the clients default route and default outbound internet connection.
The purpose of this short howto is to show you how to:
openconnect [1] to connect to an enterprise cisco anyconnect endpointUsually VPN administrators will puth the default route to the users, so that all user traffic is routed through the vpn connection. This is to address the various security concerns around compromised user computers bridging external internet traffic into the secure VPN network.
While the VPN administrator can push routes to the clients, the client can ignore these default routes and establish client side routing so that only the required A.B.C.D/E network is routed through the VPN. All other traffic will still use the clients default route and default outbound internet connection.
| # Download installers | |
| mkdir ~/Downloads/nvidia | |
| cd ~/Downloads/nvidia | |
| wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run | |
| wget http://us.download.nvidia.com/XFree86/Linux-x86_64/384.59/NVIDIA-Linux-x86_64-384.59.run | |
| sudo chmod +x NVIDIA-Linux-x86_64-384.59.run | |
| sudo chmod +x cuda_8.0.61_375.26_linux-run | |
| ./cuda_8.0.61_375.26_linux-run -extract=~/Downloads/nvidia/ | |
| # Uninstall old stuff | |
| sudo apt-get --purge remove nvidia-* |
| """ | |
| __name__ = predict.py | |
| __author__ = Yash Patel | |
| __description__ = Full prediction code of OpenAI Cartpole environment using Keras | |
| """ | |
| import gym | |
| import numpy as np | |
| from keras.models import Sequential | |
| from keras.layers import Dense, Dropout |