viernes, 27 de septiembre de 2019

Configuración Personal de Visual Studio Code

{
        "window.zoomLevel": 0,
        "editor.fontSize": 16,
        "editor.fontFamily": "Consolas, 'Courier New', monospace" ,
        "editor.letterSpacing": 0.5,
        "workbench.list.smoothScrolling": true,
        "editor.smoothScrolling": true,
        "workbench.startupEditor": "none",
        "workbench.settings.editor": "json",
        "window.titleBarStyle": "custom",
        "workbench.iconTheme": "vscode-icons",
        "workbench.colorTheme": "Material Theme Static",
        "editor.minimap.enabled": false,
        "editor.wordWrap":"on",
        "window.restoreWindows":"none",
        //"workbench.activityBar.visible": false,
        "git.ignoreMissingGitWarning": true,
        "terminal.integrated.profiles.windows": { "Git Bash": { "path": "C:\\Program Files\\Git\\bin\\bash.exe" } },
        "terminal.integrated.defaultProfile.windows": "Git Bash",
        "terminal.integrated.fontSize": 16,
        "extensions.ignoreRecommendations": true,
        "files.autoSave": "onFocusChange",
        "editor.formatOnSave": true,
        "editor.formatOnPaste": true,
        "editor.formatOnType": true,
        "explorer.autoReveal": false,
        "explorer.sortOrder": "type",
        "explorer.openEditors.visible": 0,
        "editor.occurrencesHighlight": false,
        //"editor.glyphMargin": false,
        "editor.suggestSelection": "first",
        "files.trimFinalNewlines": true, 
        "files.insertFinalNewline": false,
        "files.trimTrailingWhitespace": true,
        "prettier.semi": true, 
        //"editor.renderWhitespace": "all",
        "workbench.editor.enablePreview": false,
        "comment-divider.mainHeaderFiller": "=",
        "editor.parameterHints.enabled": false,
        "editor.insertSpaces": true,
        "editor.tabSize": 2,
        "editor.detectIndentation": false,
        "editor.defaultFormatter": "esbenp.prettier-vscode",
        "editor.folding": true,
        "prettier.tabWidth": 2,
        "prettier.useTabs": false,
        "prettier.htmlWhitespaceSensitivity": "ignore",
        "prettier.printWidth": 120,
       "prettier.bracketSpacing": true,
       //"editor.rulers": [120],
       "php.suggest.basic": false,
       "php.validate.executablePath": "C:\\Program Files\\php\\php.exe",
       "php.executablePath": "C:\\Program Files\\php\\php.exe",
       //"phpserver.browser": "msedge",
       //"phpserver.autoOpenOnReload": true,
       //"phpserver.phpPath": "C:\\Program Files\\php\\php.exe",
       "intelephense.format.braces": "k&r",

        "workbench.colorCustomizations": {
        "titleBar.activeBackground": "#2B2829",
        "editor.background":"#1E1E1E", 
        "activityBar.background":"#2D2D30",
        "activityBar.border": "#3F3F46",
        "sideBar.background":"#252526",
        "sideBar.border": "#434343",
        "sideBar.foreground": "#DFDFDF",
        "sideBarSectionHeader.background": "#37373D",
        "activityBar.foreground": "#a9ebff",
        "activityBar.inactiveForeground": "#818183",
        //"activityBar.activeBackground": "#356FA8",
        "activityBarBadge.background": "#00e6cb",
        "activityBarBadge.foreground": "#000000",
        "list.activeSelectionBackground": "#28537D",
        "list.inactiveSelectionBackground": "#28537D",
        "editorIndentGuide.activeBackground": "#8BD0FE",
        "editorSuggestWidget.selectedBackground": "#005F9D",
        "editorSuggestWidget.highlightForeground": "#00F4D6",
        "editorSuggestWidget.foreground": "#e7e5e5",
        "editorSuggestWidget.border": "#4A4A4A",
        "list.inactiveSelectionForeground": "#fff",
        "tab.activeBorder": "#52DCFF",
        "tab.inactiveBackground": "#383737",
        "tab.activeBackground": "#1F4061",
        "editorGroupHeader.tabsBackground": "#2D2D30",
        "editorCursor.foreground": "#FFCC00",
        /*"editor.wordHighlightBackground": "#504C64",*/
        "editor.wordHighlightBackground": "#1e1e1e00",
        "panel.border":"#007ACC",
        "statusBar.background": "#007ACC",
        "editor.lineHighlightBackground": "#1E1E1E",
        "editor.lineHighlightBorder": "#464646",
        "editorLineNumber.activeForeground": "#FFF",
        "editor.selectionBackground":"#264F78",
        "editorBracketMatch.background":"#464646",
        "editorBracketMatch.border":"#1E1E1E",
        "scrollbarSlider.hoverBackground": "#585858",
        "scrollbarSlider.background": "#585858",
        "scrollbarSlider.activeBackground": "#585858",
        "editor.findMatchHighlightBackground": "#660",
        "list.hoverBackground": "#4D4D53",
        "list.focusBackground": "#1B67A5",
        "pickerGroup.foreground": "#00F4D6",
        "editorWidget.resizeBorder": "#52DCFF",
        "widget.shadow": "#2e393f"

        },
        
        "[html]": {
                     "editor.defaultFormatter": "HookyQR.beautify",
           },

        "[php]": {
                      "editor.defaultFormatter": "bmewburn.vscode-intelephense-client",
                      "editor.formatOnSave": true
            },
}



