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
events {} | |
http { | |
server { | |
server_name phw.devfra; | |
location = / { | |
proxy_pass https://phw.devfra:4200/ui; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; |
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
# Bash functions using fzf | |
####################################### | |
# Find a file with fzf and open it with `xdg-open`. | |
# ARGUMENTS: | |
# Root search path | |
####################################### | |
function f() { | |
# Without root search path $HOME is used by default | |
i="${@-~}" |
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 |
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
#!/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
#!/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 | |
# -*- 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 sys | |
import traceback | |
import time | |
from datetime import datetime | |
from subprocess import Popen, PIPE |
NewerOlder