sudo dnf clean all
sudo dnf check-update
sudo dnf update -y
sudo dnf clean all
This file contains hidden or 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
| validateEmail(val) { | |
| const exregular = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i; | |
| return exregular.test(val) || 'No valid'; | |
| } |
This file contains hidden or 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
| public class ClaseBasica | |
| { | |
| public int i = 10; | |
| } | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| } |
This file contains hidden or 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
| export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac))))) | |
| export PATH=$PATH:$JAVA_HOME/bin | |
| export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar | |
| # FUENTE: https://computingforgeeks.com/how-to-set-java_home-on-centos-fedora-rhel/ |
This file contains hidden or 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
| ipconfig | grep -iB 2 -A 2 "port*" | |
| # pipeline B: muestra lineas antes, A: muestra lineas despues |
This file contains hidden or 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
| grep -rni -e 'pgadminport' | |
| # busca en el directorio actual la linea de texto en todos los archivos | |
| # busca palabras que contengan la palabra a buscar, para dejarlo estricto usar w | |
| # r recursivo, n num de linea, i sin sensibilidad a mayus |
This file contains hidden or 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
| diff -qr .kube/ .kube2 | |
| # q solo muestra diferencias, r recursivo |
This file contains hidden or 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 dnf copr enable elegos/gitflow | |
| sudo dnf update | |
| sudo dnf install gitflow | |
| # el paquete esta sin soporte, esta es una alternativa |
This file contains hidden or 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
| netstat -anop | grep -w ':8080' | |
| # a: en espera y no, n: direcciones y puertos, o: información de red, p: PID, qw: coincidencia exacta |
OlderNewer