Skip to content

Instantly share code, notes, and snippets.

View thisbailiwick's full-sized avatar

Kevin Clark thisbailiwick

View GitHub Profile
ls -l | grep -v '^d' | wc -l
grep --color=always -A 10 -B 10 'Fatal' wp-content/debug.log
# Linux
find dir1 dir2 -type f \( -name "*.txt" -o -name "*.md" -o -name "*.html" -o -name "*.css" -o -name "*.js" \) -exec grep -l "video-bg-poster.png" {} + | xargs sed -i 's/video-bg-poster.png/video-bg-poster.webp/g'
# Mac
find dir1 dir2 -type f \( -name "*.txt" -o -name "*.md" -o -name "*.html" -o -name "*.css" -o -name "*.js" \) -exec grep -l "video-bg-poster.png" {} + | xargs sed -i '' 's/video-bg-poster.png/video-bg-poster.webp/g'
Scenario: Summary of scenario 1
Given
When
Then
sudo arp-scan --interface=en0 --localnet
# or
while true; do
sudo arp-scan --interface=en0 --localnet
sleep 10 # Wait for 10 seconds before scanning again
done
# That will keep scanning
alias ddc='ddev config --php-version "8.1" --database "mysql:8.0" --webserver-type "apache-fpm"'
watch -n 1 "netstat -tuln"
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains https://example.com