- https://medium.com/making-instapaper/instapaper-outage-cause-recovery-3c32a7e9cc5f#.8wd4ufmw5
- https://blogs.dropbox.com/tech/2014/01/outage-post-mortem/
- https://groups.google.com/forum/#!topic/google-appengine/p2QKJ0OSLc8
- https://about.gitlab.com/2017/02/10/postmortem-of-database-outage-of-january-31/
- https://blog.cloudflare.com/todays-outage-post-mortem-82515/
- https://github.com/blog/1759-dns-outage-post-mortem
- https://blog.travis-ci.com/2017-02-07-jan-31-macos-outage-postmortem
- http://stackstatus.net/post/147710624694/outage-postmortem-july-20-2016
| import collections, math, random, numpy | |
| import tensorflow as tf | |
| from sklearn.cross_validation import train_test_split | |
| sentences = """hated the movie it was stupid;\ni hated it so boring;\nawesome the movie was inspiring;\nhated it what a disaster;\nwe hated the movie they were idiotic;\nhe was stupid, hated her;\nstupid movie is boring;\ninspiring ourselves, awesome;\ninspiring me, brilliant;\nwe hated it they were rubbish;\nany inspiring movie is amazing;\nit was stupid what a disaster;\nits stupid, rubbish;\nstupid, idiotic!;\nawesome great movie;\nboring, must be hated;\nhe was boring the movie was stupid;\nboring movie was a disaster;\nboth boring and rubbish;\nso boring and idiotic;\ngreat to amazing;\ndisaster, more than hated;\nbetween disaster and stupid;\ndisaster, so boring;\nawesome movie, brilliant;\ntoo awesome she was amazing;\nhe was brilliant loved it;\ndisaster, only idiotic;\nrubbish movie hated him;\nit was rubbish, why so stupid?;\nrubbish, too boring;\nrubbish, disaster!;\nrubbish, very |
| CREATE TRIGGER person_notify AFTER INSERT OR UPDATE OR DELETE ON income | |
| FOR EACH ROW EXECUTE PROCEDURE notify_trigger( | |
| 'id', | |
| 'email', | |
| 'username' | |
| ); | |
| CREATE TRIGGER income_notify AFTER INSERT OR UPDATE OR DELETE ON income | |
| FOR EACH ROW EXECUTE PROCEDURE notify_trigger( | |
| 'id', |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
| upstream websocket { | |
| server localhost:3000; | |
| } | |
| server { | |
| listen 80; | |
| server_name localhost; | |
| access_log /var/log/nginx/websocket.access.log main; |
| #!/bin/sh | |
| echo Install all AppStore Apps at first! | |
| # If you are looking into a solution to automate AppStore installs, | |
| # check mas https://github.com/argon/mas | |
| # I installed XCode, Simplenote, Clocks, Stuffit Expander, Cloudapp, Forklift. | |
| read -p "Press any key to continue... " -n1 -s | |
| echo '\n' | |
| #Source code with the blog post at http://monik.in/a-noobs-guide-to-implementing-rnn-lstm-using-tensorflow/ | |
| import numpy as np | |
| import random | |
| from random import shuffle | |
| import tensorflow as tf | |
| # from tensorflow.models.rnn import rnn_cell | |
| # from tensorflow.models.rnn import rnn | |
| NUM_EXAMPLES = 10000 |
Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.
"Don't Use Manual Procedures".
This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.
The trouble was that I hadn't much of an idea how to actually go
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
| # Add field | |
| echo '{"hello": "world"}' | jq --arg foo bar '. + {foo: $foo}' | |
| # { | |
| # "hello": "world", | |
| # "foo": "bar" | |
| # } | |
| # Override field value | |
| echo '{"hello": "world"}' | jq --arg foo bar '. + {hello: $foo}' | |
| { |