-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
737 lines (536 loc) · 19.8 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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<style>
* {
margin: 0;
padding: 0;
cursor: default;
}
body {
font-family: 'Open Sans', sans-serif;
}
ul {
list-style: inside;
}
code {
margin-top: 10px;
padding: 5px;
display: block;
border-color: rgb(238, 238, 238);
border-style: inset;
border-width: 2px;
background-color: lightgray;
font-size: 16px;
}
.width100p {
width: 100%;
}
.maxwidth960 {
max-width: 960px;
}
.box-center {
margin: 0 auto;
}
header {
background-color: #2a95c5;
}
header h1 {
color: white;
text-align: center;
}
.separator {
border: 1px solid #2a95c5;
margin: 10px 0 40px;
}
.box--container {
margin-top: 50px;
}
.box--container.first {
margin-top: 0;
}
.box--header-container {
background-color: black;
}
.box--header-container h1 {
color: white;
}
.box--date-container {
margin: 10px 0;
}
[class*="date"] {
text-align: right;
text-decoration: underline;
}
.box--description-item {
margin-bottom: 10px;
}
.box--description-item--nested-list {
padding-left: 20px;
}
.box--content {
margin-bottom: 10px;
}
.box--content h2 {
background-color: #2a95c5;
color: white;
}
.box--source-link {
display: block;
cursor: pointer;
text-align: center;
}
.box--source-link:hover {
text-decoration: none;
}
</style>
<header>
<h1>Link's store</h1>
</header>
<div class="width100p box--container first">
<div class="box--header-container">
<h1 class="width100p maxwidth960 box-center">
300 потрясающих бесплатных сервисов
</h1>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="pub-date">pub-date: 2/15/2015</p>
<p class="post-date">post-date: 2/16/2015</p>
</div>
<ul class="box--description-list">
<li class="box--description-item">
Бизнес + Маркетинг
<ul class="box--description-item--nested-list">
<li>A. Бесплатные Веб-Сайты + Логотипы + Хостинг + Выставление Счета</li>
<li>B. Бесплатные генераторы наименований бизнеса/проекта</li>
<li>C. Ведение блога</li>
<li>...</li>
</ul>
</li>
<li class="box--description-item">
Дизайн + Код
<ul class="box--description-item--nested-list">
<li>A. Источники бесплатных дизайнов</li>
<li>B. Выбор цвета</li>
<li>C. Вдохновление</li>
<li>...</li>
</ul>
</li>
<li class="box--description-item">
Работа + Продуктивность
<ul class="box--description-item--nested-list">
<li>A. Фоновая музыка для фокусирования на работе</li>
<li>B. Избежать отвлечения</li>
<li>C. Организованность и совместная деятельность</li>
<li>...</li>
</ul>
</li>
<li class="box--description-item">
Делать открытия и учится
<ul class="box--description-item--nested-list">
<li>A. Узнавать новые инструменты и стартапы</li>
<li>B. Строить вместе</li>
<li>C. Учиться</li>
<li>...</li>
</ul>
</li>
</ul>
<a href="http://habrahabr.ru/post/250621/"
target="_blank"
class="box--source-link">
Source
</a>
</div>
</div>
<div class="width100p box--container">
<div class="box--header-container">
<h1 class="width100p maxwidth960 box-center">
Иерархия шаблонов
</h1>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 2/16/2015</p>
</div>
<p class="box--content">
Страницы WordPress сайта собираются подобно пазлу из
файлов-шаблонов. Некоторые шаблоны (например header.php и
footer.php) задействованы на всех страницах, другие используются
только при определенных условиях.
</p>
<a href="http://codex.wordpress.org/%D0%98%D0%B5%D1%80%D0%B0%D1%80%D1%85%D0%B8%D1%8F_%D1%88%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%D0%BE%D0%B2"
target="_blank"
class="box--source-link">
Source
</a>
</div>
</div>
<div class="width100p box--container">
<div class="box--header-container">
<h1 class="width100p maxwidth960 box-center">
Dependency Manager for PHP
</h1>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 2/16/2015</p>
</div>
<p class="box--content">
Composer is a tool for dependency management in PHP. It allows you
to declare the dependent libraries your project needs and it will
install them in your project for you.
</p>
<a href="https://getcomposer.org/"
target="_blank"
class="box--source-link">
Source
</a>
</div>
</div>
<div class="width100p box--container">
<div class="box--header-container">
<h1 class="width100p maxwidth960 box-center">
Convert Unix timestamp to Readable Date/time and revert
</h1>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 2/18/2015</p>
</div>
<p class="box--content">
Convert Unix timestamp to Readable Date/time
</p>
<p class="box--content">
Convert a Date/Time to a Unix timestamp
</p>
<a href="http://www.onlineconversion.com/unix_time.htm"
target="_blank"
class="box--source-link">
Source
</a>
</div>
</div>
<div class="width100p box--container">
<div class="box--header-container">
<h1 class="width100p maxwidth960 box-center">
WGET
</h1>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 2/18/2015</p>
</div>
<a href="https://eternallybored.org/misc/wget/">Download</a>
<code class="box--content">
wget -H -k -p -r -l 1 http://someaddres.com
</code>
<p class="box--content">
This means:
</p>
<ul>
<li class="box--description-item">
-H: Download files from other hosts, too
</li>
<li class="box--description-item">
-k: After downloading convert any link in it so they point to the downloaded files
</li>
<li class="box--description-item">
-p: Download anything the page needs for proper offline viewing
</li>
<li class="box--description-item">
-r: recurcive
</li>
<li class="box--description-item">
-l 1: level
</li>
</ul>
<a href="http://askubuntu.com/questions/373047/i-used-wget-to-download-html-files-where-are-the-images-in-the-file-stored"
target="_blank"
class="box--source-link">
Source
</a>
</div>
</div>
<div class="width100p box--container">
<div class="box--header-container">
<h1 class="width100p maxwidth960 box-center">
ssh config file
</h1>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 2/18/2015</p>
</div>
<p class="box--content">
Generate:
</p>
<code class="box--content">
ssh-keygen -t rsa -C "email" -f FILENAME
</code>
<p class="box--content">
Config file:
</p>
<code class="box--content">
host <strong>HOSTNAME</strong><br />
  hostname=<strong>HOSTNAME</strong><br />
  Port=22<br />
  User=git<br />
  IdentityFile=~/.ssh/<strong>PRIVATEkey</strong>
