psiturk example ssl config: nginx config file for flask app (behind gunicorn) with ssl. See NYUCCL/psiTurk#226
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
<html> | |
<head> | |
<!-- I used DallinQ's GedcomToJson GitHub tool to convert a GEDCOM export of my PAF file to Json, then I used this script to display it with Google's OrgChart Visualization tool. --> | |
<script type='text/javascript' src='https://www.google.com/jsapi'></script> | |
<script type='text/javascript' src='http://code.jquery.com/jquery-1.9.1.min.js'></script> | |
<script type='text/javascript' src='famTree.js'></script><!-- this references the JSON output of my GEDCOM file. I edited the file and called the entire json "var famTree". --> | |
<script type='text/javascript'> | |
var rowData = []; | |
google.load('visualization', '1', {packages:['orgchart']}); |
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
set showcmd | |
set showmatch | |
set ignorecase | |
set incsearch | |
set autowrite | |
set tabstop=4 | |
set expandtab | |
set title | |
set cindent |
Deprecated: see https://github.com/deargle/island-vNext instead
- set up the nginx-proxy docker-compose. pull down nginx.tmpl.
- This will give auto letsencrypt
- git clone discourse into
/home/deargle/island
, drop in the two container config files below. Build them using the discourselauncher
- git clone the discourse-cas repo,
up
that.
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/bash | |
set -e | |
#set -x | |
set -o nounset # aka set -u | |
# WHAT IS THIS | |
# ------------- | |
# This will use the `psiturk -e` functionality to post batches of hits to mturk, with each hit | |
# having no more than 9 assignments so that requesters don't get hammered by the extra 20% commission (yeesh). | |
# |
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
############################################## | |
# Sample client-side OpenVPN 2.0 config file # | |
# for connecting to multi-client server. # | |
# # | |
# This configuration can be used by multiple # | |
# clients, however each client should have # | |
# its own cert and key files. # | |
# # | |
# On Windows, you might want to rename this # | |
# file so it has a .ovpn extension # |
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
from sqlalchemy import create_engine, MetaData, Table, text | |
import json | |
import pandas as pd | |
from boto.mturk.connection import MTurkConnection | |
import random | |
import sys | |
from psiturk.models import Participant | |
from psiturk.db import db_session, init_db | |
from psiturk.amt_services import MTurkServices | |
from psiturk.psiturk_config import PsiturkConfig |
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
''' | |
This script downloads the public leaderboard data for a competition, | |
filters down to just the highest-scoring submissions for each | |
team with "Eargle" in the name, and saves the top-three scores | |
to a .csv in the current directory called `top-three <date-timestamp>.csv` | |
If you want to see the highest submission for _each_ team, just comment out | |
line 40 (put a `#` before it). | |
To run this, get python if you don't already have it, and also `pip` if you don't already have it, |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Apr 24 16:30:42 2018 | |
@author: deargle | |
""" | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from nltk.stem.porter import PorterStemmer | |
import nltk |
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
version: '3' | |
services: | |
nginx: | |
image: nginx:1.14.2 | |
container_name: nginx-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: |
OlderNewer