This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test_1.py | |
def test_w_number(): | |
""" | |
Correctly Passes | |
Examples | |
-------- | |
>>> 1. # doctest: +NUMBER | |
0. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
ping -c 1 192.168.0.1 > /dev/null 2>&1 | |
if [ $? -ne 0 ] | |
then | |
date | |
ifconfig wlan0 | |
sudo ip link set wlan0 down | |
sudo ip link set wlan0 up | |
ifconfig wlan0 | |
fi |