This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative 'offline' | |
run Sinatra::Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Concept | |
include Neo4j::ActiveNode | |
property :name | |
def references | |
Reference.where(concept_uuid: uuid) | |
end | |
end | |
# example: Concept.first.references |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Append a key (passed as argument $1) to the ~/.ssh/authorized_keys | |
# file on a targed host. | |
DOT_SSH=".ssh" | |
AUTHORIZED_KEYS="$DOT_SSH/authorized_keys" | |
if [ ! -e $DOT_SSH ]; then | |
mkdir $DOT_SSH |
NewerOlder