Skip to content

Instantly share code, notes, and snippets.

View chris-allan's full-sized avatar

Chris Allan chris-allan

View GitHub Profile
@davidcmoulton
davidcmoulton / exploring-elife-lens.md
Last active June 23, 2016 11:27
Exploring eLife Lens

Setting up Lens

This is a work in progress, and is not a finished document.

This post douments how I've managed to set up Lens to run locally, and how I've been able bring into my Lens document a new node type, populated by the content of a custom element in the XML. It also includes some description and examples of what constitutes a Lens article node, and some more general notes on ways in to the code.

Prerequisites

The top level prerequisites to get you started are listed below. There will be some more you'll come across along the way, for specific, optional tasks.

  • git
  • nodejs
@evildmp
evildmp / gist:3094281
Last active June 30, 2023 10:55
Set up Django, nginx and uwsgi

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using:

@mikhailov
mikhailov / 0. nginx_setup.sh
Last active June 29, 2024 23:43
NGINX+SPDY with Unicorn. True Zero-Downtime unless migrations. Best practices.
# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed.
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
#
# Deployment structure
#
# SERVER:
# /etc/init.d/nginx (1. nginx)
# /home/app/public_html/app_production/current (Capistrano directory)
#
@jamroks
jamroks / build.gradle
Created April 5, 2012 13:05 — forked from waman/build.gradle
Gradle build file for JavaFX project
apply plugin:'java'
defaultTasks 'test'
//defaultTasks 'clean', 'build'
// 設定項目↓↓↓
group = 'org.waman' // グループ名 & implementation-vendor
version = 1.0 // アプリケーション・バージョン& implementation-version
def jdkVersion = 1.7
def enc = 'UTF-8'
@dupuy
dupuy / README.rst
Last active November 20, 2024 04:04
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@joshmoore
joshmoore / README.md
Last active September 27, 2015 04:48
Bootstrap script for creating and installing OMERO via Homebrew.
@nailor
nailor / random.py
Created November 11, 2010 09:52
SequentialID and MonotonicID to use for CouchDBs not-so-random-IDs
import random
from datetime import datetime
import struct
import binascii
class SequentialID(object):
def __init__(self):
self.rng = random.Random()
self.reinit()
@akheron
akheron / couchdb_test.py
Created November 11, 2010 09:07
Test script for CouchDB bulk insertions with different docid selection schemes
from datetime import datetime
# See https://gist.github.com/672279/
from inoi.util.random import sequential_id, monotonic_id
import httplib2
import json
import random
import time
import sys
#! /usr/bin/env python3
import select
import socket
import time
TIME_WAIT = 0.01
BIND_ADDR = ''
BIND_PORT = 8443
SERV_ADDR = 'server.example.com'