- Markdown style
[](https://youtu.be/nTQUwghvy5Q)- HTML style
<a href="http://www.youtube.com/watch?feature=player_embedded&v=nTQUwghvy5Q" target="_blank">| # Heavily inspired by https://haluk.github.io/posts-output/2020-10-19-linux/ | |
| # Replace <IFNAME> with wifi device name | |
| # Replace <IDENTITY> with student identity (i.e. <USERNAME>@ntnu.no) | |
| # Replace <PASSWORD> with user password | |
| nmcli con add \ | |
| type wifi \ | |
| ifname <IFNAME> \ | |
| con-name eduroam \ | |
| ssid eduroam \ |
| /* | |
| Copyright (c) 2014-2020 Electronic Cats SAPI de CV. All right reserved. | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either | |
| version 2.1 of the License, or (at your option) any later version. | |
| This library is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| from contextlib import contextmanager | |
| import logging | |
| @contextmanager | |
| def all_logging_disabled(highest_level=logging.CRITICAL): | |
| """ | |
| A context manager that will prevent any logging messages | |
| triggered during the body from being processed. | |
| :param highest_level: the maximum logging level in use. |