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
| ----------------------------------------------------------------------------------------------------------------------- | |
| >show wlan summary | |
| >show wlan apgroups | |
| ----------------------------------------------------------------------------------------------------------------------- | |
| >show interface summary | |
| ----------------------------------------------------------------------------------------------------------------------- | |
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
| ------------------------------------------------------------------------------------------------------------------------------ | |
| #Windows | |
| run ZAP via the command line, you will need to locate the ZAP startup script. | |
| C:\Program Files (x86)\OWASP\Zed Attack Proxy\zap.bat | |
| ------------------------------------------------------------------------------------------------------------------------------ | |
| #MacOS | |
| run ZAP via the command line, you will need to locate the ZAP startup script. | |
| /Applications/OWASP\ ZAP.app/Contents/Java/zap.sh | |
| ------------------------------------------------------------------------------------------------------------------------------ |
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 apt install cowsay | |
| cowsay <Text> | |
| echo "Hello" | cowsay | |
| cowsay -g <message> | |
| cowsay -e hh <hello> | |
| cowsay -l #List them with option -l | |
| cowsay -f <cowfile name> <message> |
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
| ============================================================================ | |
| #Wireshark installation directory: windows | |
| C:\Program Files (x86)\Wireshark>tshark.exe | |
| ============================================================================ | |
| tshark -D #list of available interfaces | |
| ============================================================================ | |
| capture | |
| ============================================================================ | |
| tshark -i 2 #start capturing traffic on interface n°2 | |
| tshark -i 2 -a duration:10 #capture for 10 seconds, then stop |
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
| ---------------------------------------------------------------------------------------------------- | |
| #how to update java windows 10 | |
| java control panel-update tab | |
| start menu-Type here to search-Environment Variables-System Variables | |
| C:\Program Files\Java\jdk-17.0.2 #Set the JAVA_HOME System Path | |
| %JAVA_HOME%\bin; #Confirm that the path to JAVA_HOME,Append the path to the JDK (up to the bin folder) as the PATH value | |
| ---------------------------------------------------------------------------------------------------- | |
| #Installing the JDK from the Command Line | |
| msiexec.exe /i installer.msi #Basic UI mode |
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
| ------------------------------------------------------------------------------------------------ | |
| $ kind create cluster --config baeldungConfig.yaml #create the cluster using the configuration file | |
| kind create cluster --image kindest/node:v1.20.7 #provide a specific version of the Kubernetes image | |
| $ kubectl cluster-info --context kind-baeldung-kind | |
| kubectl cluster-info dump --context kind-baeldung-kind | |
| $ kind get clusters | |
| $ docker ps | |
| $ kubectl get nodes |
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
| ---------------------------------------------------------------------------------------------------- | |
| #ubuntu server | |
| ---------------------------------------------------------------------------------------------------- | |
| #vmware workstation user authentication easy install bug, skip it | |
| ---------------------------------------------------------------------------------------------------- | |
| apt-get install tasksel | |
| #Select a Display Manager, GDM3 lightdm SDDM SLiM | |
| apt-get install lightdm | |
| #Choose a GUI, ubuntu-mate-core,lubuntu-core | |
| tasksel |
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
| --------------------------------------------------------------------------------------------------- | |
| Openstack Panel - Dashboard Horizon | |
| Network-Networks-Create Network | |
| Network-Network Name-testnetwork | |
| Subnet-Subnet Name-testnetwork_subnet | |
| Subnet-Network Address-10.66.35.0/24 | |
| Subnet-Gateway IP-10.66.35.1 | |
| Create |
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
| ----------------------------------------------------------------------------------------------------- | |
| perl -p -i -e -> Alter specific lines in files, | |
| works on multiple files out of the box,even if it encounters a problem with one of the files | |
| “perl pie” command | |
| perl -p -i -e 's/127\.0\.0\.1/0.0.0.0/g' * -> "127.0.0.1" is replaced with "0.0.0.0." | |
| perl -p -i -e 's#ORIGINAL#NEW_VALUE#' myfile1 myfile2 #replace a string on one or more files | |
| ------------------------------------------------------------------------------------------------------------------ | |
| perl -le 'map { $sum += -s } @ARGV; print $sum' -- *.pdf #total size of all non-hidden PDF files in current directory | |
| perl -le 'map { $sum += -s } @ARGV; print $sum' -- /var/log/apt/*.log |