Skip to content

Instantly share code, notes, and snippets.

View AnalogJ's full-sized avatar
🔥
Why is everything always broken?

Jason Kulatunga AnalogJ

🔥
Why is everything always broken?
View GitHub Profile
@AnalogJ
AnalogJ / config.yaml
Created February 28, 2024 00:08
Fasten Health Debug + Unsafe Endpoints config file
######################################################################
# Version
#
# version specifies the version of this configuration file schema, not
# the fasten binary. There is only 1 version available at the moment
version: 1
web:
allow_unsafe_endpoints: true
listen:
@AnalogJ
AnalogJ / complex-patient-source-sink.md
Last active May 29, 2023 05:12
DevDays - Answering Patient Questions using Graph Theory - Diagrams
graph LR;
  Patient --> Condition_A;
  Patient --> Condition_B;

  Condition_A --> Encounter_A;
  Encounter_A --> Location_A;
  Encounter_A --> Observation_A;
  Encounter_A --> Practitioner_A;
  Encounter_A --> DiagnosticReport_A;
@AnalogJ
AnalogJ / fastenhealth-cla.md
Created November 7, 2022 05:08
Fasten Health, Inc CLA

Fasten Health Individual Contributor License Agreement

In order to clarify the intellectual property license granted with Contributions from any person or entity, Fasten Health, Inc ("Fasten Health") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Fasten Health; it does not change your rights to use your own Contributions for any other purpose.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Fasten Health. Except for the license granted herein to Fasten Health and recipients of software distributed by Fasten Health, You reserve all right, title, and interest in and to Your Contributions.

Definitions.

"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Fasten Health. For legal

@AnalogJ
AnalogJ / personal-cla.md
Last active September 29, 2022 03:10
Personal CLA

Jason Kulatunga Individual Contributor License Agreement

In order to clarify the intellectual property license granted with Contributions from any person or entity, Jason Kulatunga must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Jason Kulatunga; it does not change your rights to use your own Contributions for any other purpose.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Jason Kulatunga. Except for the license granted herein to Jason Kulatunga and recipients of software distributed by Jason Kulatunga, You reserve all right, title, and interest in and to Your Contributions.

Definitions.

"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Jason Kulatunga. For legal entities

@AnalogJ
AnalogJ / download_opds.py
Created August 29, 2017 01:54
download all books in OPDS catalog.
import urllib2
import os
import urllib, urlparse
import xml.etree.cElementTree as et
e = et.ElementTree(file=urllib2.urlopen('https://standardebooks.org/opds/all')).getroot()
print(e)
print("parsing")
for atype in e.iter('{http://www.w3.org/2005/Atom}link'):
@AnalogJ
AnalogJ / GIF-Screencast-OSX.md
Created August 25, 2017 04:13 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@AnalogJ
AnalogJ / keybase.md
Created May 3, 2016 00:25
keybase.md

Keybase proof

I hereby claim:

  • I am analogj on github.
  • I am analogj (https://keybase.io/analogj) on keybase.
  • I have a public key whose fingerprint is 3622 45F4 CC04 8DBD F5E9 AA2F 8CBB DF95 5412 11AB

To claim this, I am signing this object:

@AnalogJ
AnalogJ / rss feed
Created July 19, 2015 21:23
superfeedr payload
service | 2015-07-19T21:19:03.180407900Z I, [2015-07-19T21:19:03.179285 #1] INFO -- : PAYLOAD: {
service | 2015-07-19T21:19:03.180407900Z "status": {
service | 2015-07-19T21:19:03.180407900Z "code": 304,
service | 2015-07-19T21:19:03.180407900Z "http": "Fetched (ring) 304 900",
service | 2015-07-19T21:19:03.180407900Z "nextFetch": 1437341161,
service | 2015-07-19T21:19:03.180407900Z "velocity": 0.5,
service | 2015-07-19T21:19:03.180407900Z "popularity": 0.92,
service | 2015-07-19T21:19:03.180407900Z "period": 900,
service | 2015-07-19T21:19:03.180407900Z "lastFetch": 1437340261,
service | 2015-07-19T21:19:03.180407900Z "lastParse": 1437337372,
@AnalogJ
AnalogJ / sails_ducktyping_for_background_tasks.js
Created July 21, 2014 21:27
Ducktyping Sailsjs for Background Tasks via Kue. See http://blog.thesparktree.com
var _ = require('lodash'),
Waterline = require('waterline'),
path = require('path'),
url = require('url'),
kue = require('kue'),
redis = require('../../node_modules/sails/node_modules/socket.io/node_modules/redis'),
q = require('q')
////////////////////////////////////////////////////////////////////
@AnalogJ
AnalogJ / init.d-hub
Created October 10, 2013 06:25
Daemons, init.d, symlinks, Control file
#!/usr/bin/env ruby
$: << File.expand_path(File.dirname(File.realpath(__FILE__)))
$: << File.expand_path(File.dirname(File.symlink?(__FILE__) ? File.readlink(__F$
require 'rubygems'
require 'daemons'
require 'bundler'
puts File.expand_path(File.dirname(File.realpath(__FILE__)))
ENV['BUNDLE_GEMFILE'] = File.expand_path('Gemfile',File.dirname(File.realpath(_$
Bundler.require