Skip to content

Instantly share code, notes, and snippets.

@thuitaw
thuitaw / gist:6d9ba5ddf2c950a91d6d50b8718ebe14
Created September 19, 2023 05:37
calculate bounding box
lat, lon = -1.019229839313624, 35.00213001168837
buffer_lat, buffer_lon = 0.05, 0.05
time_period = ('2020')
output_crs = 'epsg:6933'
#join lat,lon,buffer to get bounding box
lon_range = (lon - buffer_lon, lon + buffer_lon)
#!/bin/bash
GREP_OPTIONS=''
cookiejar=$(mktemp cookies.XXXXXXXXXX)
netrc=$(mktemp netrc.XXXXXXXXXX)
chmod 0600 "$cookiejar" "$netrc"
function finish {
rm -rf "$cookiejar" "$netrc"
}
2018-03-26T19:21:47.964026 Got extra args to `run` command [container.core] arguments={'debug': True, 'devel': False, 'selinux': True, 'subcommand': 'run', 'service': [], 'detached': False, 'vault_files': [], 'vault_password_file': None, 'roles_path': [], 'with_volumes': [], 'volume_driver': None, 'with_variables': [], 'production': False} caller_file=/Users/thuita/.local/share/virtualenvs/server-configuration-UWykhGFB/lib/python3.6/site-packages/container/core.py caller_func=hostcmd_run caller_line=238
2018-03-26T19:21:48.010810 The default type is [container.config] caller_file=/Users/thuita/.local/share/virtualenvs/server-configuration-UWykhGFB/lib/python3.6/site-packages/container/config.py caller_func=_resolve_defaults caller_line=189 config=<class 'ruamel.yaml.comments.CommentedMap'> defaults=<class 'container.utils.ordereddict.WrappedOrderedDict'>
2018-03-26T19:21:48.011925 Getting environment variables... [container.config] caller_file=/Users/thuita/.local/share/virtualenvs/server-configura
@thuitaw
thuitaw / gist:c2a4c02a840d5f3ee081ba4ba4bb5a8d
Created March 26, 2018 16:18
ansible-container build output
2018-03-26T19:16:26.171645 The default type is [container.config] caller_file=/Users/thuita/.local/share/virtualenvs/server-configuration-UWykhGFB/lib/python3.6/site-packages/container/config.py caller_func=_resolve_defaults caller_line=189 config=<class 'ruamel.yaml.comments.CommentedMap'> defaults=<class 'container.utils.ordereddict.WrappedOrderedDict'>
2018-03-26T19:16:26.172807 Getting environment variables... [container.config] caller_file=/Users/thuita/.local/share/virtualenvs/server-configuration-UWykhGFB/lib/python3.6/site-packages/container/config.py caller_func=_get_environment_variables caller_line=205
2018-03-26T19:16:26.174001 Read environment variables [container.config] caller_file=/Users/thuita/.local/share/virtualenvs/server-configuration-UWykhGFB/lib/python3.6/site-packages/container/config.py caller_func=_get_environment_variables caller_line=210 env_vars={}
2018-03-26T19:16:26.174927 Resolved template variables [container.config] caller_file=/Users/thuita/.local/share/vir