-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
199 lines (182 loc) · 8.47 KB
/
Copy pathindex.html
File metadata and controls
199 lines (182 loc) · 8.47 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="google-site-verification" content="VjZ5n7D61YqcBjoTPjcL1ABrnu6sC5WDe4vPd5yofgw" />
<title>kthxbye was already taken</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/github-light.css">
<meta name="viewport" content="width=device-width">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header>
<h1>kthxbye was already taken</h1>
<p>One-liner cookbook</p>
<a href="https://github.com/kthxbyte">
<img alt="" class="avatar" height="230" src="https://avatars0.githubusercontent.com/u/1776463?v=3&s=460" width="230" />
<h3 class="vcard-names">
<span class="vcard-username" itemprop="additionalName"><b>kthxbyte | Salvador Muñoz</b></span>
</h3>
</a>
<!-- Index -->
<!-- <div style="height:90px; overflow:auto"><small>
<a href="#08012016-display-json-as-a-jstree">
* Display JSON as a jsTree
</a><br>
<a href="#08012016-fosuserbundle-routes">
* FOSUserBundle routes
</a><br>
<a href="#112016-find-all-files-containing-a-given-string--encontrar-todos-los-archivos-que-contienen-un-string-dado">
* Find all files containing a given string
</a><br>
</small>
</div>-->
<!-- ./Index -->
</header>
<!-- Just a reference point to begin inserting articles -->
<div id="placeholder"></div>
<!-- Articles -->
<section>
<hr>
<h3>
<a id="12012016-count-files-inside-a-directory" class="anchor" href="#12012016-count-files-inside-a-directory" aria-hidden="true">
<span class="octicon octicon-link"></span>
</a>// Counting files inside a directory<br>// Contando archivos dentro de un directorio<br>
</h3>
<pre><code>find /path/to/directory -type f | wc -l</code></pre>
<sub>[ January 12, 2016 ] While thinking about #unix #shell #find #filecount</sub>
</section>
<section>
<hr>
<h3>
<a id="10012016-json-viewer" class="anchor" href="#10012016-json-viewer" aria-hidden="true">
<span class="octicon octicon-link"></span>
</a>// JSON tree view, using data from Pastebin<br>// Vista de arbol de JSON, utilizando datos desde Pastebin<br>
</h3>
<pre><a href="http://kthxbyte.github.io/json/index.html">http://kthxbyte.github.io/json/index.html</a></pre>
<sub>[ January 10, 2016 ] While thinking about #json #jstree #pastebin</sub>
</section>
<section>
<hr>
<h3>
<a id="08012016-display-json-as-a-jstree" class="anchor" href="#08012016-display-json-as-a-jstree" aria-hidden="true">
<span class="octicon octicon-link"></span>
</a>// Display JSON as a jsTree<br>// Desplegar JSON como un jsTree<br>
</h3>
<pre><a href="https://jsfiddle.net/z3w9ar2k/">https://jsfiddle.net/z3w9ar2k/</a></pre>
<sub>[ January 8, 2016 ] While thinking about #json #jstree</sub>
</section>
<section>
<hr>
<h3>
<a id="08012016-fosuserbundle-routes" class="anchor" href="#08012016-fosuserbundle-routes" aria-hidden="true">
<span class="octicon octicon-link"></span>
</a>
// FOSUserBundle routes<br>
// Rutas definidas por FOSUserBundle<br>
</h3>
<pre>
<code>
-- Try php app/console router:debug
fos_user_security_login GET|POST ANY ANY /login
fos_user_security_check POST ANY ANY /login_check
fos_user_security_logout GET ANY ANY /logout
fos_user_profile_show GET ANY ANY /profile/
fos_user_profile_edit GET|POST ANY ANY /profile/edit
fos_user_registration_register GET|POST ANY ANY /register/
fos_user_registration_check_email GET ANY ANY /register/check-email
fos_user_registration_confirm GET ANY ANY /register/confirm/{token}
fos_user_registration_confirmed GET ANY ANY /register/confirmed
fos_user_resetting_request GET ANY ANY /resetting/request
fos_user_resetting_send_email POST ANY ANY /resetting/send-email
fos_user_resetting_check_email GET ANY ANY /resetting/check-email
fos_user_resetting_reset GET|POST ANY ANY /resetting/reset/{token}
fos_user_change_password GET|POST ANY ANY /profile/change-password
</code>
</pre>
<sub>[ January 8, 2016 ] While thinking about #symfony #fosuserbundle #routes</sub>
</section>
<section>
<hr>
<h3>
<a id="112016-find-all-files-containing-a-given-string--encontrar-todos-los-archivos-que-contienen-un-string-dado" class="anchor" href="#112016-find-all-files-containing-a-given-string--encontrar-todos-los-archivos-que-contienen-un-string-dado" aria-hidden="true"><span class="octicon octicon-link"></span></a>// Find all files containing a given string<br>// Encontrar todos los archivos que contienen un string dado<br>
</h3>
<pre><code>grep -nrw /path/to/directory -e "string"</code></pre>
<sub>[ January 1, 2016 ] While thinking about #unix #shell #grep #filesearch #needle #haystack</sub>
</section>
<!-- ./Articles -->
<footer>
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small>
<br><small>Escuchar reggaeton puede producir cáncer</small></p>
</footer>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="javascripts/scale.fix.js"></script>
<script src="javascripts/jaml.js"></script>
<script type="text/javascript">
Jaml.register('tag', function(tag){
b('#', tag, ' ')
});
Jaml.register('article-english', function(article){
section(
hr(),
h3(a(
{
id: article.id,
class:'anchor',
href: '#' + article.id,
},
span({class:'octicon octicon-link'})
),
'// ', article.title['en'], br()
),
p(article.text['en']),
pre(code( article.code.join("\n") )),
sub('[ ', article.date['en'], ' ] ',
'While thinking about ',
Jaml.render('tag', article.tags))
);
});
Jaml.register('article-spanish', function(article){
section(
hr(),
h3(a(
{
id: article.id,
class:'anchor',
href: '#' + article.id,
},
span({class:'octicon octicon-link'})
),
'// ', article.title['es'], br()
),
p(article.text['es']),
pre(code( article.code.join("\n") )),
sub('[ ', article.date['es'], ' ] ',
'Mientras pensaba en ',
Jaml.render('tag', article.tags))
);
});
$.getJSON("articles/articles.json", function(articles){
for (var x = 0; x < articles.length; x++){
$('#placeholder').prepend(Jaml.render('article-english', articles[x]));
}
});
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-71895140-1");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body>
</html>