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 | |
set -e | |
lines=`journalctl -u gitlab-runner --since "30 minutes ago" | wc -l` | |
echo "Number of lines in jogfile: $lines" | |
if [ "$lines" -le 1 ]; then | |
uptime=`awk '{print $0/60;}' /proc/uptime` | |
if [ $(echo "$uptime > 20" | bc) -ne 0 ]; then |
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
def checksum(number): | |
""" | |
Create a valid betalingskenmerk for the Dutch rabobank. | |
Generates a 16 digit number for the number received. The number should be a 15 digit long string. | |
There are no checks to validate the number. | |
:param number: String of numbers to convert to valid betalingskenmerk | |
:return: 16 digit long string with a valid betalingskenmerk | |
""" |