Skip to content

Instantly share code, notes, and snippets.

View CliffordAnderson's full-sized avatar

Clifford Anderson CliffordAnderson

View GitHub Profile
@CliffordAnderson
CliffordAnderson / stopwords.txt
Created September 13, 2019 14:05
BaseX Stopword List
a
about
above
across
after
afterwards
again
against
all
almost
@CliffordAnderson
CliffordAnderson / 2019-19-08.md
Created August 19, 2019 16:20
Chinese Vocabulary

好久 不错 那。。。 有意思 周末 别人 有的时候 常常 外国 所以

@CliffordAnderson
CliffordAnderson / products.jsonl
Created August 19, 2019 16:02
Testing for Rumble
{ "product" : "broiler", "store number" : 1, "quantity" : 20 }
{ "product" : "toaster", "store number" : 2, "quantity" : 100 }
{ "product" : "toaster", "store number" : 2, "quantity" : 50 }
{ "product" : "toaster", "store number" : 3, "quantity" : 50 }
{ "product" : "blender", "store number" : 3, "quantity" : 100 }
{ "product" : "blender", "store number" : 3, "quantity" : 150 }
{ "product" : "socks", "store number" : 1, "quantity" : 500 }
{ "product" : "socks", "store number" : 2, "quantity" : 10 }
{ "product" : "shirt", "store number" : 3, "quantity" : 10 }
@CliffordAnderson
CliffordAnderson / install.sh
Last active August 8, 2019 19:38
Omeka-S on Debian w/Docker Compose
curl -sSL https://get.docker.com | sh
curl -L https://github.com/docker/compose/releases/download/1.25.0-rc2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo apt update
sudo apt install git
git clone https://github.com/scholarslab/omeka-s-docker.git
cd omeka-s-docker/
sudo docker-compose up -d
version: "2"
services:
mysql:
image: mysql:latest
restart: always
networks:
- network1
volumes:
- mysql:/var/lib/mysql

Installing Omeka on AWS Lightsail

  1. Login to Amazon Lightsail
  2. Select a Platform: Select Linux/Unix
  3. Select a Blueprint: Select "OS Only," then select "Ubuntu 18.04 LTS"
  4. Add a Launch Script: Click the plus sign, then copy and paste this text into the box
  5. Choose your instance plan: Select the "$5 USD" per month plan
  6. Identify your instance: Give your instance a name like "CBA-Omeka-Dev"
  7. Click "Create Instance"
  8. After the instance has been created, connect to its IP address.
#!/bin/bash
# install latest version of docker the lazy way
curl -sSL https://get.docker.com | sh
# make it so you don't need to sudo to run docker commands
usermod -aG docker ubuntu
# install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
@CliffordAnderson
CliffordAnderson / correspondents.geojson
Last active July 8, 2019 15:27
Data from XML2RDF Workshop
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CliffordAnderson
CliffordAnderson / dockerfile
Created July 1, 2019 20:54
Files for Google Cloud Run
FROM basex/basexhttp:latest
MAINTAINER Clifford Anderson <anderson.clifford@gmail.com>
COPY ./timedate.xq /srv/basex/webapp
CMD basexhttp -h8080
@CliffordAnderson
CliffordAnderson / example.json
Created June 18, 2019 18:04
GeoJSON example
{
"type": "Feature",
"properties": {
"title": "Hippo House",
"series": "Spring 2018",
"tour": "zoo",
"marker-size": "small",
"marker-symbol": "zoo",
"images": [
{