</code>
<ul>
<li class="box--description-item"><strong>HOSTNAME</strong> - without http</li>
</ul>
</div>
</div>
<div class="width100p box--container">
<div class="box--header-container">
<h1 class="width100p maxwidth960 box-center">
GIT commands /can be update/
</h1>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-update: 3/18/2015</p>
</div>
<h2>Delete remote branch:</h2>
<code class="box--content">
git push origin --delete BRANCHname
</code>
<p class="box--content">
or
</p>
<code class="box--content">
git branch -D BRANCHname<br/>
git push origin :BRANCHname<br/>
</code>
<a href="http://stackoverflow.com/questions/2003505/delete-a-git-branch-both-locally-and-remotely"
target="_blank"
class="box--source-link">
Source
</a>
<div class="separator"></div>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 3/9/2015</p>
</div>
<h2>Get remote branch:</h2>
<code class="box--content">
git fetch origin 'REMOTEbranchNAME'
</code>
<a href="http://stackoverflow.com/questions/9537392/git-fetch-remote-branch"
target="_blank"
class="box--source-link">
Source
</a>
<div class="separator"></div>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 3/18/2015</p>
</div>
<h2>Get all remote branch:</h2>
<code class="box--content">
git branch -va
</code>
<a href="http://stackoverflow.com/questions/1783405/checkout-remote-git-branch"
target="_blank"
class="box--source-link">
Source
</a>
<div class="separator"></div>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 3/9/2015</p>
</div>
<h2>Remove file:</h2>
<code class="box--content">
git rm --cached mylogfile.log
</code>
<p class="box--content">
Remove folder:
</p>
<code class="box--content">
git rm --cached -r mydirectory
</code>
<a href="http://stackoverflow.com/questions/1143796/remove-a-file-from-a-git-repository-without-deleting-it-from-the-local-filesyste"
target="_blank"
class="box--source-link">
Source
</a>
<div class="separator"></div>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 3/9/2015</p>
</div>
<h2>Permission denied (publickey)</h2>
<p class="box--content">
Running
</p>
<code class="box--content">
ssh -vT [email protected]
</code>
<p class="box--content">
Return
</p>
<code class="box--content">
 OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007<br/>
 debug1: Connecting to github.com [207.97.227.239] port 22.<br/>
 debug1: Connection established.<br/>
 debug1: identity file /p/.ssh/identity type -1<br/>
 debug1: identity file /p/.ssh/id_rsa type -1<br/>
 debug1: identity file /p/.ssh/id_dsa type -1<br/>
 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debia5github2<br/>
 debug1: match: OpenSSH_5.1p1 Debian-5github2 pat OpenSSH*<br/>
 debug1: Enabling compatibility mode for protocol 2.0<br/>
 debug1: Local version string SSH-2.0-OpenSSH_4.6<br/>
 debug1: SSH2_MSG_KEXINIT sent<br/>
 debug1: SSH2_MSG_KEXINIT received<br/>
 debug1: kex: server->client aes128-cbc hmac-md5 none<br/>
 debug1: kex: client->server aes128-cbc hmac-md5 none<br/>
 debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent<br/>
 debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP<br/>
 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent<br/>
 debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY<br/>
 debug1: Host 'github.com' is known and matches the RSA host key.<br/>
 debug1: Found key in /p/.ssh/known_hosts:1<br/>
 debug1: ssh_rsa_verify: signature correct<br/>
 debug1: SSH2_MSG_NEWKEYS sent<br/>
 debug1: expecting SSH2_MSG_NEWKEYS<br/>
 debug1: SSH2_MSG_NEWKEYS received<br/>
 debug1: SSH2_MSG_SERVICE_REQUEST sent<br/>
 debug1: SSH2_MSG_SERVICE_ACCEPT received<br/>
 debug1: Authentications that can continue: publickey<br/>
 debug1: Next authentication method: publickey<br/>
 debug1: Trying private key: /p/.ssh/identity<br/>
 debug1: Trying private key: /p/.ssh/id_rsa<br/>
 debug1: Trying private key: /p/.ssh/id_dsa<br/>
 debug1: No more authentication methods to try.<br/>
 Permission denied (publickey).<br/>
</code>
<p class="box--content">
Do you recognize any of these?
</p>
<code class="box--content">
 debug1: Trying private key: /p/.ssh/identity<br/>
 debug1: Trying private key: /p/.ssh/id_rsa<br/>
 debug1: Trying private key: /p/.ssh/id_dsa<br/>
</code>
<p class="box--content">
You might try to specify the key to be used with -i:
</p>
<code class="box--content">
ssh -i /path/to/key -vT [email protected]
</code>
<a href="http://stackoverflow.com/questions/10138705/github-permission-denied-publickey"
target="_blank"
class="box--source-link">
Source
</a>
<div class="separator"></div>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 3/16/2015</p>
</div>
<h2>Check changes in current branch and master:</h2>
<code class="box--content">
git pull origin master<br/>
git checkout BRANCHname<br/>
git merge origin/master<br/>
git diff origin/master<br/>
git checkout master<br/>
git branch -D BRANCHname<br/>
git push origin :BRANCHname<br/>
</code>
<div class="separator"></div>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 3/16/2015</p>
</div>
<h2>Untrack files:</h2>
<code class="box--content">
git reset --hard<br/>
</code>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 3/18/2015</p>
</div>
<h2>Rename remote branch:</h2>
<code class="box--content">
git branch -m oldname newname
</code>
<p class="box--content">
If you want to rename the current branch, you can simply do:
</p>
<code class="box--content">
git branch -m newname
</code>
<a href="http://stackoverflow.com/questions/1783405/checkout-remote-git-branch"
target="_blank"
class="box--source-link">
Source
</a>
<div class="separator"></div>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 3/18/2015</p>
</div>
<h2>Change last commit:</h2>
<code class="box--content">
git commit --amend -m "message"
</code>
<a href="http://stackoverflow.com/questions/179123/edit-an-incorrect-commit-message-in-git"
target="_blank"
class="box--source-link">
Source
</a>
<div class="separator"></div>
</div>
</div>
<div class="width100p box--container">
<div class="box--header-container">
<h1 class="width100p maxwidth960 box-center">
View db requests log
</h1>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date"><Nazar Salo> post-date: 3/12/2015</p>
</div>
<code class="box--content">
SHOW VARIABLES LIKE "general_log%";<br />
SET GLOBAL general_log = 'ON';<br />
<br />
sudo tail -f /var/lib/mysql/A031214.log<br />
</code>
</div>
</div>
<div class="width100p box--container">
<div class="box--header-container">
<h1 class="width100p maxwidth960 box-center">
Install python-demjson
</h1>
</div>
<div class="width100p maxwidth960 box-center box--content">
<div class="box--date-container">
<p class="post-date">post-date: 3/17/2015</p>
</div>
<p class="box--content">
1. https://pip.pypa.io/en/latest/installing.html
OR
1. https://bootstrap.pypa.io/get-pip.py
2. python get-pip.py
as result Successfully installed pip-6.0.8 setuptools-14.3
3. http://deron.meranda.us/python/demjson/install
4. goto C:\Python27\Lib\site-packages
5. easy_install.py demjson
</p>
<code class="box--content">
</code>
</div>
</div>