-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·353 lines (281 loc) · 13.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>bitHound</title>
<meta name="description" content="">
<meta name="author" content="bitHound">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="icon" href="img/symbol_colour.png" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/bithound.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<script src="http://localhost:35729/livereload.js?snipver=1"></script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section class="main-title" data-background="img/symbol_reversed.svg" data-background-size="150%">
<img src="img/fulllogo_reversed.svg" class="simple-img full-logo" />
<h3>I have to do WHAT to run this code?</h3>
<p>
<small>Presented by Gord Tanner</small><br />
<a href="https://www.bithound.io">www.bithound.io</a> / <a href="http://twitter.com/bithoundio">@bithoundio</a>
</p>
</section>
<section class="main-title" data-background="img/symbol_reversed.svg" data-background-size="150%">
<h1>Gord Tanner</h1>
<h3>Co-Founder / CTO</h3>
<h3>bitHound</h3>
<img src="img/duckie.jpg" class="" />
<h3>@gordtanner</h3>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>What do new people bring?</h2>
<img src="img/watermelon.jpeg" alt="">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Same issues with open or closed source projects</h2>
<img src="img/twins.png" alt="">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Nothing you don't know already</h2>
<img src="img/bueller.gif" alt="">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Where is your javascript?</h2>
<img src="img/nerds.jpg" alt="" >
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Welcome to the team</h2>
<img src="img/car.jpg" alt="">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<pre style="font-size: 90%">
git clone [email protected]:yourteam/project.git
</pre>
<h3>now what?</h3>
<img src="img/ripley.gif" alt="">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>First impressions matter</h2>
<img src="img/erw.jpg" alt="">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>New Machine</h2>
<img src="img/commodore.jpg" alt="" style="width: 200%">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Set up for success</h2>
<img src="img/bloodsportfail.gif" alt="" style="width:200%">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<img src="img/VampiresEverywhere2.jpg" alt="">
<aside class="notes">
Documentation:
- what is important
</aside>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>README.md</h2>
<img src="img/read.jpg" alt="" style="width:200%">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Whiteboard sessions</h2>
<img src="img/dance.png" alt="">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Command line tooling</h2>
<img src="img/wargames.jpg" alt="">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Code Comments</h2>
<img src="img/nerdscode.png" alt="">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Vagrant</h2>
<img src="img/asyouwish.gif" alt="">
<h3>Kind of a love story</h3>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h3>Multiple servers</h3>
<pre>
Vagrant.configure(2) do |config|
config.vm.define "app" do |app|
app.vm.box = "trusty64"
app.vm.provision "shell", path: "scripts/provision_app.sh"
app.vm.network "private_network", ip: "10.10.11.11"
end
config.vm.define "worker1" do |worker|
worker.vm.box = "trusty64"
worker.vm.provision "shell", path: "scripts/provision_worker.sh"
worker.vm.network "private_network", ip: "10.10.11.12"
end
config.vm.define "worker2" do |worker|
worker.vm.box = "trusty64"
worker.vm.provision "shell", path: "scripts/provision_worker.sh"
worker.vm.network "private_network", ip: "10.10.11.13"
end
end
</pre>
<aside class="notes">
So if you are building a distributed system, develop on a distributed system! Almost all virtualization environments
right now allow you define multiple VMs and private networks.
</aside>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h3>Hide the fact you are using Vagrant</h3>
<img src="img/hide.jpg" alt="">
<aside class="notes">
<ul>
<li>should feel like local development</li>
<li>port forwarding</li>
<li>host scripts</li>
<li>make it hard to mess up</li>
</ul>
</aside>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<pre style='font-size: 80%'>
#!/bin/bash
vagrant ssh --command "cd /vagrant && ./cmd.js $*"
</pre>
<aside class="notes">
Utility / proxy scripts to interact with your project inside the VM. You could call this a trampoline or a thunk, uh,
if you lived through the win16 to win32 transition. (I didn't, but I was just after that and still had to deal
with old developer documentation.
<br>
$* is just the parameter list that this program has been called with itself.
</aside>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<code style='font-size: 1.8em'>
vagrant ssh --command ""
</code>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<code style="font-size: 12em">$*</code>
</section>
<section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>No one expects perfection</h2>
<img src="img/bizzare.png" alt="" style="width:200%">
<aside class="notes">
<ul>
<li>mongo install and allow remote connections</li>
<li>configure NFS for linux and osx</li>
<li>git http.postBuffer hack</li>
<li>weird issue with zmq native bindings</li>
<li>per-user file limit</li>
<li>system clock drift</li>
</ul>
</aside>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<pre style="font-size: 90%">
apt-get install -y mongodb
perl 's/^bind_ip/#bind_ip/g' /etc/mongodb.conf
sudo service mongodb restart
</pre>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<pre style="font-size: 100%">
# Make sure we've got NFS handy.
if [ $(uname) == 'Linux' ]; then
apt-get install -y nfs-common
apt-get install -y nfs-kernel-server
apt-get install -y rpcbind
fi
</pre>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<pre style="font-size: 90%">
git config --global http.postBuffer 524288000
</pre>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<pre style="font-size: 100%">
# Fix the clock.
/etc/init.d/ntp stop
set +e
ntpdate pool.ntp.org
set -e
/etc/init.d/ntp start
</pre>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<pre style="font-size: 100%">
## Up our per-user file limit.
if [[ -d /etc/limits.d ]]; then
cp bh.conf /etc/limits.d/bh.conf
fi
</pre>
</section>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Nag your users</h2>
<img src="img/tests.gif" alt="">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Live Reload</h2>
<h3>I can't talk about this enough</h3>
<h3>nodemon, livereload, grunt-livereload, etc</h3>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Tests</h2>
<h3>More then just unit tests</h3>
<h3>How do you "test" the system</h3>
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<h2>Always keep learning</h2>
<img src="img/topgunclass.jpg" alt="" style="width:200%">
</section>
<section data-background="img/symbol_reversed.svg" data-background-size="70%" data-background-position="120%">
<img src="img/promo.png" alt="">
<a href="http://bithound.io">bithound.io</a>
</section>
</div>
</div>
<div class="footer">
<!--<img src="img/wordmark_grey_reversed.svg" class="simple-img wordmark" />-->
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
// Parallax scrolling
// parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg',
// parallaxBackgroundSize: '2100px 900px',
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
<!-- Live reload -->
</body>
</html>