- Apache Hadoop: MapReduce framework
- Cloudera: Hadoop support and tools
- Zookeeper: Distributed coordination
- Celery: Distributed task queue (Python)
- MongoDB: Document database
- 10gen: Company behind MongoDB
- Morphia: ORM / Object-Document Mapping for MongoDB
- Morphia Fork: Fork since the original Morphia is "dead"
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
DELETE my_index | |
PUT my_index | |
{ | |
"mappings": { | |
"my_type": { | |
"properties": { | |
"type": { | |
"type": "keyword" | |
} |
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
GET /raffle/_search | |
{ | |
"size": 1, | |
"query": { | |
"function_score": { | |
"functions": [ | |
{ | |
"random_score": { } | |
} | |
], |
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
Verifying that +xeraa is my blockchain ID. https://onename.com/xeraa |
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
# Returns a hash of localized paths for a given page | |
def localized_paths_for(page) | |
localized_paths = {} | |
(langs).each do |locale| | |
# Loop over all pages to find the ones using the same templates (proxied_to) for each language | |
sitemap.resources.select do |resource| | |
if resource.proxied_to == page.proxied_to && resource.metadata[:options][:lang] == locale | |
localized_paths[locale] = resource.url | |
break |
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
error_page 404 /assets/error-404.html; | |
error_page 500 /assets/error-500.html; | |
location / { | |
try_files $uri @silverstripe; | |
} | |
location @silverstripe { | |
fastcgi_keep_conn on; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; |
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
### Keybase proof | |
I hereby claim: | |
* I am xeraa on github. | |
* I am xeraa (https://keybase.io/xeraa) on keybase. | |
* I have a public key whose fingerprint is 9254 E53A BB94 A09A A698 522D A938 3B28 6A71 0E7D | |
To claim this, I am signing this object: |
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
error_page 404 /assets/error-404.html; | |
error_page 500 /assets/error-500.html; | |
location / { | |
try_files $uri @silverstripe; | |
} | |
location @silverstripe { | |
fastcgi_keep_conn on; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; |
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 | |
# Check if our important or publicly communicated URLs are available | |
set -e | |
URLS=( | |
"http://test.com" | |
"http://test.com/foo" | |
) |
- Download the JCE extension from http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
- Upload the files inside the archive to your private repository on Cloudbees forge ( /private/jce/ ) so that you have /private/jce/local_policy.jar,...
- On the Jenkins configuration page ([https://YourAccountName.ci.cloudbees.com/configure](https://.ci.cloudbees.com/configure) (use your real account name / subdomain) create a new JDK Installation and set JAVA_HOME to
$HOME/openjdk6.unlimited
(or any other version you want to use). - Add a Pre Step and add the following shell script. First, it copies the JDK version you are using to your home folder. Second, it patches your copy - this should copy local_policy.jar and US_export_policy.jar. Be sure to use your real account name / subdomain.
if