personalizar tema sublime text 3


 primero instalar packagecontrol en el siguiente enlace tienes las instrucciones y otros plugins

http://cirelramos.blogspot.com/2015/06/configuraciones-basicas-sublime-text-3.html


Ahora, cada vez que queramos buscar un paquete en el repositorio para instalarlo, pulsamos CTRL+SHIFT+P y escribimos Install Package. Entonces podremos buscar Color​Scheme​Editor

luego de tener instalado paquete utilizamos SHIFT+F12



nos mostrara una pantalla como la anterior y ahora vamos a crear el directorio para poder guardar los temas


Terminal:
mkdir ~/.config/sublime-text-3/Packages/Color\ Scheme\ -\ Default



ahora vamos al siguiente enlace:


http://tmtheme-editor.herokuapp.com/#!/editor/theme/Monokai


luego de modificar el tema descargamos el tema y lo copiamos a la carpeta o simplemente copiamos el contenido del archivo descargado al tema de sublime text como en la siguiente imagen


TurboGrafx.tmTheme  

un tema por si lo desean copiar, es muy similar a una terminal



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
<!--xml version="1.0" encoding="UTF-8"?-->
<!--DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"-->
<!-- Generated by: TmTheme-Editor                 -->
<!-- ============================================ -->
<!-- app:  http://tmtheme-editor.herokuapp.com    -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
  <key>author</key>
  <string>Jan T. Sott</string>
  <key>name</key>
  <string>TurboGrafx</string>
  <key>comment</key>
  <string>https://github.com/idleberg/RetroComputers.tmTheme</string>
  <key>semanticClass</key>
  <string>theme.dark.turbo_grafx</string>
  <key>colorSpaceName</key>
  <string>sRGB</string>
  <key>gutterSettings</key>
  <dict>
    <key>background</key>
    <string>#404040</string>
    <key>divider</key>
    <string>#404040</string>
    <key>foreground</key>
    <string>#808080</string>
    <key>selectionBackground</key>
    <string>#606060</string>
    <key>selectionForeground</key>
    <string>#a0a0a0</string>
  </dict>
  <key>settings</key>
  <array>
    <dict>
      <key>settings</key>
      <dict>
        <key>background</key>
        <string>#000000</string>
        <key>caret</key>
        <string>#FFFFFF</string>
        <key>foreground</key>
        <string>#FFFFFF</string>
        <key>invisibles</key>
        <string>#FFFFFF</string>
        <key>lineHighlight</key>
        <string>#424242</string>
        <key>selection</key>
        <string>#020A36</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Text</string>
      <key>scope</key>
      <string>variable.parameter.function</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c0c0c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Comments</string>
      <key>scope</key>
      <string>comment, punctuation.definition.comment</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#808080</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Punctuation</string>
      <key>scope</key>
      <string>punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c0c0c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Delimiters</string>
      <key>scope</key>
      <string>none</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c0c0c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Operators</string>
      <key>scope</key>
      <string>keyword.operator</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c0c0c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Keywords</string>
      <key>scope</key>
      <string>keyword, keyword.control</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c000e0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Variables</string>
      <key>scope</key>
      <string>variable</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#e00000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Functions</string>
      <key>scope</key>
      <string>entity.name.function, meta.require, support.function.any-method</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#0060c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Classes</string>
      <key>scope</key>
      <string>meta.class, support.class, entity.name.class, entity.name.type.class</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#e0e000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Methods</string>
      <key>scope</key>
      <string>keyword.other.special-method</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#0060c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Storage</string>
      <key>scope</key>
      <string>storage</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c000e0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Support</string>
      <key>scope</key>
      <string>support.function</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#00c0c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Strings, Inherited Class</string>
      <key>scope</key>
      <string>string, constant.other.symbol, entity.other.inherited-class</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#80e000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Integers</string>
      <key>scope</key>
      <string>constant.numeric</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c08000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Floats</string>
      <key>scope</key>
      <string>none</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c08000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Boolean</string>
      <key>scope</key>
      <string>none</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c08000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Constants</string>
      <key>scope</key>
      <string>constant</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c08000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Tags</string>
      <key>scope</key>
      <string>entity.name.tag</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#e00000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Attributes</string>
      <key>scope</key>
      <string>entity.other.attribute-name</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c08000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Attribute IDs</string>
      <key>scope</key>
      <string>entity.other.attribute-name.id, punctuation.definition.entity</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#0060c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Selector</string>
      <key>scope</key>
      <string>meta.selector</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c000e0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Values</string>
      <key>scope</key>
      <string>none</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c08000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Headings</string>
      <key>scope</key>
      <string>markup.heading punctuation.definition.heading, entity.name.section</string>
      <key>settings</key>
      <dict>
        <key>fontStyle</key>
        <string></string>
        <key>foreground</key>
        <string>#0060c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Units</string>
      <key>scope</key>
      <string>keyword.other.unit</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c08000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Bold</string>
      <key>scope</key>
      <string>markup.bold, punctuation.definition.bold</string>
      <key>settings</key>
      <dict>
        <key>fontStyle</key>
        <string>bold</string>
        <key>foreground</key>
        <string>#e0e000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Italic</string>
      <key>scope</key>
      <string>markup.italic, punctuation.definition.italic</string>
      <key>settings</key>
      <dict>
        <key>fontStyle</key>
        <string>italic</string>
        <key>foreground</key>
        <string>#c000e0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Code</string>
      <key>scope</key>
      <string>markup.raw.inline</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#80e000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Link Text</string>
      <key>scope</key>
      <string>string.other.link</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#e00000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Link Url</string>
      <key>scope</key>
      <string>meta.link</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c08000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Lists</string>
      <key>scope</key>
      <string>markup.list</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#e00000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Quotes</string>
      <key>scope</key>
      <string>markup.quote</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c08000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Separator</string>
      <key>scope</key>
      <string>meta.separator</string>
      <key>settings</key>
      <dict>
        <key>background</key>
        <string>#606060</string>
        <key>foreground</key>
        <string>#c0c0c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Inserted</string>
      <key>scope</key>
      <string>markup.inserted</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#80e000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Deleted</string>
      <key>scope</key>
      <string>markup.deleted</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#e00000</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Changed</string>
      <key>scope</key>
      <string>markup.changed</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#c000e0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Colors</string>
      <key>scope</key>
      <string>constant.other.color</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#00c0c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Regular Expressions</string>
      <key>scope</key>
      <string>string.regexp</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#00c0c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Escape Characters</string>
      <key>scope</key>
      <string>constant.character.escape</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#00c0c0</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Embedded</string>
      <key>scope</key>
      <string>punctuation.section.embedded, variable.interpolation</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#a04020</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>Invalid</string>
      <key>scope</key>
      <string>invalid.illegal</string>
      <key>settings</key>
      <dict>
        <key>background</key>
        <string>#e00000</string>
        <key>foreground</key>
        <string>#000000</string>
      </dict>
    </dict>
  </array>
  <key>uuid</key>
  <string>a13d0a8d-b0c0-4a22-9014-add0520fdaef</string>
