Skip to content

Instantly share code, notes, and snippets.

View StephanU's full-sized avatar

Stephan Uhle StephanU

View GitHub Profile
@so0k
so0k / start.sh
Last active May 21, 2016 17:23
meteor up
#!/bin/bash
APPNAME=<%= appName %>
APP_PATH=/opt/$APPNAME
BUNDLE_PATH=$APP_PATH/current
ENV_FILE=$APP_PATH/config/env.list
PORT=<%= port %>
USE_LOCAL_MONGO=<%= useLocalMongo? "1" : "0" %>
# remove previous version of the app, if exists
@DoomyTheFroomy
DoomyTheFroomy / README.md
Created October 10, 2012 07:26 — forked from ingoradatz/README.md
Turning an existing GitHub Issue into a Pull Request

Why?

This command attaches code (pull request) to an existing issue. This prevents:

  • creating a new issue when opening a new pull-request
  • splitting an on-growing discussion from an issue into an pull request issue

Usage?

You can use personal and organization github names and their branches.

git pull-request -i issue-number-without-the-# -b request-to-branch -h request-from-branch

@mafo5
mafo5 / proxy.sh
Created January 9, 2012 08:54 — forked from StephanU/work.sh
npm/proxy skript
#!/bin/sh
proxy=proxy.clust:3128
export http_proxy=http://$proxy
export https_proxy=http://$proxy
export ftp_proxy=http://$proxy
export socks_proxy=http://$proxy
export no_proxy="127.0.0.1,localhost"
@msmith
msmith / couchdb-ec2-install.sh
Created August 25, 2011 17:26
Set up CouchDB on EC2
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
@fdmanana
fdmanana / gist:832610
Created February 17, 2011 20:27
The CouchDB replicator database

1. Introduction to the replicator database

A database where you PUT/POST documents to trigger replications and you DELETE to cancel ongoing replications. These documents have exactly the same content as the JSON objects we used to POST to /_replicate/ (fields "source", "target", "create_target", "continuous", "doc_ids", "filter", "query_params".

Replication documents can have a user defined "_id". Design documents (and _local documents) added to the replicator database are ignored.

The default name of this database is _replicator. The name can be changed in the .ini configuration, section [replicator], parameter db.

2. Basics