For homebrew version 0.9.5.
brew -v # => Homebrew 0.9.5
Install the current version of mysql.
# Install current mysql version
brew install mysql
| # 1. put frpc and frpc.ini under /usr/local/frpc/ | |
| # 2. put this file (frpc.service) at /etc/systemd/system | |
| # 3. run `sudo systemctl daemon-reload && sudo systemctl enable frpc && sudo systemctl start frpc` | |
| # Then we can manage frpc with `sudo service frpc {start|stop|restart|status}` | |
| # See also: https://nosame.net/use-frp-to-reverse-proxy-your-nas/ | |
| # Alternative for server: | |
| # - Offical: https://github.com/fatedier/frp/blob/a4cfab6/conf/systemd/frpc%40.service | |
| [Unit] |
| #! /bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: dns-sync | |
| # Required-Start: | |
| # Required-Stop: | |
| # Default-Start: S | |
| # Default-Stop: | |
| # Short-Description: Synchronizes /etc/resolv.conf in WLS with Windows DNS - Matthias Brooks | |
| ### END INIT INFO |
| /** | |
| * Based off of the Lucene prolog parser in the wordnet contrib package within the | |
| * main Lucene project. It has been modified to remove the Lucene bits and generate | |
| * a synonyms.txt file suitable for consumption by Solr. The idea was mentioned in | |
| * a sidebar of the book Solr 1.4 Enterprise Search Server by Eric Pugh. | |
| * | |
| * @see <a href="http://lucene.apache.org/java/2_3_2/lucene-sandbox/index.html#WordNet/Synonyms">Lucene Sandbox WordNet page</a> | |
| * @see <a href="http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/contrib/wordnet/">SVN Repository of the WordNet contrib</a> | |
| * @see <a href="https://www.packtpub.com/solr-1-4-enterprise-search-server/book">Solr 1.4 Enterprise Search Server Book</a> | |
| */ |
| #!/bin/bash | |
| if [[ -z $(grep dockerhost /etc/hosts) ]] | |
| then | |
| echo `/sbin/ip route|awk '/default/ { print $3 }'` dockerhost >> /etc/hosts | |
| fi |