Skip to content

Instantly share code, notes, and snippets.

@githubfoam
githubfoam / cisco wireless controller cheat sheet
Last active November 3, 2021 08:26
cisco wireless controller cheat sheet
-----------------------------------------------------------------------------------------------------------------------
>show wlan summary
>show wlan apgroups
-----------------------------------------------------------------------------------------------------------------------
>show interface summary
-----------------------------------------------------------------------------------------------------------------------
@githubfoam
githubfoam / owasp zap proxy cheat sheet
Last active November 10, 2021 07:03
owasp zap proxy cheat sheet
------------------------------------------------------------------------------------------------------------------------------
#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
------------------------------------------------------------------------------------------------------------------------------
@githubfoam
githubfoam / linux sketches
Last active March 10, 2025 07:35
linux sketches
------------------------------------------------------------------------------------------
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>
@githubfoam
githubfoam / tshark cheat sheet
Last active November 7, 2026 10:25
tshark cheat sheet
============================================================================
#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
@githubfoam
githubfoam / java cheat sheet
Last active March 23, 2026 03:33
java cheat sheet
----------------------------------------------------------------------------------------------------
#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
@githubfoam
githubfoam / kind cheat sheet
Last active October 1, 2024 16:43
kind cheat sheet
------------------------------------------------------------------------------------------------
$ 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
@githubfoam
githubfoam / bbb big blue button cheat sheet
Last active April 11, 2022 05:50
bbb big blue button cheat sheet
------------------------------------------------------------------------------------------------------------------
bbb-conf --version
sudo bbb-conf --check | head -n2 # big blue botton version itself
$ cat /etc/bigbluebutton/bigbluebutton-release
BIGBLUEBUTTON_RELEASE=2.2.36
------------------------------------------------------------------------------------------------------------------
#By default, BigBlueButton server automatically remove the raw data for a recording after 14 days of its being published
#BigBlueButton cron job
/etc/cron.daily/bigbluebutton
@githubfoam
githubfoam / ubuntu server experience
Last active May 20, 2025 06:21
ubuntu server experience
----------------------------------------------------------------------------------------------------
#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
@githubfoam
githubfoam / openstack end user cheat sheet
Last active June 21, 2022 11:59
openstack end user cheat sheet
---------------------------------------------------------------------------------------------------
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
@githubfoam
githubfoam / perl script cheat sheet
Last active December 14, 2022 06:17
perl script cheat sheet
-----------------------------------------------------------------------------------------------------
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