This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm husky --save-dev | |
npx husky install | |
npm pkg set scripts.prepare="husky install" | |
npm install --save-dev @commitlint/cli @commitlint/config-angular | |
npx husky add .husky/commit-msg "npx commitlint --edit $1" | |
npm install --save-dev --save-exact prettier | |
npm install --save-dev lint-staged | |
npx husky add .husky/pre-commit "npx lint-staged" | |
npx husky add .husky/pre-push "npm run test" | |
npx husky add .husky/post-merge "npm install" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings.json = { | |
{ | |
"workbench.iconTheme": "vscode-icons", | |
"terminal.integrated.defaultProfile.windows": "Git Bash", | |
"editor.fontFamily": "Consolas ", | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
// "editor.codeActionsOnSave": { | |
// "source.fixAll.eslint": true | |
// }, | |
// "editor.defaultFormatter": "esbenp.prettier-vscode", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uno de las soluciones más eficaces que he utilizado es accediendo a aluna TTY y realizando un xkill, esto debido a que solo se ha congelado las X, pero si el sistema no te responde puedes utilizar esta famosa combinación de teclas que es Alt + SysRq (tecla impr) Y donde iremos presionando cada 2 segundos las teclas R E I S U B. | |
Aquí la explicación de lo que hace esta combicacion. | |
Alt + SysRq + R devuelve el control del teclado. | |
Alt + SysRq + E termina (term) todos los procesos (excepto init). | |
Alt + SysRq + I mata (kill) todos los procesos (excepto init). | |
Alt + SysRq + S sincroniza los discos. | |
Alt + SysRq + U remonta todos los sistemas de ficheros en modo lectura. | |
Alt + SysRq + B reinicia la máquina. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To fix it run the following commands | |
cd ~ | |
mv .zsh_history .zsh_history_bad | |
strings .zsh_history_bad > .zsh_history | |
fc -R .zsh_history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository --remove ppa:nombre-ppa/ppa | |
sudo apt-get remove “nombre-del-paquete” | |
sudo apt-get purge “nombre-del-paquete” | |
sudo apt-get clean “nombre-del-paquete” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Archivos .tar.gz: | |
Comprimir: tar -czvf empaquetado.tar.gz /carpeta/a/empaquetar/ | |
Descomprimir: tar -xzvf archivo.tar.gz | |
Archivos .tar: | |
Empaquetar: tar -cvf paquete.tar /dir/a/comprimir/ | |
Desempaquetar: tar -xvf paquete.tar | |
Archivos .gz: | |
Comprimir: gzip -9 index.php |