-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
367 lines (311 loc) · 20.5 KB
/
index2.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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home | frommelmak</title>
<meta name="author" content="Marcos Martinez">
<meta name="generator" content="Pelican v4.2.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" integrity="sha512-oc9+XSs1H243/FRN9Rw62Fn8EtxjEYWHXRvjS43YtueEewbS6ObfXcJNyohjHqVKFPoXXUxwc+q1K7Dee6vv9g==" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css" integrity="sha512-+EoPw+Fiwh6eSeRK7zwIKG2MA8i3rV/DGa3tdttQGgWyatG/SkncT53KHQaS5Jh9MNOT3dmFL0FjTY08And/Cw==" crossorigin="anonymous">
<link rel="stylesheet" href="https://frommelmak.com/theme/css/main.min.css?3fd22780">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.3/js/bootstrap.bundle.min.js" integrity="sha512-iceXjjbmB2rwoX93Ka6HAHP+B76IY1z0o3h+N1PeDtRSsyeetU3/0QKJqGyPJcX63zysNehggFwMC/bi7dvMig==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js" integrity="sha512-IsNh5E3eYy3tr/JiX2Yx4vsCujtkhwl7SLqgnwLNgf04Hrt9BT9SXlLlZlWx+OK4ndzAoALhsMNcCmkggjZB1w==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fitvids/1.2.0/jquery.fitvids.min.js" integrity="sha512-/2sZKAsHDmHNoevKR/xsUKe+Bpf692q4tHNQs9VWWz0ujJ9JBM67iFYbIEdfDV9I2BaodgT5MIg/FTUmUv3oyQ==" crossorigin="anonymous"></script>
<script src="https://frommelmak.com/theme/js/main.min.js?86e1c044"></script>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#ffc40d">
<meta name="theme-color" content="#ffffff">
<!-- Feeds -->
</head>
<body class="bg-transparent pt-4">
<div class="container">
<a href="https://frommelmak.com" class="avatar-container float-left mx-4">
<div class="avatar animate ">
<div class="side"><img src="images/avatar.png" class="img-fluid"></div>
<div class="side back text-center pt-2 px-1 small">
Alien Life Form
</div>
</div>
</a>
<h1>
<a href="https://frommelmak.com" class="text-dark text-decoration-none">frommelmak</a>
<small class="text-secondary"><small>Yet another Melmacian interested in technology...</small></small>
</h1>
<nav class="navbar d-block navbar-expand-lg navbar-light bg-light shadow rounded-lg">
<a class="navbar-brand d-none" href="https://frommelmak.com" title="Yet another Melmacian interested in technology...">frommelmak</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#plumage-navbar-collapse-1" aria-controls="plumage-navbar-collapse-1" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="plumage-navbar-collapse-1">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item ">
<a class="nav-link" href="/">
Home
</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="https://frommelmak.com/pages/about.html">
About
</a>
</li>
</ul>
</div>
</nav>
</div>
<div class="container mt-5">
<div class="row">
<div class="
col-md-12
">
</div>
</div>
<div class="row">
<div id="content" role="main" class="
col-md-12
">
<h2>Articles</h2>
<article>
<header>
<h2><a href="https://frommelmak.com/how-to-convert-your-server-into-a-video-streaming-server.html" rel="bookmark" title="Permalink to How to convert your server into a video streaming server">How to convert your server into a video streaming server</a></h2>
</header>
<div><p>Dependencies:</p>
<div class="highlight pygments-style-monokai rounded shadow-sm mb-3"><pre><span></span><code><span class="go">apt-get install vlc-nox</span>
</code></pre></div>
<p>File to stream:</p>
<div class="highlight pygments-style-monokai rounded shadow-sm mb-3"><pre><span></span><code><span class="go">cvlc -v file.mp4 --sout '#standard{access=http,mux=asf,dst=0.0.0.0:8080}'</span>
</code></pre></div>
<p>Authenticated Stream to Stream (without audio)</p>
<div class="highlight pygments-style-monokai rounded shadow-sm mb-3"><pre><span></span><code><span class="go">cvlc -v http://x.x.x.x:pppp/test --no-sout-audio --sout-http-user foo --sout-http-pwd foopass --sout '#standard{access=http,mux=asf,dst …</span></code></pre></div></div>
<div><a class="btn btn-primary" href="https://frommelmak.com/how-to-convert-your-server-into-a-video-streaming-server.html"><strong>➟ Read more</strong></a></div>
</article>
<hr>
<article>
<header>
<h2><a href="https://frommelmak.com/how-to-migrate-from-lamp-to-nginx-php-fpm.html" rel="bookmark" title="Permalink to How to migrate from LAMP to Nginx + PHP-FPM">How to migrate from <span class="caps">LAMP</span> to Nginx + <span class="caps">PHP</span>-<span class="caps">FPM</span></a></h2>
</header>
<div><p>This blog has been migrated from Apache2 + mod_php to Nginx + <span class="caps">PHP</span>-<span class="caps">FPM</span>. In this entry I’m going to explain the whole process (just for fun).</p>
<p>The easiest way is just install the precompiled packages from <a href="">www.dotdeb.org</a> as explained <a href="http://www.codernotes.com/2011/7/install-nginx-and-php-fpm-on-debian-6-squeeze-2/">here</a>.
Unfortunatelly my blog isn’t compatible with the …</p></div>
<div><a class="btn btn-primary" href="https://frommelmak.com/how-to-migrate-from-lamp-to-nginx-php-fpm.html"><strong>➟ Read more</strong></a></div>
</article>
<hr>
<article>
<header>
<h2><a href="https://frommelmak.com/vpn-using-ssh.html" rel="bookmark" title="Permalink to VPN using SSH"><span class="caps">VPN</span> using <span class="caps">SSH</span></a></h2>
</header>
<div><p>Las versiones recientes del servidor OpenSSH permiten montar una <span class="caps">VPN</span> utilizando una conexinSSH. Esto nos permite, por ejemplo, tener acceso a todos los puertos del servidor incluso en aquellos casos en los que sólo nos dan acceso al puerto de <span class="caps">SSH</span>.</p>
<p>Para montar una <span class="caps">VPN</span> utilizando el servidorSSHen Debian haremos …</p></div>
<div><a class="btn btn-primary" href="https://frommelmak.com/vpn-using-ssh.html"><strong>➟ Read more</strong></a></div>
</article>
<hr>
<article>
<header>
<h2><a href="https://frommelmak.com/redis-cli-basics.html" rel="bookmark" title="Permalink to redis-cli basics">redis-cli basics</a></h2>
</header>
<div><p>Redis es un servidor de datos Nosql (clave-valor) en memoria similar a memcached. Redis puede almacenar -además de cadenas de texto- estructuras ms complejas como: hashes, lists, sets u sorted sets. Es capaz de realizar diferentes tipos de operaciones atómicas sobre estas estructuras de datos, disponer de persistencia (pese a …</p></div>
<div><a class="btn btn-primary" href="https://frommelmak.com/redis-cli-basics.html"><strong>➟ Read more</strong></a></div>
</article>
<hr>
<article>
<header>
<h2><a href="https://frommelmak.com/how-to-use-gmail-popsmtp-services-from-unsecure-clients.html" rel="bookmark" title="Permalink to How to use Gmail POP/SMTP services from unsecure clients">How to use Gmail <span class="caps">POP</span>/<span class="caps">SMTP</span> services from unsecure clients</a></h2>
</header>
<div><p>Sometimes you may need to send or retrieve email notifications using <span class="caps">SMTP</span> or <span class="caps">POP</span> Gmail services, but your client does not support <span class="caps">SSL</span> connections. In such cases you can use a <span class="caps">SSL</span> proxy tunnel such as stunnel.</p>
<p>stunnel is available as a Debian package, and probably in other modern Linux …</p></div>
<div><a class="btn btn-primary" href="https://frommelmak.com/how-to-use-gmail-popsmtp-services-from-unsecure-clients.html"><strong>➟ Read more</strong></a></div>
</article>
<hr>
<article>
<header>
<h2><a href="https://frommelmak.com/building-couchdb-from-sources-in-rhel6.html" rel="bookmark" title="Permalink to Building CouchDB from sources in RHEL6">Building CouchDB from sources in <span class="caps">RHEL6</span></a></h2>
</header>
<div><p>Install Erlang from sources:</p>
<p>Prerequisites: <code>unixODBC-devel-2.2.14-11.el6.i686.rpm</code></p>
<div class="highlight pygments-style-monokai rounded shadow-sm mb-3"><pre><span></span><code><span class="go">wget http://www.erlang.org/download/otp_src_R14B02.tar.gz</span>
<span class="go">tar zxvf otp_src_R14B02.tar.gz</span>
<span class="go">cd otp_src_R14B02 LANG=C; export LANG</span>
<span class="go">./configure --prefix=/opt/erlang</span>
<span class="go">make</span>
<span class="go">make install</span>
</code></pre></div>
<p>Install Mozilla SpiderMonkey from sources:</p>
<p>Prerequisties: <code>libicu-devel-4.2.1-9.el6.i686.rpm …</code></p></div>
<div><a class="btn btn-primary" href="https://frommelmak.com/building-couchdb-from-sources-in-rhel6.html"><strong>➟ Read more</strong></a></div>
</article>
<hr>
<article>
<header>
<h2><a href="https://frommelmak.com/tareas-frecuentes-con-lvm.html" rel="bookmark" title="Permalink to Tareas frecuentes con LVM">Tareas frecuentes con <span class="caps">LVM</span></a></h2>
</header>
<div><p>Un par de apuntes rápidos sobre <span class="caps">LVM</span>:</p>
<p>Juntar varios discos o particiones en un único volumen lógico:</p>
<div class="highlight pygments-style-monokai rounded shadow-sm mb-3"><pre><span></span><code><span class="go">pvcreate /dev/sdb /dev/sdc</span>
<span class="go">vgcreate -s 16M data /dev/sdb /dev/sdc</span>
<span class="go">vgdisplay</span>
<span class="go">lvcreate -l 25600 -n storage data</span>
<span class="go">mkfs.ext3 /dev/data/storage</span>
</code></pre></div>
<p>Expandir en <span class="caps">100GB</span> un <span class="caps">LV</span> y el filesystem …</p></div>
<div><a class="btn btn-primary" href="https://frommelmak.com/tareas-frecuentes-con-lvm.html"><strong>➟ Read more</strong></a></div>
</article>
<hr>
<article>
<header>
<h2><a href="https://frommelmak.com/configurar-fail2ban-para-notificaciones-por-email.html" rel="bookmark" title="Permalink to Configurar fail2ban para notificaciones por email">Configurar fail2ban para notificaciones por email</a></h2>
</header>
<div><p>Por defecto fail2ban no notifica los baneos al servicio ssh por email. En las ultimas versiones (0.8.4) la config ha cambiado sustancialmente. Para habilitar el envio de emails hemos de crear el fichero <code>jail.local</code> en <code>/etc/fail2ban</code> con este contenido.</p>
<div class="highlight pygments-style-monokai rounded shadow-sm mb-3"><pre><span></span><code><span class="go">[ssh]action = %(action_mw)s</span>
</code></pre></div></div>
<div><a class="btn btn-primary" href="https://frommelmak.com/configurar-fail2ban-para-notificaciones-por-email.html"><strong>➟ Read more</strong></a></div>
</article>
<hr>
<article>
<header>
<h2><a href="https://frommelmak.com/authenticated-couchdb-admin-with-curl.html" rel="bookmark" title="Permalink to Authenticated Couchdb admin with Curl">Authenticated Couchdb admin with Curl</a></h2>
</header>
<div><p>Los principales parámetros de configuración de Couchdb se puede consultar y administrar mediante la interfaz web de Couchdb. No obstante hay algunas opciones interesantes que no están disponibles en dicha interfaz. Para cambiarlas es necesario modificar los valores directamente mediante un <span class="caps">PUT</span> <span class="caps">HTTP</span>. Para ello utilizaremos <code>curl</code>:</p>
<p>Por ejemplo, cambiar …</p></div>
<div><a class="btn btn-primary" href="https://frommelmak.com/authenticated-couchdb-admin-with-curl.html"><strong>➟ Read more</strong></a></div>
</article>
<hr>
<article>
<header>
<h2><a href="https://frommelmak.com/couchdb-auth.html" rel="bookmark" title="Permalink to Couchdb auth">Couchdb auth</a></h2>
</header>
<div><p>Ojito con la autenticacin en Couchdb 0.11.0. Si la queremos deshabilitar, haremos esto:</p>
<div class="highlight pygments-style-monokai rounded shadow-sm mb-3"><pre><span></span><code><span class="gp">#</span><span class="o">[</span>admins<span class="o">]</span>
</code></pre></div>
<p><span class="caps">NO</span> <span class="caps">ESTO</span>!!!</p>
<div class="highlight pygments-style-monokai rounded shadow-sm mb-3"><pre><span></span><code><span class="gp">#</span><span class="o">[</span>admins<span class="o">]</span>
<span class="gp">#</span><span class="nv">user</span> <span class="o">=</span> -hashedlalkasdlfk....
</code></pre></div>
<p>Lo segundo hace que al arrancar couchdb de un error que hace que couchdb muera. Al rato se reinicia automaticamente (esto lo hace couchdb de saque) <em>respawn</em>. Por lo …</p></div>
<div><a class="btn btn-primary" href="https://frommelmak.com/couchdb-auth.html"><strong>➟ Read more</strong></a></div>
</article>
<hr>
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item">
<a class="page-link" href="https://frommelmak.com/index.html" aria-label="Previous" rel="prev">
<span aria-hidden="true">←</span>
</a>
</li>
<li class="page-item ">
<a class="page-link" href="https://frommelmak.com/index.html" rel="
first prev ">
1
</a>
</li>
<li class="page-item active" aria-current="page">
<a class="page-link" href="https://frommelmak.com/index2.html" rel="
">
2
<span class="sr-only">(current)</span>
</a>
</li>
<li class="page-item ">
<a class="page-link" href="https://frommelmak.com/index3.html" rel="
next ">
3
</a>
</li>
<li class="page-item disabled"><span class="page-link">…</span></li>
<li class="page-item ">
<a class="page-link" href="https://frommelmak.com/index7.html" rel="
">
7
</a>
</li>
<li class="page-item ">
<a class="page-link" href="https://frommelmak.com/index8.html" rel="
last ">
8
</a>
</li>
<li class="page-item">
<a class="page-link" href="https://frommelmak.com/index3.html" aria-label="Next" rel="next">
<span aria-hidden="true">→</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="container-fluid mt-5 p-4 small">
<div class="row mx-5">
<div class="col-md-2">
<h6>Social</h6>
<ul class="list-unstyled">
<li><a href="http://twitter.com/frommelmak">
<i class="fab fa-twitter fa-fw"></i>
@frommelmak
</a></li>
</ul>
</div>
<div class="col-md-2">
<h6>Links</h6>
<ul class="list-unstyled">
<li><a href="http://linkedin.com/in/marcosmartinezjimenez">
<i class="fab fa-linkedin fa-fw"></i>
LinkedIn
</a></li>
<li><a href="http://github.com/frommelmak">
<i class="fab fa-github fa-fw"></i>
GitHub
</a></li>
<li><a href="http://www.youtube.com/user/melmak">
<img src="https://www.google.com/s2/favicons?domain=www.youtube.com" width="16" height="16" class="link-icon" alt="www.youtube.com icon">
Youtube
</a></li>
</ul>
</div>
<div class="col-md-2">
<h6>Browse content by</h6>
<ul class="list-unstyled">
<li><a href="https://frommelmak.com/categories/index.html"><i class="fas fa-th fa-fw"></i> Categories</a></li>
<li><a href="https://frommelmak.com/archives/index.html"><i class="far fa-calendar-alt fa-fw"></i> Dates</a></li>
<li><a href="https://frommelmak.com/tags/index.html"><i class="fas fa-tags fa-fw"></i> Tags</a></li>
</ul>
</div>
<div class="col-md-2 text-muted">
<h6>Copyright notice</h6>
<p class="small">
© Copyright
2005-2020
Marcos Martinez.
</p>
</div>
<div class="col-md-2 text-muted">
<h6>Disclaimer</h6>
<p class="small">
All opinions expressed in this site are my own
personal opinions and are not endorsed by, nor
do they represent the opinions of my previous,
current and future employers or any of its
affiliates, partners or customers.
</p>
</div>
<div class="col-md-2">
</div>
</div>
<div class="row mt-3">
<div class="offset-3 col-6 small text-muted text-center">
Site generated by <a class="text-dark" href="https://getpelican.com">Pelican</a>.<br>
<a class="text-dark" href="https://github.com/kdeldycke/plumage">Plumage</a>
theme by <a class="text-dark" href="https://kevin.deldycke.com">Kevin Deldycke</a>.
</div>
<div class="col-3 text-right d-flex flex-column">
<a class="mt-auto" href="#"><i class="fas fa-arrow-up"></i> Back to top</a>
</div>
</div>
</footer>
</body>
</html>