Skip to content

Instantly share code, notes, and snippets.

View PavelJurasek's full-sized avatar

Pavel Jurásek PavelJurasek

View GitHub Profile
#!/bin/bash
for f in `cat $1`; do
ping -c 1 -W 500 $f > /dev/null
rc=$?
if [[ rc -eq 2 ]]; then
echo $f;
fi;
done;
m(x) = x^8 + x^4 + x^3 + x + 1
a = 06 => x^2 + x
b = 2E => x^5 + x^3 + x^2 + x
a + b = x^5 + x^3 + 2x^2 + 2x
= x^5 + x^3
a * b = x^7 + x^6 + x^5 + 2x^4 + 2x^3 + x^2
= x^7 + x^6 + x^5 + x^2