/************************************************************/

//ATAJOS DE TECLADO
Atajos por Defecto:
CTRL + P          ->  Navegar archivos
Shift + Suprimir  ->  Eliminar la línea actual 
CTRL + L  ->  Seleccionar la línea actual
Ctrl + D   ->  Duplica la línea actual en la línea inferior
Ctrl + Shift + /   ->  Comentar/descomentar bloques de codigo.
Ctrl + /               ->  Comentar linea de codigo
Alt+↑             ->  Intercambiar línea actual con la superior
Ctrl+Alt+↓        ->  Multicursor 
Shift+Alt+F       ->  Formatear Código 
CTRL + B         --> Menu de Actividades
CTRL + SHIFT + E --> Explorer de archivos
CTRL + SHIFT + X --> Extensiones
CTRL + SHIFT + D --> Debug
CTRL + SHIFT + G --> Source Control GIT
CTRL + K + P --> Mostrar solo archivos abiertos
CTRL +  P --> Mostrar todos los archivos

//File ->  preferences -> Keyboard Shortcuts -> Open Keyboard Shortcuts
//Keybindings.json
//Comentarios CTRL  + SHIFT +  /
    {
        "key": "ctrl+numpad_divide",
        "command": "editor.action.blockComment",
        "when": "editorTextFocus && !editorReadonly"
    },
//Duplicar Codigo CTRL + D
    {
        "key": "ctrl+d",
        "command": "editor.action.copyLinesDownAction",
        "when": "editorTextFocus && !editorReadonly"
    },

/*****************************************************************/

Plugins:
- html tag wrapper: Permite agregar etiquetas html CTRL + I 
- Auto Rename Tag:  Permite renombrar etiquetas html. 
- IntelliSense for CSS class names in HTML: Autocompletado Css en HTML.
Highlight Matching Tag: Subraya las etiquetas html.
- Bracket Pair Colorizer: Permite agregar colores a las llaves y paréntesis.
Prettier - Code Formatter: Permite formatear Codigo.
Comment Divider: Genera comentarios en bloque. Shift + alt + X
Path Intellisense: Autocompleta nombres de archivos
Pretty XML: Formatea codigo xml, svg.
- Ident-rainbow: Identa el código de colores.
- Live Server
- Material Theme Static
Vscode-icons-mac
- vscode-icons
- Rainbow Tags
- Split HTML Attributes (Vue, React, Angular). Alt + Q

Plugins para PHP
- PHP Debug 
PHP IntelliSense
- PHP Intelephense
Format HTML in PHP
- PHP Server


martes, 24 de septiembre de 2019

Permitir CONEXIONES SMTP en SELINUX

Verificar si el servicio httpd puede realizar una conexión SMTP a través de la red para enviar un correo electrónico
getsebool httpd_can_sendmail
getsebool httpd_can_network_connect

Permitir conexión SMTP
$> sudo setsebool -P httpd_can_sendmail 1

lunes, 9 de septiembre de 2019

GIT

     GIT
=========
Flujo de Trabajo de GIT
1.  Working directory (Directorio de trabajo)
2.  Staging Area (Area de preparacion) Solo Archivos Modificados
3.  Git directory(Directorio GIT) commit


Configuracion Inicial:
- Nombre de usurio
- Correo

$> git config --global user.name "usuario"
$> git config --global user.email "usuario@gmail.com"

Ver configuracion realizada
$> git config --list

*************************************************
Inicializando el Repositorio
$> git init

Agregar todos los archivos al Área de preparación
$> git add .

Ver Estado del commit
$> git status

Crear el Primer punto de control de nuestro Proyecto(Creando el primer commit)
$> git commit -m "nuestro primer commit"

Ver todos los commits
$> git log

Ver cambios que se realizaron
$> git diff index.html

Navegar entre los commits
$> git checkout #comitlog


Subir Proyecto a GITHUB
========================
$> git branch -M main
$> git remote add origin https://github.com/USUARIO/HTML-CSS-JAVASCRIPT.git
$> git push -u origin main

Clonar el proyecto desde Github
$> git clone https://github.com/USUARIO/HTML-CSS-JAVASCRIPT.git

Nota: 
Eliminar Repositorio
$> rm -rf .git

Plugin para VSCode: GitHistory

martes, 3 de septiembre de 2019

Paleta de Colores

Paleta de Colores
=====================
#2A3B47  -->   Dark Light      

#1192EE  -->    Light Blue
#006DC6  -->   Light Blue Dark

#00CBFF  -->   SkyBlue
#66D1FF  -->   SkyBlue Secondary
#00BFF0  -->   SkyBlue Dark

#2bd480  -->    Light Green
#2EBD75  -->  Light Green Dark

#FFBA42  -->  Ligth Yellow
#FFA600  -->   Light Dark

#ff5252  -->      Light Red
#F95759  -->    Light Red Dark

#DFE0E0  -->   Bordes     (Grey)
#53575A  -->    Texto      (Grey)
#FCFCFC  -->  background (Grey)

lunes, 2 de septiembre de 2019

Banco de Galeria de Imagenes

Banco de Galeria de Imagenes
===============================
- Pexels    https://www.pexels.com/
- Pixabay   https://pixabay.com/
- Unsplash  https://unsplash.com/

Instalar Powershell 7

Instalar Powershell Version 7 -------------------------------------- $> winget search powershell $> winget install Microsoft.Powershe...