Skip to content

Instantly share code, notes, and snippets.

@alen-z
alen-z / cups-test.sh
Last active September 27, 2024 08:25
CUPS check
#!/bin/bash
# ANSI color codes
RED='\033[0;31m'
NC='\033[0m' # No Color
check_port_631() {
if lsof -i :631 2>/dev/null | grep -qE "LISTEN|:631" || netstat -anu 2>/dev/null | grep -q ":631"; then
echo -e "${RED}Port 631 UDP is open. Action required!${NC}"
else
Response: .www.walmart.com
Starting Nmap 7.93 ( https://nmap.org ) at 2023-03-11 14:19 CET
Nmap scan report for www.walmart.com (2.21.184.128)
Host is up (0.024s latency).
rDNS record for 2.21.184.128: a2-21-184-128.deploy.static.akamaitechnologies.com
PORT STATE SERVICE
443/tcp open https
| ssl-cert: Subject: commonName=www.walmart.com/organizationName=Walmart Inc./stateOrProvinceName=Arkansas/countryName=US
| Subject Alternative Name: DNS:www.walmart.com, DNS:beta.walmart.com, DNS:grocery.walmart.com, DNS:walmart.pharmacy, DNS:walmartspecialty.pharmacy, DNS:www.wal-mart.com, DNS:walmart.com
*.1ucrs.com
*.35mules.com
*.42-q.com
*.42-q.io
*.a0.usfoods.com
*.abc.xyz
*.about.nordstrom.com
*.activatethecard.com
*.activision.com
*.activisionblizzard.com
# Suppress SSH warnings
export ANSIBLE_HOST_KEY_CHECKING=False
# Speed up playbook run
export ANSIBLE_PIPELINING=True
export ANSIBLE_SSH_EXTRA_ARGS="-o ControlMaster=auto -o ControlPersist=60s"
export ANSIBLE_FORKS=30
# Follow progress during playbook run
export ANSIBLE_CALLBACK_WHITELIST=profile_tasks
We can't make this file beautiful and searchable because it's too large.
fing_src,"fing_dest","rtt_avg_ms"
aws-me-south-1b,www.halliburton.com,0.14
aws-me-south-1b,www.campbellsoupcompany.com,0.14
aws-me-south-1b,www.bostonscientific.com,0.14
aws-me-south-1b,www.eastman.com,0.14
aws-me-south-1b,www.weyerhaeuser.com,0.14
aws-me-south-1b,www.motorolasolutions.com,0.14
aws-me-south-1b,www.dxc.technology,0.15
aws-me-south-1b,www.uhsinc.com,0.15
We can't make this file beautiful and searchable because it's too large.
fing_src,"fing_dest","rtt_avg_ms"
aws-me-south-1b,www.halliburton.com,0.14
aws-me-south-1b,www.weyerhaeuser.com,0.14
aws-me-south-1b,www.campbellsoupcompany.com,0.14
aws-me-south-1b,www.motorolasolutions.com,0.14
aws-me-south-1b,www.bostonscientific.com,0.14
aws-me-south-1b,www.eastman.com,0.14
aws-me-south-1b,www.agcocorp.com,0.15
aws-me-south-1b,www.uhsinc.com,0.15
We can't make this file beautiful and searchable because it's too large.
fing_src,"fing_dest","rtt_avg_ms"
gcp-instance-asia-northeast3-c,gcp-instance-asia-northeast3-b,0.31
gcp-instance-europe-west6-a,gcp-instance-europe-west6-b,0.34
gcp-instance-asia-southeast1-b,gcp-instance-asia-southeast1-c,0.36
gcp-instance-europe-west2-b,gcp-instance-europe-west2-c,0.36
gcp-instance-europe-west4-b,gcp-instance-europe-west4-c,0.36
gcp-instance-asia-northeast2-a,gcp-instance-asia-northeast2-b,0.37
aws-ap-south-1c,aws-ap-south-1a,0.37
gcp-instance-asia-northeast2-c,gcp-instance-asia-northeast2-b,0.37