The systemd service daemon'izes the fantastic create_ap bash script by oblique
This file contains hidden or 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
[archlinuxfr] | |
SigLevel = Never | |
Server = http://repo.archlinux.fr/$arch |
This file contains hidden or 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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
This file contains hidden or 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
[Service] | |
Environment=PATH=/opt/java/bin:/usr/local/sbin:/usr/local/bin:/usr/bin | |
Environment=ES_HOME=/usr/share/elasticsearch | |
Environment=ES_INCLUDE=/usr/share/elasticsearch/bin/elasticsearch.in.sh |
This file contains hidden or 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
cd smile_v2/backend/assets/couchdb | |
curl -X PUT http://127.0.0.1:5984/smile/_design/activity --data-binary @./_design.activity.json | |
curl -X PUT http://127.0.0.1:5984/smile/_design/generic --data-binary @./_design.generic.json | |
curl -X PUT http://127.0.0.1:5984/smile/_design/group --data-binary @./_design.group.json | |
curl -X PUT http://127.0.0.1:5984/smile/_design/institution --data-binary @./_design.institution.json | |
curl -X PUT http://127.0.0.1:5984/smile/_design/resource --data-binary @./_design.resource.json | |
curl -X PUT http://127.0.0.1:5984/smile/_design/response --data-binary @./_design.response.json | |
curl -X PUT http://127.0.0.1:5984/smile/_design/session --data-binary @./_design.session.json | |
curl -X PUT http://127.0.0.1:5984/smile/_design/user --data-binary @./_design.user.json |
This file contains hidden or 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
# This is a general-purpose function to ask Yes/No questions in Bash, either | |
# with or without a default answer. It keeps repeating the question until it | |
# gets a valid answer. | |
ask() { | |
# http://djm.me/ask | |
local prompt default REPLY | |
while true; do |
This file contains hidden or 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
echo "hello" | |
echo "today wow" |
This file contains hidden or 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
[Unit] | |
Description=Start KA Lite Web Service | |
Addfter=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/kalite start | |
ExecStop=/usr/bin/kalite stop | |
RemainAfterExit=yes | |
Restart=always | |
RestartSec=30 |
This file contains hidden or 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
$ brew update && brew doctor # Repeat, until you've done *all* the Dr. has ordered! | |
$ brew install postgresql # You'll need postgres to do this... you may also need to 'initdb' as well. Google it. | |
$ brew install elixir | |
$ mix local.hex # Answer y to any Qs | |
$ createuser -d postgres # create the default 'postgres' user that Chris McCord seems to like -- I don't create mine w/a pw... | |
# Use the latest Phoenix from here: http://www.phoenixframework.org/docs/installation -- currently this is 1.0.3 | |
# ** Answer y to any Qs ** | |
$ mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v1.0.3/phoenix_new-1.0.3.ez |
This file contains hidden or 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
Annotator.js works on Drupal as two modules and a library (installed, as usual, under /sites/all): | |
/modules/annotator | |
/modules/annotation | |
/libraries/annotator | |
The files in libraries/annotator are the latest from the Annotator.js repo (https://github.com/openannotation/annotator/releases). Although the modules Infinite Ulysses uses have been significantly changed from the modules you could download on Drupal.org, the Drupal.org Annotator (https://www.drupal.org/project/annotator) and Annotation (https://www.drupal.org/project/annotation) modules pages might still have useful info if you're troubleshooting. | |
Instructions: | |
I'll refer to the two modules as "Annotator" and "Annotation" throughout, and use "libraries/annotator" if I'm referring to the JS library. | |
1. Rename /libraries/annotator folder as just "annotator" and place in your sites/all/libraries folder (create a libraries folder there if you don't already have one). |