Skip to content

Instantly share code, notes, and snippets.

Avatar

Joe Rowley joer14

View GitHub Profile
View cb.yml
name: curebase
windows:
- name: curebase
root: ~/work/Curebase/server
focus: true
# layout: main-vertical
layout: b51c,258x58,0,0{103x58,0,0,1,154x58,104,0[154x21,104,0,2,154x17,104,22,33,154x18,104,40,3]}
panes:
- commands:
- export NODE_ENV='development'
@joer14
joer14 / cb.yml
Created Jun 19, 2020
teamocil Curebase config
View cb.yml
name: curebase
windows:
- name: curebase
root: ~/work/Curebase/server
focus: true
# layout: main-vertical
layout: b51c,258x58,0,0{103x58,0,0,1,154x58,104,0[154x21,104,0,2,154x17,104,22,33,154x18,104,40,3]}
panes:
- commands:
- export NODE_ENV='development'
@joer14
joer14 / pdf-form-fill.js
Created Sep 11, 2019
I hacked pdf-form-fill to support multiline text. Only works if you explicitly specify `defaultTextOptions` when calling `fillForm`
View pdf-form-fill.js
var hummus = require('hummus'),
_ = require('lodash');
/**
* toText function. should get this into hummus proper sometimes
*/
function toText(item) {
if(item.getType() === hummus.ePDFObjectLiteralString) {
return item.toPDFLiteralString().toText();
}
@joer14
joer14 / rds_download_log.py
Last active Mar 30, 2021
workaround for downloading rds logs via the AWS REST interface. This uses the IAM credentials for the session so should 'just work' on a lambda without needing to hardcode credentials/pass them in via environmental variables etc.
View rds_download_log.py
"""
Craft a web request to the AWS rest API and hit an endpoint that actually works but isn't supported in the CLI or in Boto3.
Based on this: https://github.com/aws/aws-cli/issues/2268#issuecomment-373803942
"""
import boto3
import os
import sys, os, base64, datetime, hashlib, hmac, urllib
import requests
View gist:b1630715fd5866312f169310ba798a38
org-amitahealth,4.0.10,2.0.4
org-ufhealth,3.21.3,NA
org-fx,3.19.2,NA
org-drchrono,NA,NA
org-ketteringhealth,4.0.10,NA
org-demo-ehr,NA,NA
org-jhmi,4.0.7,NA
org-demo-cerner,NA,NA
org-jhm,4.0.7,NA
org-demo,4.0.7,0.13.1
View -
#!/usr/local/bin/python
import requests
import json
import datetime
import time
import emoji
import random
#
key = 'MW9S-E7SL-26DU-VV8V'
url = 'http://api.bart.gov/api/etd.aspx?json=y&cmd=etd&orig=12th&dir=n&key='+key
View getStravaData3.py
import requests
import json
import datetime
import time
from datetime import timedelta, date
import pandas as pd
'''
@joer14
joer14 / gist:ee512a454fb41205cc82be386a0e9fe7
Last active Sep 14, 2017
zappa_static_s3_frontend.py
View gist:ee512a454fb41205cc82be386a0e9fe7
#!/usr/bin/env python
import os
import boto3
import botocore
import json
import mimetypes
'''
--- this does not work yet! I still need to add stuff for configuring api gateway correctly.
Currently just creates buckets and configures them for website hosting, and sets a public policy to the buckets.
@joer14
joer14 / package.json
Last active Oct 11, 2016
Boilerplate NPM Install Issue
View package.json
{
"name": "TCPI",
"version": "0.1.0",
"license": "IHA",
"description": "",
"repository": {
"type": "git",
"url": "ssh://phabricator.iha.org/diffusion/1/dh_frontend.git"
},
"engines": {
View keybase.md

Keybase proof

I hereby claim:

  • I am joer14 on github.
  • I am joer (https://keybase.io/joer) on keybase.
  • I have a public key whose fingerprint is 15D1 9049 CB27 AFD7 1541 7290 4C61 B722 3314 B1B4

To claim this, I am signing this object: