This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
solr 6.1 and zookeeper | |
1. install solr via puppet | |
2. stop solr | |
3. install zookeeper | |
cd /cul/share | |
sudo wget http://apache.claz.org/zookeeper/stable/ | |
zookeeper-3.4.8.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# where 'dev' is the branch: | |
+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/dev:refs/remotes/origin/dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /path/to/server/solr-webapp/webapp/WEB-INF/web.xml | |
<filter> | |
<filter-name>cross-origin</filter-name> | |
<filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class> | |
<init-param> | |
<param-name>allowedOrigins</param-name> | |
<param-value>http://localhost*</param-value> | |
</init-param> | |
<init-param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl \ | |
--verbose \ | |
--request OPTIONS \ | |
http://localhost:3001/api/configuration/visitor \ | |
--header 'Origin: http://localhost:9292' \ | |
--header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \ | |
--header 'Access-Control-Request-Method: GET' | |
# http://nils-blum-oeste.net/cors-api-with-oauth2-authentication-using-rails-and-angularjs/#.UQJeLkp4ZyE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Header set Access-Control-Allow-Origin "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/controllers/application_controller.rb | |
# Add the following lines: | |
CUSTOM_LOGGER.info("info from custom logger") | |
CUSTOM_LOGGER.debug("debug from custom logger") | |
CUSTOM_LOGGER.error("error from custom logger") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws rds create-db-parameter-group --db-parameter-group-name mysql-utf8 --db-parameter-group-family mysql5.6 --description "MySQL 5.6 configured for UTF-8" | |
aws rds modify-db-parameter-group --db-parameter-group-name mysql-utf8 \ | |
--parameters="ParameterName=character_set_server, ParameterValue=utf8, ApplyMethod=immediate" \ | |
--parameters="ParameterName=character_set_client, ParameterValue=utf8, ApplyMethod=immediate" \ | |
--parameters="ParameterName=character_set_results, ParameterValue=utf8, ApplyMethod=immediate" \ | |
--parameters="ParameterName=collation_server, ParameterValue=utf8_unicode_ci, ApplyMethod=immediate" \ | |
--parameters="ParameterName=collation_connection, ParameterValue=utf8_unicode_ci, ApplyMethod=immediate" | |
# Apply to an existing instance (followed by a reboot): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> /opt/wakari/wakari-server/var/log/wakari/worker.log <== | |
20618 | 2015-11-23 20:24:42.388 ERROR: Job 5653bbe1dbe4b150364da2d8 exited with exception: | |
Job Log: | |
| Starting Job 5653bbe1dbe4b150364da2d8 | |
| Created Provisioner: Provisioner | |
| * Actor: wakari | |
| * Owner: wakari | |
| * Project: PDT2 | |
| Posting data to u'http://10.250.19.114:8080/api/start-project' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BRAND: Anaconda Server | |
CDN: /static | |
LDAP: | |
BIND_AUTH: password | |
BIND_DN: cn=Manager,dc=testcio,dc=com | |
OPTIONS: {OPT_X_TLS_CERTFILE: /etc/ssl/certs/openldap.testcio.com.crt, OPT_X_TLS_DEMAND: true, | |
OPT_X_TLS_NEVER: true} | |
URI: ldaps://openldap.testcio.com | |
USER_SEARCH: {base: 'dc=testcio,dc=com', filter: uid=%(username)s} | |
LOGGING: |