This file contains hidden or 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
#!/usr/bin/env python3 | |
import argparse | |
import secrets | |
import string | |
def GetParser(): | |
parser = argparse.ArgumentParser(description="A very opinionated password generator.") | |
parser.add_argument( | |
'-a', '--lower', action='store_const', const=True, help='include lower case alphabets, default is true.') |
This file contains hidden or 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 google.com > /dev/null & wait $! | |
if [ $? != 0 ]; then | |
echo "$(date) Wifi down, resetting" >> /var/log/wifi.log | |
sudo ifdown wlan0 & wait $! | |
sudo ifup wlan0 & wait $! | |
else echo "$(date) Wifi up" >> /var/log/wifi.log | |
fi |