#elasticsearch Crash Course!
- A way to search... things
- A way to search your data in terms of natural language, and so much more
- A distributed version of lucene with a JSON API.
- A fancy clustered database
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
listen l1 | |
bind 0.0.0.0:80 | |
mode tcp | |
timeout connect 4000 | |
timeout client 180000 | |
timeout server 180000 | |
server srv1 192.168.1.1:80 | |
global | |
user "nobody" |
This is my response to an email asking about Domain-Driven Design in golang project.
Thank you for getting in touch. Below you will find my thoughts on how golang works with DDD, changing it. This is merely a perception of how things worked out for us in a single project.
That project has a relatively well-known domain. My colleagues on this project are very knowledgeable, thoughtful and invested in quality design. The story spelled out below is a result of countless hours spent discussing and refining the approach.
Conclusions could be very different, if there was a different project, team or a story-teller.
/* | |
Target Server Type : MYSQL | |
Target Server Version : 50505 | |
File Encoding : 65001 | |
Date: 2015-03-05 14:23:53 | |
*/ | |
SET FOREIGN_KEY_CHECKS=0; |
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |
### your_cronjob.sh #### | |
btc=$(curl -s http://api.coindesk.com/v1/bpi/currentprice.json | python -c "import json, sys; print(int(json.load(sys.stdin)['bpi']['USD']['rate'].replace(',','').split('.')[0] ))") | |
ALERT_BTC=3000 | |
if [ $(($btc + 1)) -gt $ALERT_BTC ]; | |
then | |
echo "btc is greater than $ALERT_BTC"; | |
push "BTC value is greater then $ALERT_BTC" | |
fi; |