-
-
Save e3matheus/ec914adec6b95f8aacc6 to your computer and use it in GitHub Desktop.
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
<section data-background-transition='zoom' data-transition='concave' data-background='http://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'> | |
<h1>Your logs are not only for debugging</h1> | |
<h2>Part 2: Use cases</h2> | |
</section> | |
<section data-background-transition='zoom' data-transition='linear'> | |
<h1>What to do?</h1> | |
<h2>Format your logs</h2> | |
</section> | |
<section data-background-transition='zoom' data-transition='linear'> | |
<h1>Let's see an example</h1> | |
</section> | |
<section> | |
<h2>Heroku Router</h2> | |
<pre class='fragment grow'><code contenteditable> | |
at=info method=GET path="/api/terminals.json?q=c" fwd="201.127.220.150" host=www.reserbus.mx request_id=bfac49de-cf37-4caf-9094-587f7dd6f4eb dyno=web.2 connect=1ms service=42ms status=200 bytes=1565 | |
</code></pre> | |
</section> | |
<section> | |
<h2>Search by IP</h2> | |
<pre class='fragment grow'><code contenteditable> | |
fwd=187.193.105.101 | |
</code></pre> | |
</section> | |
<section> | |
<h2>Set up alerts</h2> | |
<pre class='fragment grow'><code contenteditable> | |
at=info method=GET path="/api/terminals.json?q=c" fwd="201.127.220.150" host=www.reserbus.mx request_id=bfac49de-cf37-4caf-9094-587f7dd6f4eb dyno=web.2 connect=1ms service=42ms status=200 bytes=1565 | |
</code></pre> | |
</section> | |
<section> | |
<h3>See all calls by IP</h3> | |
<p class='fragment'>Include your own GitHub application keys if you plan on making more than 60 requests in 2 hours:</p> | |
<pre class='fragment '><code contenteditable>docker run -e "GH_CLIENT_SECRET=11becbb840e0ff7414b19104e9e797556498fc3f" -e "GH_CLIENT_ID=639ffe9fd9dcc4f6eb4b" ryanj/gist-reveal.it</code></pre> | |
</section> | |
<section> | |
<h3>Built-in Analytics</h3> | |
<p class='fragment'>Include your own GA-TRACKER key:</p> | |
<pre class='fragment'><code contenteditable>docker run -e "GA_TRACKER=UA-12345678" ryanj/gist-reveal.it</code></pre> | |
</section> | |
<section id='openshift'> | |
<h3>Hosting on OpenShift</h3> | |
<p>You can launch this application on OpenShift in a single command:</p> | |
<pre class='fragment'><code contenteditable>rhc app create gistreveal nodejs-0.10 \ | |
--from code=http://github.com/ryanj/gist-reveal.it \ | |
DEFAULT_GIST=YOUR_DEFAULT_GIST_ID \ | |
GH_CLIENT_SECRET=YOUR_GH_CLIENT_SECRET \ | |
GH_CLIENT_ID=YOUR_GH_CLIENT_ID \ | |
REVEAL_SOCKET_SECRET=0P3N-S0URC3 \ | |
GA_TRACKER=YOUR_GA_TRACKER</code></pre> | |
<p class='fragment'>Or, <a href="https://openshift.redhat.com/app/console/application_types/custom?name=reveal&initial_git_url=https%3A%2F%2Fgithub.com/ryanj/gist-reveal.it.git&cartridges[]=nodejs-0.10">click here to launch on the web!</a></p> | |
<p class='fragment'>Then, use the <code>rhc env set</code> command to publish your application config and keys to the system environment.</p> | |
</section> | |
</section> | |
<section data-transition='concave'> | |
<section> | |
<h2>Broadcasting Your Slide Transitions</h2><h1 class='fragment grow'>with Socket.IO</h1> | |
<pre class='fragment'><code contenteditable>docker run -e "REVEAL_WEB_HOST=YOUR_HOSTNAME_HERE" -e "REVEAL_SOCKET_SECRET=0P3N-S0URC3" ryanj/gist-reveal.it</code></pre> | |
<p>Configure your browser as a presentation device by setting the same key in your browser's localStorage</p> | |
<pre class='fragment'><code contenteditable>localStorage.secret="YOUR_SECRET_KEY"</code></pre> | |
</section> | |
<section data-transition='zoom' data-background-transition='zoom'> | |
<p>Be sure to use two different devices or brower types when testing your broadcasting relay<br/> <span class='fragment'>(FireFox vs. Chrome, desktop vs. mobile, etc.)</span></p> | |
</section> | |
</section> | |
<section> | |
<h1>THE END</h1> | |
<h3>Revaljs by Hakim El Hattab / hakim.se</h3> | |
<h3><a href="http://gist-reveal.it">gist-reveal.it</a> by <a href="http://twitter.com/ryanj/">ryanj</a> and <a href="https://github.com/fkautz">fkautz</a></h3> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment