On the Paris Diderot campus, there’s a a private WiFi hotspot. To get connected to the Internet, you must connect your computer to the WiFi hotspot, then open a random page in a browser, get redirected, accept the HTTPS warning, then enter your login & password, submit a form, and you’re connected. That’s pretty annoying.
So, in March 2012, I wrote a Ruby script that automatically connects me to the WiFi. I put it there because it could be useful for other students.
Note: this is one of the very first Ruby scripts I’ve ever written, so expect ugly code :)
ruby src/up7connect.rbThe first time it asks you for your login/password. It works on Ubuntu and should work on macOS and other UNIX-like OSes.