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/python3 | |
import os | |
import datetime | |
from sqlalchemy import create_engine | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import Column, Integer, String, DateTime | |
from sqlalchemy.orm import sessionmaker | |
import argparse | |
from gymail.gymail import send_mail |
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/python2.7 | |
import os | |
import re | |
import glob | |
import datetime | |
import errno | |
from operator import itemgetter | |
def mkdir_p(path): |
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/python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import os | |
import sys | |
import traceback | |
import time | |
from datetime import datetime | |
from subprocess import Popen, PIPE |
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/python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import os | |
import sys | |
import traceback | |
import time | |
from datetime import datetime | |
from subprocess import Popen, PIPE |
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/python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import os | |
import sys | |
import traceback | |
from datetime import datetime | |
from subprocess import Popen,PIPE | |
import psycopg2 |
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/python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import os | |
import sys | |
import traceback | |
import time | |
from datetime import datetime | |
from subprocess import Popen, PIPE |
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/python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import os | |
import psycopg2 | |
import sys | |
from subprocess import Popen,PIPE | |
# Description: | |
# Deletes volumes, which are associated with failed jobs. |
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/python3 | |
import os | |
import sys | |
import subprocess | |
from subprocess import PIPE | |
# Description: | |
# - Mounts encfs before backups and unmonts afterwards. If mount fails the job will be cancled. | |
# - In your bacula job add: |
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
import code | |
import numpy as np | |
import os | |
import sympy as sp | |
import sympy | |
from fractions import Fraction | |
from numpy import * | |
from numpy.linalg import * | |
# Overwrite cos, sin of numpy with sympy. This could cause issues with other functions. If it |
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
usage() | |
{ | |
echo "./$0 [--verbose]" | |
} | |
VERBOSE=0 | |
if [ "$1" == "--verbose" ]; then | |
VERBOSE=1 | |
fi |
OlderNewer