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 | |
# Gather current power status | |
AC_POWER=`ioreg -l | grep ExternalConnected | cut -d"=" -f2 | sed -e 's/ //g'` | |
# Gather details about current wifi network | |
WIFI_NETWORK=`networksetup -getairportnetwork en0 | grep 'Current Wi-Fi Network' | cut -c 24-` | |
# Specify the name of your home / office wifi network here | |
HOME_WIFI=my_home_wifi |
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
""" | |
This code checks that an NHS number is of valid format based on the specified calculation and check digit. | |
It does NOT check that the NHS number is an active, valid NHS number according to the national NHS number database. | |
Requires: Python 3.6+ | |
""" | |
# NHS numbers must be ten numerical digits long | |
nhs_number = "1354554531" |
OlderNewer