- create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf- edit /etc/redis-xxx.conf, illustrated as below
...| ### USAGE | |
| ### | |
| ### ./ElasticSearch.sh 1.5.0 will install Elasticsearch 1.5.0 | |
| ### ./ElasticSearch.sh 1.4.4 will install Elasticsearch 1.4.4 | |
| ### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
| ### | |
| ### CLI options Contributed by @janpieper | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch | |
| ### ElasticSearch version |
$ cp /etc/redis.conf /etc/redis-xxx.conf...| def get(self, request, *args, **kwargs): | |
| # def data(): | |
| # for i in xrange(10): | |
| # csvwriter.writerow([i,"a","b","c"]) | |
| # data = read_and_flush() | |
| # yield data | |
| def stream_response_generator(): | |
| for x in range(1,11): | |
| yield "%s\n" % x # Returns a chunk of the response to the browser | |
| time.sleep(1) |
| wget -m -p -E -k -K --user-agent="Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100921 Firefox/4.0b7pre" -np "http://example.com" |
| #switch version | |
| pyenv global 2.7.5 | |
| #check version | |
| python --version | |
| 2.7.5 | |
| #install version | |
| pyenv install 2.7.5 |
| CREATE DATABASE `mydb` CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| GRANT ALL ON `mydb`.* TO `username`@localhost IDENTIFIED BY 'password'; | |
| FLUSH PRIVILEGES; |
| # This is the ssh client system-wide configuration file. See | |
| # ssh_config(5) for more information. This file provides defaults for | |
| # users, and the values can be changed in per-user configuration files | |
| # or on the command line. | |
| # Configuration data is parsed as follows: | |
| # 1. command line options | |
| # 2. user-specific file | |
| # 3. system-wide file | |
| # Any configuration value is only changed the first time it is set. |
| #!/bin/bash | |
| sudo mount -t cifs //192.168.1.10/pathTo_GIT /mnt/share -o username=myUsername,password=myPassword |