Skip to content

Instantly share code, notes, and snippets.

View smacfarlane's full-sized avatar

Scott Macfarlane smacfarlane

  • Seattle, Washington
View GitHub Profile

Keybase proof

I hereby claim:

  • I am smacfarlane on github.
  • I am smacfarlane (https://keybase.io/smacfarlane) on keybase.
  • I have a public key ASCNWRXx-KVdj-7OaXCG2V4FYZS4FWBrCIUa-uTV1Ay23Qo

To claim this, I am signing this object:

@smacfarlane
smacfarlane / gdal_translate.rb
Created December 9, 2016 16:44
Inspec Custom Matcher
require 'net/http'
require 'fileutils'
class GdalTranslate < Inspec.resource(1)
name 'gdal_translate'
def initialize(remote_file)
uri = URI.parse(remote_file)
@response = Net::HTTP.get(uri)
@filename = File.basename(uri.path)
[2][default:/src:1]# RUST_LOG=debug RUST_BACKTRACE=1 hab pkg install results/uafgina-demo-0.0.1-20160927215857-x86_64-linux.hart
DEBUG:habitat_common::ui: InputStream(stdin): { is_a_terminal(): true }
DEBUG:habitat_common::ui: OutputStream(stdout): { is_colored(): false, supports_color(): false, is_a_terminal(): true }
DEBUG:habitat_common::ui: OutputStream(stderr): { is_colored(): false, supports_color(): false, is_a_terminal(): true }
DEBUG:hab: clap cli args: ["hab", "pkg", "install", "results/uafgina-demo-0.0.1-20160927215857-x86_64-linux.hart"]
DEBUG:hab: remaining cli args: []
DEBUG:habitat_http_client::ssl: Setting CA file for SSL context to: /hab/pkgs/core/cacerts/2016.04.20/20160612081125/ssl/cert.pem
DEBUG:habitat_http_client::api_client: User-Agent: hab/0.9.3/20160916191534 (x86_64-linux; 4.1.18-boot2docker)
DEBUG:habitat_core::package::archive: content = core/busybox-static/1.24.2/20160926152859
[2][default:/src:1]# hab --version
hab 0.9.3/20160916191534
[3][default:/src:0]# hab pkg install results/uafgina-demo-0.0.1-20160927220233-x86_64-linux.hart
✗✗✗
✗✗✗ No such file or directory (os error 2)
✗✗✗
[4][default:/src:1]# hab pkg install core/busybox-static
» Installing core/busybox-static
↓ Downloading core/busybox-static/1.24.2/20160926152859
510.95 KB / 510.95 KB \ [===========================================================================================================================================================================================================================================================================] 100.00 % 2.54 MB/s
pkg_name="demo"
pkg_version="0.0.1"
pkg_maintainer="demo"
pkg_license=('MIT')
pkg_source=nosuchfile.tar.gz
pkg_deps=()
do_build() {
return 0
}
# Script name
scriptName = os.path.basename(__file__);
scriptPath = os.path.dirname(__file__);
# Start timer
startTime = time.time()
######
# System executables
######
PSP_CONFIG_FILE: code/../pyspectral_rsr_data/pyspectral.cfg
#############################################################
viirs_AK_awips_processing_atGINA.py began at 2016-09-12 23:03:34.635140
* Source directory: /home/vagrant/npp.20160906/
* Cleaning up temp dir (code/../sandbox)
INFO : Creating output from data mapped to grid 203
INFO : Writing product vis07 to AWIPS NetCDF file
INFO : Writing product vis06 to AWIPS NetCDF file
ERROR : Could not get information on product from backend configuration file
ERROR : Could not create output for 'vis05'
INFO : Writing product vis04 to AWIPS NetCDF file
INFO : Writing product vis03 to AWIPS NetCDF file
INFO : Writing product vis02 to AWIPS NetCDF file
INFO : Writing product vis01 to AWIPS NetCDF file
@smacfarlane
smacfarlane / gist:a10b73f08fc54b051b2a
Last active August 29, 2015 14:21
Packer qemu template
{
"builders": [
{
"type": "qemu",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.6/ks.cfg<enter><wait>"
],
"boot_wait": "2s",
"disk_size": 20480,
"format": "qcow2",
@smacfarlane
smacfarlane / smacfarl_workstation
Last active August 29, 2015 13:56
Workstation CHRUBY
smacfarl@soup:~/workspace/chef/roles$ chruby
1.9.3-p392
1.9.3-p448
* 1.9.3-p484
2.0.0-p247
2.0.0-p353
2.1.0