Skip to content

Instantly share code, notes, and snippets.

Created December 29, 2015 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0299b536dabd8ee59529 to your computer and use it in GitHub Desktop.
Save anonymous/0299b536dabd8ee59529 to your computer and use it in GitHub Desktop.
#!/bin/bash
# http://matelight.rocks
j=0;
while true; do
for y in `seq 1 16`; do
for x in `seq 1 40`; do
#red
printf "\x$(printf "%x" "$((($x+$j)%255))")";
#green
printf "\x$(printf "%x" "$((($x+$y+$j)%255))")";
#blue
printf "\x$(printf "%x" "$((($y+$j)%255))")";
done
done > buffer.crap;
j=$(($j+23));
cat buffer.crap > /dev/udp/matelight.visitor.congress.ccc.de/1337;
done
@jaseg
Copy link

jaseg commented Dec 29, 2015

Awesome, I like /dev/tcp and /dev/udp

You can use ml.jaseg.net for DNS, that's a permanent DNS record tracking the matelight whereever it's going.

@jaseg
Copy link

jaseg commented Dec 29, 2015

btw, you can probably do without cat by using a direct redirection to /dev/udp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment