curl -ks "https://ipv4.myip.info/"
curl -ks "https://ifconfig.me/"
echo '95.213.11.181' | awk -v OFS="." -F"." '{ print $4,$3,$2,$1,"in-addr.arpa" }'
whois $(dig -t a "vk.com" @62.76.76.62 | grep '^[^;].*IN.*A.*' | head -1 | grep -o '\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}') | \
grep '^origin:' | sed -e 's/[ ]//g' | cut -d':' -f2
curl -s "https://stat.ripe.net/data/announced-prefixes/data.json?preferred_version=1.1&resource=AS12389" | \
jq '.data.prefixes[].prefix' | \
tr -d '"' | sort -n -t . -k1,1 -k2,2 -k3,3 -k4,4 | uniq
nmap -sL -n 95.142.206.0/24 | \
grep "Nmap scan report for" | \
awk '{ print $NF}' | tail -n +2 | head -n -1
curl -s https://bgpstuff.net/asname/29648
nmap -sL 95.142.206.0/24 | \
grep "^Nmap scan" | sed -e 's/^Nmap scan report for //g' | \
sed -e 's/\(.*\)(\(.*\))/\2 \1/g'
ssh ${HOST} "tar cvzf - ${SOURCE}" > ${DESTINATION}.tar.gz
Get run command of started container:
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro assaflavie/runlike <CONTAINER_NAME>
curl -s "https://www.cbr-xml-daily.ru/daily_json.js" | \
jq '.Valute.USD.Value'
curl -s "https://api.coinmarketcap.com/v1/ticker/" | \
jq '.[] | select(.id == "bitcoin").price_usd' | tr -d '"'
wget -q -O - https://mikrotik.com/download | xmllint --debug --html --xpath '(//table[@class = "table downloadTable"]/thead//th[2])[last()]/text()' - 2>/dev/null
wget -q -O - https://mikrotik.com/download | xmllint --debug --html --xpath '(//table[contains(@class, "downloadTable")]/thead//th[2])[last()]/text()' - 2>/dev/null
#!/bin/sh
echo $1 | \
sed 'y/АБВГДЖЗИЙКЛМНОПРСТУФХЫЭЕ/ABVGDJZIJKLMNOPRSTUFHYEE/' | \
sed 's/[ЬЪ]//g; s/Ё/Yo/g; s/Ц/Ts/g; s/Ч/Ch/g; s/Ш/Sh/g; s/Щ/Sch/g; s/Ю/yu/g; s/Я/Ya/' | \
sed 'y/абвгджзийклмнопрстуфхыэе/abvgdjzijklmnoprstufhyee/' | \
sed 's/[ьъ]//g; s/ё/yo/g; s/ц/ts/g; s/ч/ch/g; s/ш/sh/g; s/щ/sch/g; s/ю/yu/g; s/я/ya/'
cat /proc/sys/kernel/random/uuid
find / -type f -size +100M -exec ls -lh {} \; | awk '{ print $9 "|| Size : " $5 }'
cat /var/log/nginx/access.log | awk '{print $4}' | uniq -c | sort -rn | head
apt-get update && apt-get upgrade -y && apt dist-upgrade && apt-get clean && apt-get autoremove \
&& helm repo update \
&& sudo -i -u ${USER} /home/${USER}/.linuxbrew/bin/brew update && sudo -i -u ${USER} /home/${USER}/.linuxbrew/bin/brew upgrade \
&& snap refresh \
&& upgrade_oh_my_bash
git status -s | while read mode file; do echo $mode $file $(stat -f "%Sm %N" -t "%Y-%m-%d %H:%M:%S" $file); done | grep "$(date +%Y-%m)"