Skip to content

Instantly share code, notes, and snippets.

View patrickjholloway's full-sized avatar

Patrick Holloway patrickjholloway

View GitHub Profile
@patrickjholloway
patrickjholloway / install.sh
Last active June 20, 2026 23:53
Levi Installation Script
#!/usr/bin/env bash
# Levi Installation Script
# Usage: curl -fsSL https://gist.github.com/patrickjholloway/fee78be2b6f25ef8a901ff41ababd940 | sh
#
# Detects Node.js, then launches the interactive TUI installer.
# For the legacy sequential installer: bash install-legacy.sh
set -euo pipefail
# ── Colors ────────────────────────────────────────────────────────────────────
@patrickjholloway
patrickjholloway / latest-mmio-api.json
Last active February 18, 2024 22:57
latest-mmio-api.json
{
"openapi": "3.0.0",
"paths": {
"/api/auth/login": {
"post": {
"operationId": "AuthController_login",
"parameters": [],
"requestBody": {
"required": true,
"content": {
#!/bin/zsh
cp -a . ../old-console
mkdir ../stashes
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> \"../stashes/" substr($1$2$3, 0, 40) ".diff\"" ) }'
cd ..
rm -rf ./console
git clone git@github.com:Kinvey/console.git
cd ./console
#!/bin/zsh
mkdir ../stashes
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> \"../stashes/" substr($1$2$3, 0, 40) ".diff\"" ) }'
cd ..
rm -rf ./console
git clone git@github.com:Kinvey/console.git
cd ./console
#!/bin/zsh
mkdir ../stashes
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> \"../stashes/" substr($1$2$3, 0, 40) ".diff\"" ) }'
cd ..
rm -rf ./console
git clone git@github.com:Kinvey/console.git
cd ./console
@patrickjholloway
patrickjholloway / datalinks.json
Last active March 24, 2017 15:14
/datalinks json response body
@patrickjholloway
patrickjholloway / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
fetchUserCount: function(){
Ember.$.getJSON('/s/1.json', function(data){
userData = JSON.parse(data);
this.content.set('userCount', userData.count); // or whatever your json contains
});
window.setTimeout(this.fetchUserCount, 5000);
@patrickjholloway
patrickjholloway / gist:7879397
Created December 9, 2013 19:35
git diff for my codez
commit fefdb75b6a6f99531fb8aaa29ee3a68572e26c8f
Author: Patrick Holloway <pholloway@patientslikeme.com>
Date: Mon Dec 9 14:32:22 2013 -0500
add ORE API calls to find and create survey invitations given a plm_user_id and a survey_session_id
diff --git a/lib/open_research_exchange.rb b/lib/open_research_exchange.rb
index 9e307ce..bddf3fa 100644
--- a/lib/open_research_exchange.rb
+++ b/lib/open_research_exchange.rb
let(:user){ FactoryGirl.create(:user, name: 'user_name') }
let(:project){ FactoryGirl.create(:project, name: 'project_name', description: 'project_description', owner: user, users: [user] ) }
let(:project_membership){ FactoryGirl.create(:project_membership, name: 'project_membership', user: user, project: project) }