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



 








  author
  Jan T. Sott
  name
  TurboGrafx
  comment
  https://github.com/idleberg/RetroComputers.tmTheme
  semanticClass
  theme.dark.turbo_grafx
  colorSpaceName
  sRGB
  gutterSettings
  
    background
    #404040
    divider
    #404040
    foreground
    #808080
    selectionBackground
    #606060
    selectionForeground
    #a0a0a0
  
  settings
  
    
      settings
      
        background
        #000000
        caret
        #FFFFFF
        foreground
        #FFFFFF
        invisibles
        #FFFFFF
        lineHighlight
        #424242
        selection
        #020A36
      
    
    
      name
      Text
      scope
      variable.parameter.function
      settings
      
        foreground
        #c0c0c0
      
    
    
      name
      Comments
      scope
      comment, punctuation.definition.comment
      settings
      
        foreground
        #808080
      
    
    
      name
      Punctuation
      scope
      punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array
      settings
      
        foreground
        #c0c0c0
      
    
    
      name
      Delimiters
      scope
      none
      settings
      
        foreground
        #c0c0c0
      
    
    
      name
      Operators
      scope
      keyword.operator
      settings
      
        foreground
        #c0c0c0
      
    
    
      name
      Keywords
      scope
      keyword, keyword.control
      settings
      
        foreground
        #c000e0
      
    
    
      name
      Variables
      scope
      variable
      settings
      
        foreground
        #e00000
      
    
    
      name
      Functions
      scope
      entity.name.function, meta.require, support.function.any-method
      settings
      
        foreground
        #0060c0
      
    
    
      name
      Classes
      scope
      meta.class, support.class, entity.name.class, entity.name.type.class
      settings
      
        foreground
        #e0e000
      
    
    
      name
      Methods
      scope
      keyword.other.special-method
      settings
      
        foreground
        #0060c0
      
    
    
      name
      Storage
      scope
      storage
      settings
      
        foreground
        #c000e0
      
    
    
      name
      Support
      scope
      support.function
      settings
      
        foreground
        #00c0c0
      
    
    
      name
      Strings, Inherited Class
      scope
      string, constant.other.symbol, entity.other.inherited-class
      settings
      
        foreground
        #80e000
      
    
    
      name
      Integers
      scope
      constant.numeric
      settings
      
        foreground
        #c08000
      
    
    
      name
      Floats
      scope
      none
      settings
      
        foreground
        #c08000
      
    
    
      name
      Boolean
      scope
      none
      settings
      
        foreground
        #c08000
      
    
    
      name
      Constants
      scope
      constant
      settings
      
        foreground
        #c08000
      
    
    
      name
      Tags
      scope
      entity.name.tag
      settings
      
        foreground
        #e00000
      
    
    
      name
      Attributes
      scope
      entity.other.attribute-name
      settings
      
        foreground
        #c08000
      
    
    
      name
      Attribute IDs
      scope
      entity.other.attribute-name.id, punctuation.definition.entity
      settings
      
        foreground
        #0060c0
      
    
    
      name
      Selector
      scope
      meta.selector
      settings
      
        foreground
        #c000e0
      
    
    
      name
      Values
      scope
      none
      settings
      
        foreground
        #c08000
      
    
    
      name
      Headings
      scope
      markup.heading punctuation.definition.heading, entity.name.section
      settings
      
        fontStyle
        
        foreground
        #0060c0
      
    
    
      name
      Units
      scope
      keyword.other.unit
      settings
      
        foreground
        #c08000
      
    
    
      name
      Bold
      scope
      markup.bold, punctuation.definition.bold
      settings
      
        fontStyle
        bold
        foreground
        #e0e000
      
    
    
      name
      Italic
      scope
      markup.italic, punctuation.definition.italic
      settings
      
        fontStyle
        italic
        foreground
        #c000e0
      
    
    
      name
      Code
      scope
      markup.raw.inline
      settings
      
        foreground
        #80e000
      
    
    
      name
      Link Text
      scope
      string.other.link
      settings
      
        foreground
        #e00000
      
    
    
      name
      Link Url
      scope
      meta.link
      settings
      
        foreground
        #c08000
      
    
    
      name
      Lists
      scope
      markup.list
      settings
      
        foreground
        #e00000
      
    
    
      name
      Quotes
      scope
      markup.quote
      settings
      
        foreground
        #c08000
      
    
    
      name
      Separator
      scope
      meta.separator
      settings
      
        background
        #606060
        foreground
        #c0c0c0
      
    
    
      name
      Inserted
      scope
      markup.inserted
      settings
      
        foreground
        #80e000
      
    
    
      name
      Deleted
      scope
      markup.deleted
      settings
      
        foreground
        #e00000
      
    
    
      name
      Changed
      scope
      markup.changed
      settings
      
        foreground
        #c000e0
      
    
    
      name
      Colors
      scope
      constant.other.color
      settings
      
        foreground
        #00c0c0
      
    
    
      name
      Regular Expressions
      scope
      string.regexp
      settings
      
        foreground
        #00c0c0
      
    
    
      name
      Escape Characters
      scope
      constant.character.escape
      settings
      
        foreground
        #00c0c0
      
    
    
      name
      Embedded
      scope
      punctuation.section.embedded, variable.interpolation
      settings
      
        foreground
        #a04020
      
    
    
      name
      Invalid
      scope
      invalid.illegal
      settings
      
        background
        #e00000
        foreground
        #000000
      
    
  
  uuid
  a13d0a8d-b0c0-4a22-9014-add0520fdaef






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 :