Skip to content

Instantly share code, notes, and snippets.

View lukecampbell's full-sized avatar

Luke Campbell lukecampbell

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lukecampbell
lukecampbell / download_isos.sh
Created February 19, 2016 19:44
Example shell script to generate a folder of ISOs
#!/bin/bash
# Examples:
# download_isos.sh /tmp/waf http://cbibs-dev.asa.rocks/thredds/catalog/stations/WaterQuality/44064/2015/catalog.xml
# download_isos.sh /tmp/waf http://sos.maracoos.org/stable/agg_catalog.html
# download_isos.sh /tmp/waf http://tds.glos.us/thredds/catalog/glos/habs/catalog.html
NC_ISO_PATH=$HOME/lib/ncISO-2.3.jar
CLASSPATH=$HOME/lib
OUTPUT=$1
#!/usr/bin/eng python
#-*- coding: utf-8 -*-
'''
'''
from multiprocessing import Pool
import sys
import os
def task(path):

URL Info

POST /api/series

Content-type: application/json;charset=utf-8
Accept: application/json;charset=utf-8

On error

@lukecampbell
lukecampbell / fix_text.py
Created January 22, 2016 13:42
Replaces terminal escape characters with a space
#!/usr/bin/env python
import sys
def valid_character(i):
return ord(i) < 128 and (ord(i) > 31 or ord(i) == 10 or ord(i) == 0)
def main(args):
'''
@lukecampbell
lukecampbell / Making Pretty Profiles.ipynb
Created January 15, 2016 16:08
Generating Profile Plots from GliderDAC
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.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCU1iLY+1zoKuPmNH7TJfjG3i1Ph/XdVAIH/JizOmwUlnZ1INNXiuT9SkmLoiemNMqF4IAEOT0OqbBGOx+5av1R/xHOvqBm5LqSlEgiv6mK2kO4DGjpmhgeoGZ+hBS3CKiLvLbdOHBvkS5gqL1tlEhjBLaVjYkaaDFlhinQ8AembroJp2ZS4bWXt2lQr1LjnBcWFMcOuufZRhvzG0Af9aqMxbypRs7Qamcn5iq34XRqf2RHJZTwe/WWAjbQb5F6q6oEeuqAOisdAhm0wtgNWAJvyzLywqqU306ppD34CswUlJJC6MPwMZWPyjQjliJcWiop6mgtvubuh739QtNzthZV [email protected]
@lukecampbell
lukecampbell / glc-alias
Created December 3, 2015 17:29
glc alias
glc='git log --color --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --'
@lukecampbell
lukecampbell / sample.py
Created November 19, 2015 20:37
using compliance checker
#!/usr/bin/env python
from compliance_checker.runner import CheckSuite
import base64
import logging
import requests
import json
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)