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
#!/usr/bin/env python | |
import xml.etree.ElementTree as ET | |
import requests | |
url = 'https://<ZIMBRA_SERVER_URL>:7071/service/admin/soap' | |
headers = { 'Content-Type': 'application/soap+xml' } | |
# Get the credentials through zmlocalconfig | |
# zmlocalconfig zimbra_user |
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
import click | |
import numpy as np | |
import rasterio | |
def find_dark_object_value(arr): | |
"""Find the value of the dark object | |
ie the first dark value that is not an outlier | |
""" | |
preval = None |
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 | |
# Create delegated administrator on Zimbra 8.x FOSS Edition | |
# Credits to barrydegraaff: https://gist.github.com/barrydegraaff/d1549d7e3f1951067da2 | |
# Warning: MUST be use as ZIMBRA user and DOMAIN variable MUST be set | |
# Delegated admin can create/modify accounts, alias, distribution lists and resources | |
# Domain of concern to be changed | |
DOMAIN='example.com' |
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 | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream |