Skip to content

Instantly share code, notes, and snippets.

View paulfitz's full-sized avatar
👻
boo!

Paul Fitzpatrick paulfitz

👻
boo!
View GitHub Profile
@paulfitz
paulfitz / docker-compose.yml
Created March 31, 2022 15:47
Running Grist with traefik-forward-auth
# You need to set PROVIDERS_GOOGLE_CLIENT_ID, PROVIDERS_GOOGLE_CLIENT_SECRET,
# and to set DOMAIN and EMAIL in environment
# (e.g. DOMAIN=selfhosted.example.com EMAIL=example@getgrist.com docker compose up)
# The EMAIL will be used in a letsencrypt certificate, and will be the only user able to log in initially.
version: '3'
services:
reverse-proxy:
# Use Traefik for routing and certificate handling.
@paulfitz
paulfitz / ChumbyDockerFile
Created June 30, 2021 02:20 — forked from davidatroberts/ChumbyDockerFile
Dockerfile for Chumby SDK
FROM amd64/ubuntu:20.04
RUN apt-get update && apt-get install -y \
wget \
tar \
sudo \
cmake \
libc6-i386
RUN cd /tmp
RUN wget http://files.chumby.com/toolchain/arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
@paulfitz
paulfitz / find_coop.md
Created September 5, 2018 16:13
Sketch of the fields stored in find.coop

find.coop is primarily a database of Organizations with Locations.

Organization

field meaning type
name name of organization string
phone primary phone number string
@paulfitz
paulfitz / hstruct.rb
Created April 10, 2014 04:10
OpenStruct, modified to be interchangeable with regular instances
# OpenStruct, modified to be interchangeable with regular instances
# in a haxe translation
#
# The one difference with OpenStruct is that any lambda will get
# automatically called, as if it were a regular method:
# thing = HxOpenStruct.new
# thing.add_one = lambda{|x| x+1}
# thing.forty = 40
# thing.forty_two = lambda{ 42 }
@paulfitz
paulfitz / find_coop_schema.sql
Created May 19, 2018 14:47
current find.coop schema
CREATE TABLE tag_contexts (
id INTEGER NOT NULL,
name TEXT,
friendly_name TEXT,
PRIMARY KEY (id)
);
CREATE TABLE tags (
id INTEGER NOT NULL,
name TEXT,
root_id INTEGER,
@paulfitz
paulfitz / psv.json
Last active January 25, 2017 04:13
psv schema
{
"datapackage_version": "1.0-beta.7",
"name" : "PSV dialect",
"description" : "Shady partial schema for playing with",
"resources" : [
{
"dialect" : {
"csvddfVersion": 1.0,
"delimiter": "💩",
"doubleQuote": true,
@paulfitz
paulfitz / polydriver_test.cpp
Created March 8, 2011 23:06
Narrow down a memory allocation problem
#include <yarp/os/all.h>
#include <yarp/sig/all.h>
#include <yarp/dev/all.h>
#include <iostream>
using namespace yarp::os;
using namespace yarp::dev;
using namespace std;
@paulfitz
paulfitz / Makefile
Created December 21, 2010 13:51
This is format specification for table differences
default:
asciidoc tdiff_spec_draft.txt
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT

README is empty