Skip to content

Instantly share code, notes, and snippets.

View lukecampbell's full-sized avatar

Luke Campbell lukecampbell

View GitHub Profile
@lukecampbell
lukecampbell / sp041.cdl
Last active December 7, 2016 13:30
Example Changes from Glider QARTOD
netcdf sp041-20161206T023000_rt {
dimensions:
time = 97 ;
traj_strlen = 20 ;
variables:
char trajectory(traj_strlen) ;
trajectory:cf_role = "trajectory_id" ;
trajectory:comment = "A trajectory is a single deployment of a glider and may span multiple data files." ;
trajectory:long_name = "Trajectory/Deployment Name" ;
@lukecampbell
lukecampbell / bbox.geojson
Created November 15, 2016 14:05
Bounding Box for the Great Lakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lukecampbell
lukecampbell / Dockerfile
Created November 8, 2016 14:25
Travis testing for compliance checker
FROM quay.io/travisci/travis-python:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN mkdir -p /home/travis/ioos/compliance-checker
COPY compliance_checker /home/travis/ioos/compliance-checker/compliance_checker
COPY cchecker.py LICENSE MANIFEST.in pytest.ini README.md requirements.txt setup.py test_requirements.txt tox.ini /home/travis/ioos/compliance-checker/
RUN chown travis:travis -R /home/travis/ioos/
COPY setup.sh test.sh /home/travis/
RUN chown travis:travis -R /home/travis/setup.sh /home/travis/test.sh
RUN chmod +x /home/travis/setup.sh /home/travis/test.sh
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lukecampbell
lukecampbell / solution.md
Created November 3, 2016 14:44
Fixing ulimit issue for thredds
/var/lib/tomcat/applications/thredds-4.3/bin/setenv.sh: line 3: ulimit: open files: cannot modify limit: Operation not permitted

The tomcat setenv.sh script will sometimes (and often for THREDDS) attempt to set the open-file limit using ulimit. To allow this user to actually set a hard limit.

tomcat hard nofile 65536
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.