</dict>
</plist>




Fuente: https://packagecontrol.io/packages/ColorSchemeEditor



0 comentarios :

docker install and use



install docker from

https://docs.docker.com/install/linux/docker-ce/ubuntu/

change directory containers

first create the folder

Terminal:
mkdir /home/$USER/docker-files/

copy all elements to new folder
Terminal:
sudo rsync -aXS /var/lib/docker/. /home/$USER/docker-files/

create a point mount in fstab
Terminal:
/home/$USER/docker-files/ /var/lib/docker none bind 0 0

Now mount of new configuration without reboot.
Terminal:
mount -a


Enabled autostart dockerd
Terminal:
sudo systemctl enable docker

edit file config service docker
Terminal:
nano /etc/systemd/system/multi-user.target.wants/docker.service

change ExecStart
Terminal:
ExecStart=/usr/bin/dockerd -H unix:// -H tcp://0.0.0.0:2375

reload files systemctl
Terminal:
sudo systemctl daemon-reload

add your user to group docker
Terminal:
sudo usermod -aG docker $USER


ready dockerd auto run now

now check the system to install
Terminal:
docker search ubuntu


now install the server
Terminal:
docker pull ubuntu


now run the server
Terminal:
docker run -i -t ubuntu /bin/bash 

show the containers
Terminal:
docker ps -a

copy the id of you container

example:
CONTAINER ID        IMAGE               COMMAND                 CREATED             STATUS                         PORTS               NAMES
6b1b845eae6a        cirel/ubuntu2       "/bin/bash"             2 minutes ago       Exited (0) 2 minutes ago     


descargar imagenes
Terminal:
sudo docker pull debian:jessie

docker images
Terminal:
docker images


Terminal:
docker commit 6b1b845eae6a cirel/ubuntu2


now check the container change, if you can run again you container use
Terminal:
docker run -it cirel/ubuntu2 /bin/bash





Terminal:
docker -it -d 1483112e529b /bin/bash

if want remove container
Terminal:
docker rm ID-CONTAINER



if want remove image
Terminal:
docker rm ID-IMAGE


remove all containers
Terminal:
docker rm $(docker ps -a -q)





problems with locale in container
Terminal:
apt-get install -y locales

Terminal:
dpkg-reconfigure locales

Terminal:
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen

Terminal:
locale-gen en_US.UTF-8












Docker compose

Terminal:
sudo apt-get purge python-pip

Terminal:
sudo wget https://bootstrap.pypa.io/get-pip.py

Terminal:
sudo python get-pip.py

Terminal:
pip uninstall autopep8 pep8

Terminal:
pip install docker-compose

Terminal:
sudo docker-compose up



check files container
Terminal:
docker exec -it container_name bash

docker backup pgsql
Terminal:
docker exec -t your-db-container pg_dumpall -c -U postgres > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql

or

Terminal:
docker exec -t your-db-container pg_dump --no-owner --no-acl -U drupal drupal > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql

docker restore pgsql
Terminal:
cat your_dump.sql | docker exec -i your-db-container psql -U postgres

docker compose remove container with name image
Terminal:
sudo docker-compose rm postgresql



docker mysql

backup mysql
Terminal:
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
Terminal:
docker exec -i mysql-5.6-new /usr/bin/mysqldump -u default --password=default --default-character-set=utf8 --all-databases  --routines  > alldb.sql


restore mysql
Terminal:
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
Terminal:
docker exec -i CONTAINER /usr/bin/mysql --default-character-set=utf8 DATABASE -u default --password=default < /tmp/BACKUP_DATA_BASE

Docker restar and show logs container
Terminal:
DOCKER_CONTAINER="nginx" && sudo docker container restart $DOCKER_CONTAINER && sudo docker container logs -f -t --tail 40 $DOCKER_CONTAINER


Docker list containers running
Terminal:
docker ps

Docker list stats containers running
Terminal:
docker stats


keep running docker in command exec
Terminal:
tail -f /dev/null



docker error memory limit

Terminal:
sudo sysctl -w vm.max_map_count=262144

docker remove logs

Terminal:
sudo find /var/lib/docker/containers/ -type f -name "*.log" -delete


https://www.elastic.co/guide/en/elasticsearch/reference/5.0/vm-max-map-count.html#vm-max-map-count



Fuente: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04

http://alexander.holbreich.org/moving-docker-images-different-partition/











0 comentarios :

Pdf comandos para bash





Fuente: https://drive.google.com/file/d/0B-2FDrPc5MapX1lqaTRqTzZuRFE/view?usp=sharing

0 comentarios :