download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| 1. `vim /etc/syslog.conf` | |
| 2. Add to end of file: `cron.* /var/log/cron.log` | |
| 3. | |
| ``` | |
| sudo launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist | |
| sudo launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist | |
| ``` | |
| [where-is-the-cron-log-file-in-macosx-lion](http://apple.stackexchange.com/questions/38861/where-is-the-cron-log-file-in-macosx-lion) |
| #!/bin/sh | |
| # | |
| # redis - this script starts and stops the redis-server daemon | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Redis is a persistent key-value database | |
| # processname: redis-server | |
| # config: /etc/redis/redis.conf | |
| # config: /etc/sysconfig/redis | |
| # pidfile: /var/run/redis.pid |
| //set up env | |
| bin/awk '{print$3}' < /etc/redhat-release > /etc/yum/vars/full_releasever | |
| //contents of source.repo | |
| [base-source] | |
| name=CentOS-$full_releasever - Base source | |
| baseurl=http://vault.centos.org/$full_releasever/os/Source/ | |
| gpgcheck=1 | |
| gpgkey=http://vault.centos.org//RPM-GPG-KEY-CentOS-6 | |
| priority=1 |
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |
| # Create the Root CA private key | |
| ## ref> https://www.openssl.org/docs/manmaster/apps/genrsa.html | |
| openssl genrsa -out myRootCA.key 4096 | |
| # Generate the Root CA certificate signed with the private key | |
| ## ref> https://www.openssl.org/docs/manmaster/apps/req.html | |
| openssl req -x509 -new -nodes -key myRootCA.key -days 3650 -out myRootCA.pem | |
| # Country Name (2 letter code) [AU]:AU | |
| # State or Province Name (full name) [Some-State]:NSW |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| /* | |
| +----------------------------------------------------------------------+ | |
| | Zend Engine | | |
| +----------------------------------------------------------------------+ | |
| | Copyright (c) 1998-2015 Zend Technologies Ltd. (http://www.zend.com) | | |
| +----------------------------------------------------------------------+ | |
| | This source file is subject to version 2.00 of the Zend license, | | |
| | that is bundled with this package in the file LICENSE, and is | | |
| | available through the world-wide-web at the following url: | | |
| | http://www.zend.com/license/2_00.txt. | |
| #include <iostream> | |
| int sizeOfArray(int arr[]) { | |
| std::cout << "sizeOf array in func:" << sizeof(arr) << std::endl; | |
| std::cout << "sizeOf array[0] in func:" << sizeof(arr[0]) << std::endl; | |
| return sizeof(arr) / sizeof(arr[0]); | |
| } | |
| int main() { | |
| int arr[] = {1,2,3}; |
Located in alphabetical order (not prefer)
Cab), also designed as a more modern replacement, written in Cgolang)golang)Cgolang)